|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CellStyleModel
class provides CellRenderer
and CellEditor
objects formatting information that can
be used in drawing.
Field Summary | |
static int |
BOTTOM
Alignment value |
static int |
CENTER
Alignment value |
static int |
LEFT
Alignment value |
static int |
RIGHT
Alignment value |
static int |
SHOW_ALL
clipHints value |
static int |
SHOW_HORIZONTAL
clipHints value |
static int |
SHOW_NONE
clipHints value |
static int |
SHOW_VERTICAL
clipHints value |
static int |
TOP
Alignment value |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener for CellStyle property changes. |
Object |
clone()
Returns a copy of the style object. |
Color |
getBackground()
Returns the background color of the cell. |
com.klg.jclass.table.CellBorderModel |
getCellBorder()
Returns the CellBorder object for the cell. |
Color |
getCellBorderColor()
Returns the CellBorder color for the cell. |
int |
getCellBorderColorMode()
Returns the mode used to determine how the cell border color is chosen. |
int |
getCellBorderSides()
Returns the border sides value for the cell. |
com.klg.jclass.cell.JCCellEditor |
getCellEditor()
Gets the cell's editor. |
com.klg.jclass.cell.JCCellRenderer |
getCellRenderer()
Gets the cell's renderer. |
int |
getClipHints()
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
Class |
getDataType()
Returns the cell's associated data type. |
Font |
getFont()
Returns the font of the cell. |
Color |
getForeground()
Returns the foreground color of the cell. |
int |
getHorizontalAlignment()
Returns the horizontal alignment for the cell. |
com.klg.jclass.table.CellStyleModel |
getParentStyle()
Returns the parent style. |
int |
getRepeatBackground()
Returns the background repeat flag. |
Color[] |
getRepeatBackgroundColors()
Gets the table's RepeatBackgroundColors value. |
int |
getRepeatForeground()
Returns the foreground repeat flag. |
Color[] |
getRepeatForegroundColors()
Gets the table's RepeatForegroundColors value. |
int |
getVerticalAlignment()
Returns the vertical alignment for the cell. |
boolean |
isEditable()
Returns true if the cell is editable. |
boolean |
isTraversable()
Returns true if the cell is traversable. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener for CellStyle property changes. |
void |
setBackground(Color value)
Sets the background color of the cell. |
void |
setCellBorder(com.klg.jclass.table.CellBorderModel value)
Sets the CellBorder object for the cell. |
void |
setCellBorderColor(Color value)
Sets the CellBorder color for the cell. |
void |
setCellBorderColorMode(int value)
Sets the mode used to determine cell border colors. |
void |
setCellBorderSides(int value)
Sets the border sides for the cell. |
void |
setCellEditor(com.klg.jclass.cell.JCCellEditor editor)
Sets the editor for a cell. |
void |
setCellRenderer(com.klg.jclass.cell.JCCellRenderer renderer)
Sets the renderer for a cell. |
void |
setClipHints(int value)
Sets whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
void |
setDataType(Class value)
Sets the cell's associated data type. |
void |
setEditable(boolean value)
Sets whether the cell is editable. |
void |
setFont(Font value)
Sets the font used for drawing text within the cell. |
void |
setForeground(Color value)
Sets the foreground color of the cell. |
void |
setHorizontalAlignment(int value)
Sets the horizontal alignment for the cell. |
void |
setParentStyle(com.klg.jclass.table.CellStyleModel value)
Sets the parent style. |
void |
setRepeatBackground(int value)
Sets whether the background color uses the BackgroundRepeatColors for rows or columns. |
void |
setRepeatBackgroundColors(Color[] values)
Sets an array of colors to be used when Background value is
JCTableEnum.REPEAT_ROW or
JCTableEnum.REPEAT_COLUMN . |
void |
setRepeatForeground(int value)
Sets whether the foreground color uses the ForegroundRepeatColors for rows or columns. |
void |
setRepeatForegroundColors(Color[] values)
Sets an array of colors to be used when Foreground value is
JCTableEnum.REPEAT_ROW or
JCTableEnum.REPEAT_COLUMN . |
void |
setTraversable(boolean value)
Sets whether the cell is traversable. |
void |
setVerticalAlignment(int value)
Sets the vertical alignment for the cell. |
Field Detail |
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public static final int SHOW_NONE
public static final int SHOW_HORIZONTAL
public static final int SHOW_VERTICAL
public static final int SHOW_ALL
Method Detail |
public com.klg.jclass.table.CellStyleModel getParentStyle()
public void setParentStyle(com.klg.jclass.table.CellStyleModel value)
public Color getBackground()
public void setBackground(Color value)
public com.klg.jclass.table.CellBorderModel getCellBorder()
public void setCellBorder(com.klg.jclass.table.CellBorderModel value)
public Color getCellBorderColor()
public void setCellBorderColor(Color value)
public int getCellBorderColorMode()
public void setCellBorderColorMode(int value)
public int getCellBorderSides()
public void setCellBorderSides(int value)
BORDERSIDE_NONE
, BORDERSIDE_ALL
and combinations of
BORDERSIDE_LEFT
, BORDERSIDE_RIGHT
,
BORDERSIDE_TOP
and BORDERSIDE_BOTTOM
.
public com.klg.jclass.cell.JCCellEditor getCellEditor()
public void setCellEditor(com.klg.jclass.cell.JCCellEditor editor)
public com.klg.jclass.cell.JCCellRenderer getCellRenderer()
public void setCellRenderer(com.klg.jclass.cell.JCCellRenderer renderer)
public int getClipHints()
public void setClipHints(int value)
SHOW_NONE
, SHOW_HORIZONTAL
,
SHOW_VERTICAL
, and SHOW_ALL
public Class getDataType()
setDataType(java.lang.Class)
public void setDataType(Class value)
public boolean isEditable()
public void setEditable(boolean value)
public Font getFont()
public void setFont(Font value)
public Color getForeground()
public void setForeground(Color value)
public int getHorizontalAlignment()
LEFT
, CENTER
,
RIGHT
.
public void setHorizontalAlignment(int value)
public int getRepeatBackground()
public void setRepeatBackground(int value)
BackgroundRepeatColors
for rows or columns. Valid values are
JCTableEnum.REPEAT_NONE
, JCTableEnum.REPEAT_ROW
or
JCTableEnum.REPEAT_COLUMN
.
public Color[] getRepeatBackgroundColors()
RepeatBackgroundColors
value.
setRepeatBackgroundColors(java.awt.Color[])
public void setRepeatBackgroundColors(Color[] values)
Background
value is
JCTableEnum.REPEAT_ROW
or
JCTableEnum.REPEAT_COLUMN
.
public int getRepeatForeground()
public void setRepeatForeground(int value)
ForegroundRepeatColors
for rows or columns. Valid values are
JCTableEnum.REPEAT_NONE
, JCTableEnum.REPEAT_ROW
or
JCTableEnum.REPEAT_COLUMN
.
public Color[] getRepeatForegroundColors()
RepeatForegroundColors
value.
setRepeatForegroundColors(java.awt.Color[])
public void setRepeatForegroundColors(Color[] values)
Foreground
value is
JCTableEnum.REPEAT_ROW
or
JCTableEnum.REPEAT_COLUMN
.
public boolean isTraversable()
public void setTraversable(boolean value)
public int getVerticalAlignment()
TOP
, CENTER
,
BOTTOM
.
public void setVerticalAlignment(int value)
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
for CellStyle property changes.
CellStyleChangeSupport
is a utility class that can be
used to manage listeners and fire PropertyChange
events.
public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
for CellStyle property changes.
public Object clone()
clone
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |