|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object diamondedge.swing.DsTableCell
public class DsTableCell
Field Summary |
---|
Fields inherited from interface diamondedge.swing.DsCellProperties |
---|
ALIGN_DEFAULT, ROTATE_0, ROTATE_270, ROTATE_90, ROTATE_DEFAULT |
Fields inherited from interface diamondedge.swing.DsConstants |
---|
ACCOUNTING, ALL, ASCENDING, ASCENDING_CASE, BORDER_BOTTOM, BORDER_LEFT, BORDER_NONE, BORDER_OUTLINE, BORDER_RIGHT, BORDER_TOP, CROSS_LINES, DASH, DASH_DOT, DASH_DOT_DOT, DEFAULT, DESCENDING, DESCENDING_CASE, DIAGONAL_CROSS_LINES, DOT, DOUBLE, DOUBLE_LINE, DOWNWARD_DIAGONAL_LINES, ETCHED, ETCHED_RAISED, FALSE, FIND_ALL, FIND_EQUALS, FIND_GT, FIND_GTE, FIND_LT, FIND_LTE, FIND_NE, FIND_PREFIX, FIND_REGEX, FIND_STRING, FIRST, FLAT, GRID_DASH, GRID_DASH_DOT, GRID_DASH_DOT_DOT, GRID_DOT, GRID_LINE, HIGHLIGHT_SELECTION_ALWAYS, HIGHLIGHT_SELECTION_NEVER, HIGHLIGHT_SELECTION_WITH_FOCUS, HORIZONTAL_LINES, LOWERED, LOWERED_LIGHT, NONE, RAISED, RAISED_LIGHT, SELECT_CELL, SELECT_NONE, SELECT_ROW, SINGLE, SINGLE_LINE, SOLID, STRETCH, TILE, TRANSPARENT, TRUE, UPWARD_DIAGONAL_LINES, VERTICAL_LINES |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
protected |
DsTableCell()
|
protected |
DsTableCell(Object val)
|
Method Summary | |
---|---|
Object |
clone()
|
static String |
formatValue(DsCellProperties cell,
Object value)
Hides or unhides this cell. |
Paint |
getBackground()
Returns a value which determines the background color behind the text. |
Border |
getBorder()
Returns the border that will be painted on the outside. |
Paint |
getBorderLineColor()
Returns a value which determines the color that line borders are drawn in. |
int |
getBorderLines()
Returns a value that determines which border lines that are drawn around the cell. |
int |
getBorderLineWidth()
Returns a value that determines the width of the lines that are drawn around the cell. |
int |
getBorderStyle()
Returns a value that determines how the border for the cell is drawn. |
int |
getColumnSpan()
Returns the number of columns this cell spans. |
Object |
getData()
Returns a user defined object associated with the cell. |
int |
getEditableVal()
Returns a value that determines whether the value for the cell can be edited by the user at run-time. |
Font |
getFont()
Returns the Font used to display the text of the cell. |
int |
getFontBoldVal()
Returns a value that determines whether the text for the cell is displayed with a bold font. |
String |
getFontName()
Returns the name of the font used to display the text for the cell. |
int |
getFontSize()
Returns the size of the font used to display the text for the cell. |
int |
getFontUnderline()
Returns a value that determines how the text for the cell is underlined. |
Paint |
getForeground()
Returns a value which determines the color of the text. |
Object |
getFormat()
Returns a Format/Formatter object that determines how the text for the cell is formatted. |
int |
getHorizontalAlignment()
Returns a value that determines how the text for the cell is aligned horizontally. |
int |
getHorizontalTextPosition()
Returns the horizontal position of the text in relation to the icon |
Icon |
getIcon()
Returns the graphic image (glyph, icon) that the label displays. |
int |
getRotation()
Returns a value that determines the rotation of the text and icon. |
int |
getRowSpan()
Returns the number of rows this cell spans. |
String |
getText()
Returns the formatted text to display in a cell of a table. |
int |
getTextStyle()
Returns a value that determines how the text for the cell is drawn. |
String |
getToolTipText()
Returns the text to display when the cursor is over the cell of a table. |
Object |
getValue()
Returns the value being display in a cell of a table. |
int |
getVerticalAlignment()
Returns a value that determines how the text for the cell is aligned horizontally. |
int |
getVerticalTextPosition()
Returns the vertical position of the text in relation to the icon |
boolean |
isEditable()
Returns a value that determines whether the value for the cell can be edited by the user at run-time. |
boolean |
isFontBold()
Returns a value that determines whether the text for the cell is displayed with a bold font. |
boolean |
isFontItalic()
Returns a value that determines whether the text for the cell is displayed with an italic style. |
boolean |
isFontStrikeThrough()
Returns a value that determines whether the text for the cell is displayed with a line through the text. |
boolean |
isNegativeNumberRed()
Returns a value that determines whether negative numbers are displayed in a red color. |
boolean |
isOpaque()
Returns a value that determines whether the background for the cell is painted. |
boolean |
isVisible()
Returns true if this cell is not hidden. |
boolean |
isWordWrap()
Returns a value that determines whether the text for the cell is wrapped onto the line below if it doesn't fit. |
void |
reset()
Resets all style information back to the default values. |
void |
setBackground(Paint c)
Sets a value which determines the background color behind the text. |
void |
setBorder(Border b)
Sets a border that will be painted on the outside. |
void |
setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor)
Creates a border around the cell. |
void |
setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor,
int borderLines)
Creates a border around the cell. |
void |
setBorderLineColor(Paint c)
Sets a value which determines the color that line borders are drawn in. |
void |
setBorderLines(int val)
Sets a value that determines which border lines that are drawn around the cell. |
void |
setBorderLineWidth(int val)
Sets a value that determines the width of the lines that are drawn around the cell. |
void |
setBorderStyle(int val)
Sets a value that determines how the border for the cell is drawn. |
void |
setColumnSpan(int colSpan)
Sets the number of columns this cell spans. |
void |
setData(Object userData)
Sets a user defined object to be stored with the cell. |
void |
setEditable(boolean val)
Determines whether the value for the cell can be edited by the user at run-time. |
void |
setEditableVal(int val)
Determines whether the value for the cell can be edited by the user at run-time. |
void |
setFont(Font f)
Sets the Font used to display the text of the cell. |
void |
setFontBold(boolean val)
Sets a value that determines whether the text for the cell is displayed with a bold font. |
void |
setFontBoldVal(int val)
Sets a value that determines whether the text for the cell is displayed with a bold font. |
void |
setFontItalic(boolean italic)
Sets a value that determines whether the text for the cell is displayed with an italic style. |
void |
setFontName(String name)
Sets the name of the font used to display the text for the cell. |
void |
setFontSize(int size)
Sets the size of the font used to display the text for the cell. |
void |
setFontStrikeThrough(boolean val)
Sets a value that determines whether the text for the cell is displayed with a line through the text. |
void |
setFontUnderline(int val)
Sets a value that determines how the text for the cell is underlined. |
void |
setForeground(Paint c)
Sets a value which determines the color of the text. |
void |
setFormat(Object val)
Sets a value that determines how the text for the cell is formatted. |
void |
setHorizontalAlignment(int val)
Sets the horizontal alignment of the text. |
void |
setHorizontalTextPosition(int textPosition)
Sets the horizontal position of the text in relation to the icon. |
void |
setIcon(Icon icon)
Defines the icon this component will display. |
void |
setIcon(Image image)
Defines the icon this component will display. |
void |
setNegativeNumberRed(boolean val)
Sets a value that determines whether negative numbers are displayed in a red color. |
void |
setOpaque(boolean val)
Sets a value that determines whether the background for the cell is painted. |
void |
setRotation(int val)
Sets a value that determines the rotation of the text and icon. |
protected void |
setRowSpan(int rowSpan)
Sets the number of rows this cell spans. |
void |
setText(String text)
Sets the text to display in a cell of a table. |
void |
setTextStyle(int val)
Sets a value that determines how the text for the cell is drawn. |
void |
setToolTipText(String text)
Sets the text to display when the cursor is over the cell of a table. |
void |
setValue(Object val)
Sets the value for a cell of a table. |
void |
setVerticalAlignment(int val)
Sets the vertical alignment of the text. |
void |
setVerticalTextPosition(int textPosition)
Sets the vertical position of the text in relation to the icon. |
void |
setWordWrap(boolean val)
Sets a value that determines whether the text for the cell is wrapped onto the line below if it doesn't fit. |
String |
toString()
Returns the formatted text to display in a cell of a table. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DsTableCell()
protected DsTableCell(Object val)
Method Detail |
---|
public Object clone()
clone
in class Object
public final void reset()
reset
in interface DsCellProperties
public final Object getValue()
getValue
in interface DsCell
public void setValue(Object val)
setValue
in interface DsCell
public final String getText()
getText
in interface DsCell
getFormat()
public final void setText(String text)
setText
in interface DsCell
public final Paint getForeground()
getForeground
in interface DsCellProperties
public final void setForeground(Paint c)
setForeground
in interface DsCellProperties
public final Paint getBackground()
getBackground
in interface DsCellProperties
public final void setBackground(Paint c)
setBackground
in interface DsCellProperties
public final Font getFont()
getFont
in interface DsCellProperties
public final void setFont(Font f)
setFont
in interface DsCellProperties
public final String getFontName()
getFontName
in interface DsCellProperties
public final void setFontName(String name)
setFontName
in interface DsCellProperties
public final int getFontSize()
getFontSize
in interface DsCellProperties
public final void setFontSize(int size)
setFontSize
in interface DsCellProperties
public final boolean isFontBold()
isFontBold
in interface DsCellProperties
public final void setFontBold(boolean val)
setFontBold
in interface DsCellProperties
public final int getFontBoldVal()
public final void setFontBoldVal(int val)
public final boolean isFontItalic()
isFontItalic
in interface DsCellProperties
public final void setFontItalic(boolean italic)
setFontItalic
in interface DsCellProperties
public final boolean isFontStrikeThrough()
isFontStrikeThrough
in interface DsCellProperties
public final void setFontStrikeThrough(boolean val)
setFontStrikeThrough
in interface DsCellProperties
public final int getFontUnderline()
getFontUnderline
in interface DsCellProperties
public final void setFontUnderline(int val)
DEFAULT
- use the value set for the column default value
SINGLE
- single line drawn at the baseline
DOUBLE
- double line drawn at the baseline
ACCOUNTING
- single line drawn below the descent
setFontUnderline
in interface DsCellProperties
public final boolean isNegativeNumberRed()
isNegativeNumberRed
in interface DsCellProperties
public final void setNegativeNumberRed(boolean val)
setNegativeNumberRed
in interface DsCellProperties
public final boolean isOpaque()
isOpaque
in interface DsCellProperties
public final void setOpaque(boolean val)
setOpaque
in interface DsCellProperties
public final boolean isWordWrap()
isWordWrap
in interface DsCellProperties
public final void setWordWrap(boolean val)
setWordWrap
in interface DsCellProperties
public final boolean isEditable()
isEditable
in interface DsCellProperties
public final void setEditable(boolean val)
setEditable
in interface DsCellProperties
public final int getEditableVal()
public final void setEditableVal(int val)
public final int getHorizontalAlignment()
getHorizontalAlignment
in interface DsCellProperties
public final void setHorizontalAlignment(int val)
ALIGN_DEFAULT
- use the alignment set for the column
LEFT
CENTER
RIGHT
setHorizontalAlignment
in interface DsCellProperties
public final int getVerticalAlignment()
getVerticalAlignment
in interface DsCellProperties
public final void setVerticalAlignment(int val)
ALIGN_DEFAULT
- use the alignment set for the column
TOP
CENTER
BOTTOM
setVerticalAlignment
in interface DsCellProperties
public final int getTextStyle()
getTextStyle
in interface DsCellProperties
public final void setTextStyle(int val)
DEFAULT
- use the value set for the column default value
FLAT
- draw text normally
RAISED
- make text look like it raised off the screen with a bevel
LOWERED
- make text look like it inset into the screen
RAISED_LIGHT
- make text look like it raised off the screen but without the shadow
LOWERED_LIGHT
- make text look like it inset into the screen but without the shadow
RAISED and LOWERED
look good with larger or bold fonts. For smaller fonts use
RAISED_LIGHT and LOWERED_LIGHT
setTextStyle
in interface DsCellProperties
public final int getRotation()
getRotation
in interface DsCellProperties
public final void setRotation(int val)
ROTATE_0
- draw text normally
ROTATE_90
- draw text and icon at a 90 degree angle
ROTATE_270
- draw text and icon at a 270 degree angle
setRotation
in interface DsCellProperties
public void setBorder(int borderLineWidth, int borderStyle, Paint borderLineColor)
setBorder
in interface DsCellProperties
setBorderLineWidth(int)
,
setBorderStyle(int)
,
setBorderLineColor(java.awt.Paint)
,
setBorderLines(int)
public void setBorder(int borderLineWidth, int borderStyle, Paint borderLineColor, int borderLines)
setBorder
in interface DsCellProperties
setBorderLineWidth(int)
,
setBorderStyle(int)
,
setBorderLineColor(java.awt.Paint)
,
setBorderLines(int)
public final int getBorderStyle()
getBorderStyle
in interface DsCellProperties
public final void setBorderStyle(int val)
setBorderStyle
in interface DsCellProperties
public final int getBorderLines()
getBorderLines
in interface DsCellProperties
public final void setBorderLines(int val)
setBorderLines
in interface DsCellProperties
public final int getBorderLineWidth()
getBorderLineWidth
in interface DsCellProperties
public final void setBorderLineWidth(int val)
setBorderLineWidth
in interface DsCellProperties
public final Paint getBorderLineColor()
getBorderLineColor
in interface DsCellProperties
public final void setBorderLineColor(Paint c)
setBorderLineColor
in interface DsCellProperties
public final Border getBorder()
getBorder
in interface DsCellProperties
public final void setBorder(Border b)
setBorder
in interface DsCellProperties
public final Icon getIcon()
getIcon
in interface DsCellProperties
public final void setIcon(Icon icon)
The default value of this property is null.
setIcon
in interface DsCellProperties
setVerticalTextPosition(int)
,
setHorizontalTextPosition(int)
public final void setIcon(Image image)
setIcon
in interface DsCellProperties
setIcon(Icon)
public final int getHorizontalTextPosition()
getHorizontalTextPosition
in interface DsCellProperties
public final void setHorizontalTextPosition(int textPosition)
LEFT - text is on the left side of the icon. CENTER - text and icon are centered horizontally. RIGHT - text is on the right side of the icon. (Default)
setHorizontalTextPosition
in interface DsCellProperties
public final int getVerticalTextPosition()
getVerticalTextPosition
in interface DsCellProperties
public final void setVerticalTextPosition(int textPosition)
TOP - text is on the top of the icon. CENTER - text and icon are centered vertically. (Default) BOTTOM - text is on the bottom of the icon.
setVerticalTextPosition
in interface DsCellProperties
public final Object getFormat()
getFormat
in interface DsCellProperties
public final void setFormat(Object val)
setFormat
in interface DsCellProperties
public final String getToolTipText()
getToolTipText
in interface DsCell
public final void setToolTipText(String text)
setToolTipText
in interface DsCell
public final Object getData()
getData
in interface DsCell
public final void setData(Object userData)
setData
in interface DsCell
public final int getRowSpan()
getRowSpan
in interface DsCell
protected final void setRowSpan(int rowSpan)
public final int getColumnSpan()
getColumnSpan
in interface DsCell
public final void setColumnSpan(int colSpan)
public final boolean isVisible()
isVisible
in interface DsCell
public static String formatValue(DsCellProperties cell, Object value)
public String toString()
toString
in class Object
getText()
,
getFormat()
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |