ewe.ui
Class TableCellAttributes

java.lang.Object
  extended byewe.ui.TableCellAttributes
All Implemented Interfaces:
CellConstants, ControlConstants, UIConstants

public class TableCellAttributes
extends Object
implements UIConstants


Field Summary
 int alignment
           
 int anchor
           
 Color borderColor
           
 int borderStyle
           
 boolean clipCellData
           
 int col
           
 Object data
          This is alternate non-textual data to display.
 int drawImageOptions
           
 Color fillColor
           
 boolean flat
           
 FontMetrics fontMetrics
           
 Color foreground
           
 int hSpan
          Setting hSpan to >1 will allow the data to spill over to the next cells.
 boolean isSelected
           
 int row
           
 Object text
          text may be a single String OR an array of Strings (one for each line).
 boolean tryFitText
          If this is true, the TableModel will arrange the text to fit within the bounds of the cell.
 int vSpan
          This is not used yet.
 
Fields inherited from interface ewe.ui.UIConstants
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN
 
Fields inherited from interface ewe.ui.CellConstants
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
 
Fields inherited from interface ewe.ui.ControlConstants
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
 
Constructor Summary
TableCellAttributes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

row

public int row

col

public int col

isSelected

public boolean isSelected

borderStyle

public int borderStyle

borderColor

public Color borderColor

fillColor

public Color fillColor

foreground

public Color foreground

clipCellData

public boolean clipCellData

hSpan

public int hSpan
Setting hSpan to >1 will allow the data to spill over to the next cells. However you must set the span for the following cells to zero. Setting it to -1 will allow it to take up the entire remainder of the row.


vSpan

public int vSpan
This is not used yet.


text

public Object text
text may be a single String OR an array of Strings (one for each line).


tryFitText

public boolean tryFitText
If this is true, the TableModel will arrange the text to fit within the bounds of the cell. THIS IS NOT IMPLEMENTED!


data

public Object data
This is alternate non-textual data to display.


alignment

public int alignment

anchor

public int anchor

flat

public boolean flat

fontMetrics

public FontMetrics fontMetrics

drawImageOptions

public int drawImageOptions
Constructor Detail

TableCellAttributes

public TableCellAttributes()