|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eliad.model.AbstractGridContext
This abstract class provides default implementations for some of
the methods in the GridContext
.
Constructor Summary | |
AbstractGridContext(java.awt.Component c,
int row,
int column)
Constructs an AbstractGridContext suitable for a non-spanned cell. |
|
AbstractGridContext(java.awt.Component c,
int row,
int column,
int rCount,
int cCount)
Constructs an AbstractGridContext suitable for any kind of cell. |
Method Summary | |
java.awt.Color |
getBackgroundColor()
Returns the background color for the cell, taken from the component. |
abstract javax.swing.border.Border |
getBorder()
Returns the default border for cells. |
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 appropriate 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. |
abstract java.awt.Color |
getFocusBackgroundColor()
Returns the background color for cells that have the focus. |
abstract java.awt.Color |
getFocusForegroundColor()
Returns the foreground color for cells that have the focus. |
abstract javax.swing.border.Border |
getFocusHighlightBorder()
Returns the highlight border for cells that have the focus. |
java.awt.Font |
getFont()
Returns the font for the cell, taken from the component. |
java.awt.Color |
getForegroundColor()
Returns the foreground color for the cell, taken from the component. |
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. |
abstract java.awt.Color |
getSelectionBackgroundColor()
Returns the background color for selected cells. |
abstract javax.swing.border.Border |
getSelectionCellBorder()
Returns the border for cells that have been selected. |
abstract java.awt.Color |
getSelectionForegroundColor()
Returns the foreground color for selected cells. |
StyleModel |
getStyleModel()
Returns the style model which was used to obtain the renderer or editor which will use this GridContext . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AbstractGridContext(java.awt.Component c, int row, int column)
public AbstractGridContext(java.awt.Component c, int row, int column, int rCount, int cCount)
Method Detail |
public java.awt.Component getComponent()
GridContext
. This will normally
be a container.Component
which is using the current GridContext
.public StyleModel getStyleModel()
GridContext
. May be null.StyleModel
which is using the current GridContext
.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 int getColumnTab(int column)
public int getRowTab(int row)
public java.awt.Font getFont()
public java.awt.Color getForegroundColor()
public java.awt.Color getBackgroundColor()
Color
object for the background propertypublic abstract javax.swing.border.Border getBorder()
Border
object used for cells.public abstract java.awt.Color getFocusForegroundColor()
public abstract java.awt.Color getFocusBackgroundColor()
Color
object for the background propertypublic abstract javax.swing.border.Border getFocusHighlightBorder()
Border
object used for focused cellspublic abstract javax.swing.border.Border getSelectionCellBorder()
Border
object used for selected cellspublic abstract java.awt.Color getSelectionForegroundColor()
Color
object for the foreground propertypublic abstract java.awt.Color getSelectionBackgroundColor()
Color
used for the background of selected list itemspublic StyleContextModel getDefaultStyleContext()
GridContext
wasn't defined from a grid component, may be null.StyleContextModel
which defined the default attributes of a cell.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |