|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.table.JCTableCellInfo
JCTableCellInfo is an object passed to CellRenderer
and CellEditor objects to supply information about the
type of cell being displayed or edited.
| Field Summary | |
protected Insets |
border_insets
|
protected int |
column
|
protected Object |
data
|
protected Insets |
margin_insets
|
protected int |
row
|
protected com.klg.jclass.table.CellStyleModel |
style
|
protected com.klg.jclass.table.JCTable |
table
|
| Fields inherited from interface com.klg.jclass.table.TableCellInfoModel |
BLACK_BRIGHTER, BLACK_DARKER, WHITE_BRIGHTER, WHITE_DARKER |
| Fields inherited from interface com.klg.jclass.cell.JCCellInfo |
BOTTOM, CENTER, LEFT, RIGHT, SHOW_ALL, SHOW_HORIZONTAL, SHOW_NONE, SHOW_VERTICAL, TOP |
| Constructor Summary | |
JCTableCellInfo()
|
|
| Method Summary | |
Color |
getBackground()
Returns the background color of the cell being displayed or edited. |
Insets |
getBorderInsets()
Returns the Insets object representing the borders for the cell. |
int |
getBorderStyle()
Returns the border style for the cell. |
com.klg.jclass.table.CellBorderModel |
getCellBorder()
Returns the CellBorderModel for the cell. |
int |
getCellBorderSides()
Returns the BorderSides for the cell. |
com.klg.jclass.table.CellStyleModel |
getCellStyle()
Returns the CellStyle object that contains the property setting
for the cell. |
int |
getClipHints()
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
int |
getColumn()
Returns the column for the cell. |
Class |
getDataType()
Returns the cell's associated data type. |
Rectangle |
getDrawingArea()
Returns the dimensions of the drawing area for the cell being displayed or edited. |
Font |
getFont()
Returns the font of the cell being displayed or edited. |
FontMetrics |
getFontMetrics()
Returns the FontMetrics object associated with the font used in
the cell. |
Color |
getForeground()
Returns the foreground color of the cell being displayed or edited. |
int |
getHorizontalAlignment()
Returns the horizontal alignment for the cell being displayed or edited. |
Insets |
getMarginInsets()
Returns the Insets object representing the margins for the cell. |
protected Color |
getRepeatColor(int row,
int column,
int repeat,
Color[] list)
Gets the color of a cell from the repeated background or foreground list. |
int |
getRow()
Returns the row for the cell. |
boolean |
getSelectAll()
Determines whether the editor should select the contents before editing. |
Color |
getSelectedBackground()
Returns the background color of the cell being displayed or edited when the cell is selected. |
protected Color |
getSelectedColor(int mode)
SelectedBackgroundMode and SelectedForegroundMode
determine how the selected color is obtained for a cell. |
Color |
getSelectedForeground()
Returns the foreground color of the cell being displayed or edited when the cell is selected. |
com.klg.jclass.table.JCTable |
getTable()
Returns the table object associated with the cell. |
int |
getVerticalAlignment()
Returns the vertical alignment for the cell being displayed or edited. |
void |
initialize(com.klg.jclass.table.JCTable table,
Object o,
int row,
int column)
Initializes the JCTableCellInfo object with the cell
position and data value. |
void |
initialize(com.klg.jclass.table.JCTable table,
Object o,
int row,
int column,
com.klg.jclass.table.CellStyleModel style)
Initializes the JCTableCellInfo object with the cell
position, data value, and CellStyleModel. |
boolean |
isEditable()
Determines whether the cell is editable. |
boolean |
isEnabled()
Determines whether the cell is enabled. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.table.JCTable table
protected int row
protected int column
protected com.klg.jclass.table.CellStyleModel style
protected Object data
protected Insets margin_insets
protected Insets border_insets
| Constructor Detail |
public JCTableCellInfo()
| Method Detail |
public void initialize(com.klg.jclass.table.JCTable table,
Object o,
int row,
int column)
JCTableCellInfo object with the cell
position and data value.
initialize in interface TableCellInfoModelcolumn - o - row - table -
public void initialize(com.klg.jclass.table.JCTable table,
Object o,
int row,
int column,
com.klg.jclass.table.CellStyleModel style)
JCTableCellInfo object with the cell
position, data value, and CellStyleModel.
initialize in interface TableCellInfoModelcolumn - o - row - style - table - public com.klg.jclass.table.CellStyleModel getCellStyle()
CellStyle object that contains the property setting
for the cell.
getCellStyle in interface TableCellInfoModelCellStyle objectpublic Color getBackground()
getBackground in interface JCCellInfopublic Color getForeground()
Container sets the
foreground color on the graphics object it passes to
CellRenderer.draw().
getForeground in interface JCCellInfopublic Color getSelectedBackground()
getSelectedBackground in interface JCCellInfopublic Color getSelectedForeground()
getSelectedForeground in interface JCCellInfoprotected Color getSelectedColor(int mode)
SelectedBackgroundMode and SelectedForegroundMode
determine how the selected color is obtained for a cell.
mode -
public Font getFont()
Container sets the
font on the graphics object it passes to CellRenderer.draw().
getFont in interface JCCellInfopublic FontMetrics getFontMetrics()
FontMetrics object associated with the font used in
the cell.
FontMetrics objectpublic int getHorizontalAlignment()
LEFT, CENTER, and
RIGHT.
getHorizontalAlignment in interface JCCellInfoLEFT, CENTER,
or RIGHTpublic int getVerticalAlignment()
TOP, CENTER, and
BOTTOM.
getVerticalAlignment in interface JCCellInfoTOP, CENTER,
or BOTTOMpublic Insets getMarginInsets()
Insets object representing the margins for the cell.
getMarginInsets in interface JCCellInfoInsets objectpublic Insets getBorderInsets()
Insets object representing the borders for the cell.
getBorderInsets in interface JCCellInfoInsets objectpublic int getBorderStyle()
getBorderStyle in interface JCCellInfopublic Rectangle getDrawingArea()
getDrawingArea in interface JCCellInfopublic boolean isEditable()
isEditable in interface JCCellInfopublic boolean isEnabled()
isEnabled in interface JCCellInfopublic boolean getSelectAll()
getSelectAll in interface JCCellInfopublic int getClipHints()
getClipHints in interface JCCellInfopublic Class getDataType()
CellStyleModel
for the cell has a data type, which is returned. Second, the
getColumnClass(int column) method is called to
obtain the Class for the column. Finally, if the data type
is still null, the Class of the cell value is returned.
getDataType in interface JCCellInfopublic com.klg.jclass.table.JCTable getTable()
getTable in interface TableCellInfoModelpublic int getRow()
getRow in interface TableCellInfoModelpublic int getColumn()
getColumn in interface TableCellInfoModelpublic com.klg.jclass.table.CellBorderModel getCellBorder()
CellBorderModel for the cell.
getCellBorder in interface TableCellInfoModelCellBorderModel for the cellpublic int getCellBorderSides()
BorderSides for the cell.
getCellBorderSides in interface TableCellInfoModelBorderSides for the cell
protected Color getRepeatColor(int row,
int column,
int repeat,
Color[] list)
column - list - repeat - row -
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||