com.swfm.mica.widgets
Class MiTableCell

java.lang.Object
  extended bycom.swfm.mica.widgets.MiTableCell
All Implemented Interfaces:
MiiTypes

public class MiTableCell
extends java.lang.Object
implements MiiTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
   
Constructor Summary
MiTableCell(MiTable table, int row, int column)
           
MiTableCell(MiTable table, int row, int column, MiPart graphics)
           
 
Method Summary
 MiTableCell copy()
           
 void draw(MiRenderer renderer)
           
 MiAttributes getAttributes()
           
 java.awt.Color getColor()
           
 int getColumnHorizontalSizing()
           
 int getColumnNumber()
           
 MiiContextMenu getContextMenu(MiBounds area)
           
 double getFixedHeight()
          Gets the height of the column this cell represents.
 double getFixedWidth()
          Gets the width of the column this cell represents.
 MiPart getGraphics()
           
 int getHorizontalJustification()
           
 int getHorizontalSizing()
           
 MiMargins getInsetMargins()
           
 MiMargins getMargins()
           
 MiBounds getNodeBounds(MiBounds b)
           
 int getNumberOfColumns()
           
 int getNumberOfRows()
           
 double getPreferredHeight()
           
 MiSize getPreferredSize(MiSize size)
           
 double getPreferredWidth()
           
 MiUserData getProperties()
           
 int getRowNumber()
           
 int getRowVerticalSizing()
           
 MiiHelpInfo getStatusHelp(MiPoint point)
           
 MiTable getTable()
           
 java.lang.Object getTag()
           
 MiiHelpInfo getToolHintHelp(MiPoint point)
           
 java.lang.String getValue()
           
 int getVerticalJustification()
           
 int getVerticalSizing()
           
 void invalidateArea()
           
 boolean isEmpty()
           
 boolean isSelectable()
           
 boolean isVisible()
           
 void setAttributes(MiAttributes attributes)
           
 void setColor(java.awt.Color color)
           
 void setColumnHorizontalSizing(int sizing)
           
 void setColumnNumber(int columnNumber)
           
 void setFixedHeight(double height)
          Sets the height of the column this cell represents.
 void setFixedWidth(double width)
          Sets the width of the column this cell represents.
 void setGraphics(MiPart part)
           
 void setHorizontalJustification(int justification)
           
 void setHorizontalSizing(int sizing)
           
 void setInsetMargins(MiMargins margins)
           
 void setMargins(MiMargins margins)
           
 void setNumberOfColumns(int numberOfColumns)
           
 void setNumberOfRows(int numberOfRows)
           
 void setRowNumber(int rowNumber)
           
 void setRowVerticalSizing(int sizing)
           
 void setStatusHelp(MiiHelpInfo helpInfo)
           
 void setTable(MiTable table)
           
 void setTag(java.lang.Object tag)
           
 void setToolHintHelp(MiiHelpInfo helpInfo)
           
 void setValue(java.lang.String value)
          This method sets the value of Text, Widgets and pure Strings.
 void setVerticalJustification(int justification)
           
 void setVerticalSizing(int sizing)
           
 void setVisible(boolean flag)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiTableCell

public MiTableCell(MiTable table,
                   int row,
                   int column)

MiTableCell

public MiTableCell(MiTable table,
                   int row,
                   int column,
                   MiPart graphics)
Method Detail

setTable

public void setTable(MiTable table)

getTable

public MiTable getTable()

setTag

public void setTag(java.lang.Object tag)

getTag

public java.lang.Object getTag()

isEmpty

public boolean isEmpty()

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean flag)

invalidateArea

public void invalidateArea()

setRowNumber

public void setRowNumber(int rowNumber)

getRowNumber

public int getRowNumber()

setColumnNumber

public void setColumnNumber(int columnNumber)

getColumnNumber

public int getColumnNumber()

setNumberOfRows

public void setNumberOfRows(int numberOfRows)

getNumberOfRows

public int getNumberOfRows()

setNumberOfColumns

public void setNumberOfColumns(int numberOfColumns)

getNumberOfColumns

public int getNumberOfColumns()

setHorizontalJustification

public void setHorizontalJustification(int justification)

getHorizontalJustification

public int getHorizontalJustification()

setVerticalJustification

public void setVerticalJustification(int justification)

getVerticalJustification

public int getVerticalJustification()

setHorizontalSizing

public void setHorizontalSizing(int sizing)

getHorizontalSizing

public int getHorizontalSizing()

setVerticalSizing

public void setVerticalSizing(int sizing)

getVerticalSizing

public int getVerticalSizing()

setInsetMargins

public void setInsetMargins(MiMargins margins)

getInsetMargins

public MiMargins getInsetMargins()

setMargins

public void setMargins(MiMargins margins)

getMargins

public MiMargins getMargins()

getProperties

public MiUserData getProperties()

setFixedWidth

public void setFixedWidth(double width)
Sets the width of the column this cell represents. Used by table row and column defaults only. If the desire is to not let the user resize this width, then set this cell's attributes by setFixedWidth(true);

Parameters:
width - the width
See Also:
getFixedWidth(), setFixedHeight(double)

getFixedWidth

public double getFixedWidth()
Gets the width of the column this cell represents. Used by table row and column defaults only. If the desire is to not let the user resize this width, then set this cell's attributes by setFixedWidth(true);

Returns:
the fixed width or 0
See Also:
getFixedWidth(), setFixedHeight(double)

setFixedHeight

public void setFixedHeight(double height)
Sets the height of the column this cell represents. Used by table row and column defaults only. If the desire is to not let the user resize this height, then set this cell's attributes by setFixedHeight(true);

See Also:
setFixedWidth(double), getFixedHeight()

getFixedHeight

public double getFixedHeight()
Gets the height of the column this cell represents. Used by table row and column defaults only. If the desire is to not let the user resize this height, then set this cell's attributes by setFixedHeight(true);

Returns:
the fixed height or 0 (the default)
See Also:
setFixedWidth(double), setFixedHeight(double)

setRowVerticalSizing

public void setRowVerticalSizing(int sizing)

getRowVerticalSizing

public int getRowVerticalSizing()

setColumnHorizontalSizing

public void setColumnHorizontalSizing(int sizing)

getColumnHorizontalSizing

public int getColumnHorizontalSizing()

getNodeBounds

public MiBounds getNodeBounds(MiBounds b)

getContextMenu

public MiiContextMenu getContextMenu(MiBounds area)

setStatusHelp

public void setStatusHelp(MiiHelpInfo helpInfo)

getStatusHelp

public MiiHelpInfo getStatusHelp(MiPoint point)

setToolHintHelp

public void setToolHintHelp(MiiHelpInfo helpInfo)

getToolHintHelp

public MiiHelpInfo getToolHintHelp(MiPoint point)

setAttributes

public void setAttributes(MiAttributes attributes)

getAttributes

public MiAttributes getAttributes()

setColor

public void setColor(java.awt.Color color)

getColor

public java.awt.Color getColor()

setGraphics

public void setGraphics(MiPart part)

getGraphics

public MiPart getGraphics()

isSelectable

public boolean isSelectable()

setValue

public void setValue(java.lang.String value)
This method sets the value of Text, Widgets and pure Strings. Warning, right and center justfication does not work for pure String cells, only graphics cells.


getValue

public java.lang.String getValue()

getPreferredWidth

public double getPreferredWidth()

getPreferredHeight

public double getPreferredHeight()

getPreferredSize

public MiSize getPreferredSize(MiSize size)

draw

public void draw(MiRenderer renderer)

copy

public MiTableCell copy()

toString

public java.lang.String toString()