|
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.higrid.CellStyle
The CellStyle class is an implementation of the CellStyleModel
interface and provides CellRenderer
and CellEditor objects formatting information that can
be used in drawing.
| Field Summary | |
protected boolean |
allowWidthSizing
|
protected Color |
backgroundColor
|
protected Insets |
borderInsets
|
protected int |
borderStyle
|
protected int |
clipHints
|
protected int |
editHeightPolicy
|
protected int |
editWidthPolicy
|
protected Font |
font
|
protected Color |
foregroundColor
|
protected int |
horizontalAlignment
|
protected Insets |
marginInsets
|
protected boolean |
selectAll
|
protected Color |
selectedBackgroundColor
|
protected Color |
selectedForegroundColor
|
protected int |
verticalAlignment
|
| Constructor Summary | |
CellStyle()
|
|
| Method Summary | |
void |
copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Copies the passed cellStyle's attributes into this CellStyle. |
void |
copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Copies the passed cellStyle's PLAF attributes into this CellStyle. |
boolean |
getAllowWidthSizing()
Retrieves whether width sizing is currently allowed. |
Color |
getBackground()
Retrieves the background color for this object. |
Insets |
getBorderInsets()
Retrieves the border insets for this object. |
int |
getBorderStyle()
Retrieves the border style for this object. |
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 |
getEditHeightPolicy()
Retrieves the edit height policy for this object. |
int |
getEditWidthPolicy()
Retrieves the edit width policy for this object. |
Font |
getFont()
Retrieves the font for this object. |
Color |
getForeground()
Retrieves the foreground color for this object. |
int |
getHorizontalAlignment()
Retrieves the horizontal alignment for this object. |
Insets |
getMarginInsets()
Retrieves the margin insets for this object. |
boolean |
getSelectAll()
Determines whether the editor should select the contents before editing. |
Color |
getSelectedBackground()
Retrieves the selected background color for this object. |
Color |
getSelectedForeground()
Retrieves the selected foreground color for this object. |
int |
getVerticalAlignment()
Retrieves the vertical alignment for this object. |
void |
setAllowWidthSizing(boolean allow)
Sets whether width sizing is currently allowed. |
void |
setBackground(Color color)
Sets the background color for this object. |
void |
setBorderInsets(Insets insets)
Sets the border insets for this object. |
void |
setBorderStyle(int style)
Sets the border style for this object. |
void |
setClipHints(int clipHints)
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
void |
setEditHeightPolicy(int policy)
Sets the edit height policy for this object. |
void |
setEditWidthPolicy(int policy)
Sets the edit width policy for this object. |
void |
setFont(Font font)
Sets the font for this object. |
void |
setForeground(Color color)
Sets the foreground color for this object. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment for this object. |
void |
setMarginInsets(Insets insets)
Sets the margin insets for this object. |
void |
setOtherAllowWidthSizing(boolean allow)
Sets whether width sizing is currently allowed for the other header/record pair. |
void |
setSelectAll(boolean selectAll)
Determines whether the editor should select the contents before editing. |
void |
setSelectedBackground(Color color)
Sets the selected background color for this object. |
void |
setSelectedForeground(Color color)
Sets the selected foreground color for this object. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment for this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Color backgroundColor
protected Color foregroundColor
protected Color selectedBackgroundColor
protected Color selectedForegroundColor
protected int borderStyle
protected Insets borderInsets
protected int verticalAlignment
protected int horizontalAlignment
protected int editWidthPolicy
protected int editHeightPolicy
protected Insets marginInsets
protected Font font
protected boolean allowWidthSizing
protected boolean selectAll
protected int clipHints
| Constructor Detail |
public CellStyle()
| Method Detail |
public void copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
copyPlafFromCellStyle in interface CellStyleModelcellStyle - the CellStyle to initialize this CellStyle with.public void copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
copyFromCellStyle in interface CellStyleModelcellStyle - the CellStyle to initialize this CellStyle with.public Color getBackground()
getBackground in interface CellStyleModelpublic void setBackground(Color color)
setBackground in interface CellStyleModelcolor - The new background color.
IllegalArgumentException - If parameter is null.public Color getForeground()
getForeground in interface CellStyleModelpublic void setForeground(Color color)
setForeground in interface CellStyleModelcolor - The new foreground color.
IllegalArgumentException - If parameter is null.public Color getSelectedBackground()
getSelectedBackground in interface CellStyleModelpublic void setSelectedBackground(Color color)
setSelectedBackground in interface CellStyleModelcolor - The new selected background color.
IllegalArgumentException - If parameter is null.public Color getSelectedForeground()
getSelectedForeground in interface CellStyleModelpublic void setSelectedForeground(Color color)
setSelectedForeground in interface CellStyleModelcolor - The new selected foreground color.
IllegalArgumentException - If parameter is null.public int getBorderStyle()
getBorderStyle in interface CellStyleModelpublic void setBorderStyle(int style)
setBorderStyle in interface CellStyleModelstyle - The new border style.public Insets getBorderInsets()
getBorderInsets in interface CellStyleModelpublic void setBorderInsets(Insets insets)
setBorderInsets in interface CellStyleModelpublic int getVerticalAlignment()
getVerticalAlignment in interface CellStyleModelpublic void setVerticalAlignment(int alignment)
setVerticalAlignment in interface CellStyleModelalignment - The new vertical alignment.public int getHorizontalAlignment()
getHorizontalAlignment in interface CellStyleModelpublic void setHorizontalAlignment(int alignment)
setHorizontalAlignment in interface CellStyleModelalignment - The new horizontal alignment.public int getEditWidthPolicy()
getEditWidthPolicy in interface CellStyleModelpublic void setEditWidthPolicy(int policy)
setEditWidthPolicy in interface CellStyleModelpolicy - The new edit width policy.public int getEditHeightPolicy()
getEditHeightPolicy in interface CellStyleModelpublic void setEditHeightPolicy(int policy)
setEditHeightPolicy in interface CellStyleModelpolicy - The new edit height policy.public Insets getMarginInsets()
getMarginInsets in interface CellStyleModelpublic void setMarginInsets(Insets insets)
setMarginInsets in interface CellStyleModelinsets - The new margin insets.public Font getFont()
getFont in interface CellStyleModelpublic void setFont(Font font)
setFont in interface CellStyleModelfont - The new font.
IllegalArgumentException - If parameter is null.public boolean getAllowWidthSizing()
getAllowWidthSizing in interface CellStyleModelpublic void setAllowWidthSizing(boolean allow)
setAllowWidthSizing in interface CellStyleModelallow - Whether to allow width sizing.public void setOtherAllowWidthSizing(boolean allow)
setOtherAllowWidthSizing in interface CellStyleModelallow - Whether to allow width sizing.public boolean getSelectAll()
getSelectAll in interface CellStyleModelpublic void setSelectAll(boolean selectAll)
setSelectAll in interface CellStyleModelpublic int getClipHints()
getClipHints in interface CellStyleModelpublic void setClipHints(int clipHints)
setClipHints in interface CellStyleModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||