|
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 TableCellInfoModel
column
- 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 TableCellInfoModel
column
- o
- row
- style
- table
- public com.klg.jclass.table.CellStyleModel getCellStyle()
CellStyle
object that contains the property setting
for the cell.
getCellStyle
in interface TableCellInfoModel
CellStyle
objectpublic Color getBackground()
getBackground
in interface JCCellInfo
public Color getForeground()
Container
sets the
foreground color on the graphics object it passes to
CellRenderer.draw()
.
getForeground
in interface JCCellInfo
public Color getSelectedBackground()
getSelectedBackground
in interface JCCellInfo
public Color getSelectedForeground()
getSelectedForeground
in interface JCCellInfo
protected 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 JCCellInfo
public FontMetrics getFontMetrics()
FontMetrics
object associated with the font used in
the cell.
FontMetrics
objectpublic int getHorizontalAlignment()
LEFT
, CENTER
, and
RIGHT
.
getHorizontalAlignment
in interface JCCellInfo
LEFT
, CENTER
,
or RIGHT
public int getVerticalAlignment()
TOP
, CENTER
, and
BOTTOM
.
getVerticalAlignment
in interface JCCellInfo
TOP
, CENTER
,
or BOTTOM
public Insets getMarginInsets()
Insets
object representing the margins for the cell.
getMarginInsets
in interface JCCellInfo
Insets
objectpublic Insets getBorderInsets()
Insets
object representing the borders for the cell.
getBorderInsets
in interface JCCellInfo
Insets
objectpublic int getBorderStyle()
getBorderStyle
in interface JCCellInfo
public Rectangle getDrawingArea()
getDrawingArea
in interface JCCellInfo
public boolean isEditable()
isEditable
in interface JCCellInfo
public boolean isEnabled()
isEnabled
in interface JCCellInfo
public boolean getSelectAll()
getSelectAll
in interface JCCellInfo
public int getClipHints()
getClipHints
in interface JCCellInfo
public 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 JCCellInfo
public com.klg.jclass.table.JCTable getTable()
getTable
in interface TableCellInfoModel
public int getRow()
getRow
in interface TableCellInfoModel
public int getColumn()
getColumn
in interface TableCellInfoModel
public com.klg.jclass.table.CellBorderModel getCellBorder()
CellBorderModel
for the cell.
getCellBorder
in interface TableCellInfoModel
CellBorderModel
for the cellpublic int getCellBorderSides()
BorderSides
for the cell.
getCellBorderSides
in interface TableCellInfoModel
BorderSides
for the cellprotected 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 |