|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
GridContext
defines the interface for an object that gives information
about the cell or span when a renderer or an editor
is required by a Component
.
GridCellRenderer
,
GridCellEditor
,
StyleModel
Method Summary | |
java.awt.Rectangle |
getBounds()
Returns the bounds for the current cell inside the context component. |
int |
getColumn()
Returns the column of the cell where rendering or editing will take place. |
int |
getColumnCount()
Returns the column count of the cell where rendering or editing will take place. |
int |
getColumnTab(int column)
Returns the column position for a column that is inside the current cell or span. |
java.awt.Component |
getComponent()
Returns the component behind this GridContext . |
StyleContextModel |
getDefaultStyleContext()
Returns the default style context model which was defined in the grid component as default cell attributes. |
java.lang.Object |
getIdentifier()
Returns the identifier object attached to the cell that this GridContext refers to. |
int |
getRow()
Returns the row of the cell where rendering or editing will take place. |
int |
getRowCount()
Returns the row count of the cell where rendering or editing will take place. |
int |
getRowTab(int row)
Returns the row position for a row that is inside the current cell or span. |
StyleModel |
getStyleModel()
Returns the style model which was used to obtain the renderer or editor which will use this GridContext . |
Method Detail |
public java.awt.Component getComponent()
GridContext
. This will normally
be a container.Component
that this GridContext
is linked to.public StyleModel getStyleModel()
GridContext
. May be null.StyleModel
which is using the current GridContext
.public StyleContextModel getDefaultStyleContext()
StyleContextModel
which defined the default attributes of a cell.public int getColumn()
public int getRow()
public int getColumnCount()
public int getRowCount()
public java.lang.Object getIdentifier()
identifier
object attached to the cell that this GridContext
refers to.public java.awt.Rectangle getBounds()
public int getColumnTab(int column)
public int getRowTab(int row)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |