|
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.
Method Summary | |
void |
copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyleModel)
Replaces cellStyleModel attributes with the passed one. |
void |
copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyleModel)
Replaces PLAF cellStyleModel attributes with the passed one, only if the PLAF attributes were not already overridden. |
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. |
Method Detail |
public Color getBackground()
public void setBackground(Color color)
color
- The new background color.
IllegalArgumentException
- If parameter is null.public Color getForeground()
public void setForeground(Color color)
color
- The new foreground color.
IllegalArgumentException
- If parameter is null.public Color getSelectedBackground()
public void setSelectedBackground(Color color)
color
- The new selected background color.
IllegalArgumentException
- If parameter is null.public Color getSelectedForeground()
public void setSelectedForeground(Color color)
color
- The new selected foreground color.
IllegalArgumentException
- If parameter is null.public int getBorderStyle()
public void setBorderStyle(int style)
style
- The new border style.public Insets getBorderInsets()
public void setBorderInsets(Insets insets)
public int getVerticalAlignment()
public void setVerticalAlignment(int alignment)
alignment
- The new vertical alignment.public int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
alignment
- The new horizontal alignment.public int getEditWidthPolicy()
public void setEditWidthPolicy(int policy)
policy
- The new edit width policy.public int getEditHeightPolicy()
public void setEditHeightPolicy(int policy)
policy
- The new edit height policy.public Insets getMarginInsets()
public void setMarginInsets(Insets insets)
insets
- The new margin insets.public Font getFont()
public void setFont(Font font)
font
- The new font.
IllegalArgumentException
- If parameter is null.public boolean getAllowWidthSizing()
public void setAllowWidthSizing(boolean allow)
allow
- Whether to allow width sizing.public void setOtherAllowWidthSizing(boolean allow)
allow
- Whether to allow width sizing.public boolean getSelectAll()
public void setSelectAll(boolean selectAll)
public int getClipHints()
public void setClipHints(int clipHints)
public void copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyleModel)
public void copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel 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 |