|
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 | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.table.JCTable | +--com.klg.jclass.table.Table
Compatability class.
Table is the JClass LiveTable 3.* compatability class for JClass LiveTable 4.*. The easiest way to migrate JClass LiveTable 3.* code to JClass LiveTable 4.* is to use this class; documentation is provided in the JClass LiveTable Programmer's Guide.
Since JClass LiveTable 3.* and JClass LiveTable 4.* use different property setting mechanisms, using the Table class is inefficient. Table tries to map 3.*-style calls to LiveTable 4.* style-based property setting. The result is typically a lot of extra styles.
Note: JClass LiveTable 2.* compatability is no longer available. It simply was no longer practical to support the container-based model of JClass LiveTable 2.*.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Table()
Default constructor. |
Method Summary | |
protected void |
adjustCellRange(com.klg.jclass.table.JCCellRange cr)
Adjusts a cell range to this table instance. |
int |
getAlignment(int row,
int column)
Retreives the alignment enumeration for a particular cell. |
Color |
getBackground(int row,
int column)
Returns the background value for a cell or label. |
int |
getBorderSides(int row,
int column)
Retrieves the cell border side enum for a particular cell. |
int |
getBorderType(int row,
int column)
Gets the broder type for a particular cell. |
int |
getCellBorderSides(int row,
int column)
Returns the CellBorderSides value for a cell or label. |
com.klg.jclass.table.CellBorderModel |
getCellBorderType(int row,
int column)
Returns the cellBorderType value for a cell or label. |
com.klg.jclass.cell.JCCellEditor |
getCellEditor(int row,
int column)
Gets the cell's CellEditor value. |
com.klg.jclass.cell.JCCellRenderer |
getCellRenderer(int row,
int column)
Gets the cell's CellRenderer value. |
int |
getClipArrows()
Gets the value of the ClipArrows property. |
boolean |
getColumnLabelDisplay()
Returns true if column label display is enabled,
false otherwise. |
int |
getDatatype(int row,
int column)
This method is not yet supported. |
boolean |
getDoubleBuffer()
Returns true if double buffering is enabled,
false otherwise. |
boolean |
getEditable(int row,
int column)
Returns the editable value for a cell. |
Color |
getFocusRectColor()
Gets the focus rectangle color. |
Font |
getFont(int row,
int column)
Returns the font value for a cell or label. |
Color |
getForeground(int row,
int column)
Returns the foreground value for a cell or label. |
int |
getFrameBorderType()
Gets the frame border type as an enum value. |
int |
getFrameShadowThickness()
Gets the frame shadow thickness. |
int |
getHorizontalAlignment(int row,
int column)
Returns the horizontal alignment value for a cell or label. |
int |
getMaxLength(int row,
int column)
This method is not yet supported. |
int |
getMode()
This method is not yet supported. |
boolean |
getMultiline(int row,
int column)
This method is not yet supported. |
boolean |
getRepaint()
Returns true if repaint is enabled, false otherwise. |
boolean |
getResizeByLabelsOnly()
Returns true if cell resizing can happen only using
column or row labels, false otherwise. |
boolean |
getRowLabelDisplay()
Returns true if row label display is enabled,
false otherwise. |
int |
getShadowThickness()
Gets the shadown thickness, which is the thickness of all cell borders. |
int |
getStringCase(int row,
int column)
This method is not yet supported. |
Component |
getTextComponent()
This method is not yet supported. |
boolean |
getTrackCursor()
Returns true if cursor tracking is enabled, false
otherwise. |
boolean |
getTraversable(int row,
int column)
Returns the traversable value for a cell. |
boolean |
getTraverseCycle()
Returns true if traversal will cycle on the
same line of cells (same row), false otherwise. |
Object |
getUserdata(int row,
int column)
|
int |
getVerticalAlignment(int row,
int column)
Returns the vertical alignment value for a cell or label. |
void |
print()
This method is not yet supported. |
void |
setAlignment(int row,
int column,
int value)
Sets the alignment for a particular cell. |
void |
setAlignment(com.klg.jclass.table.JCCellRange cr,
int value)
Sets the alignment for a range of cells. |
void |
setBackground(int row,
int column,
Color value)
Sets the background color of cells and labels. |
void |
setBackground(com.klg.jclass.table.JCCellRange cr,
Color value)
Sets the background color for a range of cells. |
void |
setBorderSides(int row,
int column,
int value)
Sets the cell border side enum for a particular cell. |
void |
setBorderType(int row,
int column,
int value)
Sets the broder type for a particular cell. |
void |
setCellBorderSides(int row,
int column,
int value)
Sets the sides of a cell or label that display the border type in their border area. |
void |
setCellBorderSides(com.klg.jclass.table.JCCellRange cr,
int value)
Sets the sides of a cell or label for a range of cells. |
void |
setCellBorderType(int row,
int column,
com.klg.jclass.table.CellBorderModel value)
Sets the custom style used for cell and label borders. |
void |
setCellBorderType(int row,
int column,
int type)
Sets the custom style used for cell and label borders as an enum. |
void |
setCellBorderType(com.klg.jclass.table.JCCellRange cr,
com.klg.jclass.table.CellBorderModel value)
Sets the custom style used for cell and label borders for a range of cells. |
void |
setCellEditor(int row,
int column,
com.klg.jclass.cell.JCCellEditor editor)
Sets the editor for a cell. |
void |
setCellEditor(com.klg.jclass.table.JCCellRange cr,
com.klg.jclass.cell.JCCellEditor editor)
Sets the editor for a range of cells. |
void |
setCellRenderer(int row,
int column,
com.klg.jclass.cell.JCCellRenderer renderer)
Sets the renderer for a cell. |
void |
setCellRenderer(com.klg.jclass.table.JCCellRange cr,
com.klg.jclass.cell.JCCellRenderer renderer)
Sets the renderer for a range of cells. |
void |
setClipArrows(int value)
Sets the value of the ClipArrows property. |
void |
setDatatype(int row,
int column,
int value)
This method is not yet supported. |
void |
setDoubleBuffer(boolean value)
Sets the double buffering value for table. |
void |
setEditable(int row,
int column,
boolean value)
Sets whether the cell can be edited (default: true ). |
void |
setEditable(com.klg.jclass.table.JCCellRange cr,
boolean value)
Sets whether a range of cells can be edited. |
void |
setFocusRectColor(Color value)
Sets the focus rectangle color This methods calls JCTable.setFocusColor() . |
void |
setFont(int row,
int column,
Font value)
Sets the font to be used to display cell and/or label values. |
void |
setFont(com.klg.jclass.table.JCCellRange cr,
Font value)
Sets the font for a range of cells. |
void |
setForeground(int row,
int column,
Color value)
Sets the foreground color of cells and labels. |
void |
setForeground(com.klg.jclass.table.JCCellRange cr,
Color value)
Sets the foreground color for a range of cells. |
void |
setFrameBorderType(int value)
Sets the frame border type as an enum value. |
void |
setFrameShadowThickness(int value)
Sets the frame shadow thickness. |
void |
setHorizontalAlignment(int row,
int column,
int value)
Sets the horizontal alignment of cell/label text and/or image. |
void |
setHorizontalAlignment(com.klg.jclass.table.JCCellRange cr,
int value)
Sets the horizontal alignment for a range of cells. |
void |
setMaxLength(int row,
int column,
int value)
This method is not yet supported. |
void |
setMode(int value)
This method is not yet supported. |
void |
setMultiline(int row,
int column,
boolean value)
This method is not yet supported. |
void |
setRepaint(boolean value)
Disables repainting if set to false ; otherwise,
enables table repainting. |
void |
setResizeByLabelsOnly(boolean value)
Determines whether cell resizing is limited to column and row labels, or can happen on any cell. |
void |
setShadowThickness(int value)
Sets the shadown thickness, which is the thickness of all cell borders. |
void |
setStringCase(int row,
int column,
int value)
This method is not yet supported. |
void |
setTraversable(int row,
int column,
boolean value)
Sets whether the cell can be traversed to (default: true ). |
void |
setTraversable(com.klg.jclass.table.JCCellRange cr,
boolean value)
Sets whether the cell can be traversed to for a range of cells. |
void |
setVerticalAlignment(int row,
int column,
int value)
Sets the vertical alignment of cell/label text and/or image. |
void |
setVerticalAlignment(com.klg.jclass.table.JCCellRange cr,
int value)
Sets the vertical alignment for a range of cells. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Table()
Method Detail |
public int getAlignment(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
JCTableEnum.BOTTOMLEFT
public void setAlignment(int row, int column, int value)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- alignment enum; for example, JCTableEnum.BOTTOMLEFT
public void setAlignment(com.klg.jclass.table.JCCellRange cr, int value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- alignment enum; for example, JCTableEnum.BOTTOMLEFT
setAlignment(int, int, int)
public Color getBackground(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setBackground(int, int, java.awt.Color)
public void setBackground(int row, int column, Color value)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- new background color for specified cellgetBackground(int, int)
public void setBackground(com.klg.jclass.table.JCCellRange cr, Color value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setBackground(int, int, java.awt.Color)
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row, int column)
CellRenderer
value.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
CellRenderer
valuesetCellRenderer(int, int, com.klg.jclass.cell.JCCellRenderer)
public void setCellRenderer(int row, int column, com.klg.jclass.cell.JCCellRenderer renderer)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)renderer
- public void setCellRenderer(com.klg.jclass.table.JCCellRange cr, com.klg.jclass.cell.JCCellRenderer renderer)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)renderer
- setCellRenderer(int, int, com.klg.jclass.cell.JCCellRenderer)
public com.klg.jclass.cell.JCCellEditor getCellEditor(int row, int column)
CellEditor
value.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
CellEditor
valuesetCellEditor(int, int, com.klg.jclass.cell.JCCellEditor)
public void setCellEditor(int row, int column, com.klg.jclass.cell.JCCellEditor editor)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)editor
- public void setCellEditor(com.klg.jclass.table.JCCellRange cr, com.klg.jclass.cell.JCCellEditor editor)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)editor
- setCellEditor(int, int, com.klg.jclass.cell.JCCellEditor)
public int getBorderSides(int row, int column)
getCellBorderSizes()
.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
JCTableEnum.BORDERSIDE_ALL
getCellBorderSides(int, int)
public void setBorderSides(int row, int column, int value)
setCellBorderSides()
.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- cell border sides enum; for example,
JCTableEnum.BORDERSIDE_ALL
setCellBorderSides(int, int, int)
public int getBorderType(int row, int column)
getCellBorderType()
.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
JCTableEnum.BORDER_ETCHED_IN
getCellBorderType(int, int)
public void setBorderType(int row, int column, int value)
setCellBorderType()
.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- cell border type enum; for example,
JCTableEnum.BORDER_ETCHED_IN
setCellBorderType(int, int, com.klg.jclass.table.CellBorderModel)
public int getCellBorderSides(int row, int column)
CellBorderSides
value for a cell or label.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
JCTableEnum.BORDERSIDE_ALL
setCellBorderSides(int, int, int)
public void setCellBorderSides(int row, int column, int value)
JCTableEnum.BORDERSIDE_NONE
JCTableEnum.BORDERSIDE_ALL
JCTableEnum.BORDERSIDE_LEFT
JCTableEnum.BORDERSIDE_RIGHT
JCTableEnum.BORDERSIDE_TOP
JCTableEnum.BORDERSIDE_BOTTOM
The width of all cell/label borders is specified by
CellBorderWidth
.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- cell border sides enum; for example,
JCTableEnum.BORDERSIDE_ALL
getCellBorderSides(int, int)
,
JCTable.setCellBorderWidth(int)
public void setCellBorderSides(com.klg.jclass.table.JCCellRange cr, int value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- cell border sides enum; for example,
JCTableEnum.BORDERSIDE_ALL
setCellBorderSides(int, int, int)
public com.klg.jclass.table.CellBorderModel getCellBorderType(int row, int column)
cellBorderType
value for a cell or label.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
JCTableEnum.BORDER_ETCHED_IN
setCellBorderType(int, int, com.klg.jclass.table.CellBorderModel)
public void setCellBorderType(int row, int column, com.klg.jclass.table.CellBorderModel value)
CellBorder
interface.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- object implementing CellBorderModel
(in other words,
a real Swing border that LiveTable can understand)public void setCellBorderType(int row, int column, int type)
JCCellBorder
object.
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)type
- valid border type enum, one of
JCTableEnum.BORDER_NONE
JCTableEnum.BORDER_ETCHED_IN
JCTableEnum.BORDER_ETCHED_OUT
JCTableEnum.BORDER_IN
JCTableEnum.BORDER_OUT
JCTableEnum.BORDER_PLAIN
JCTableEnum.BORDER_FRAME_IN
JCTableEnum.BORDER_FRAME_OUT
JCTableEnum.BORDER_THIN
public void setCellBorderType(com.klg.jclass.table.JCCellRange cr, com.klg.jclass.table.CellBorderModel value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- object implementing CellBorderModel
(in other words,
a real Swing border that LiveTable can understand)public boolean getColumnLabelDisplay()
true
if column label display is enabled,
false
otherwise. This method maps to
JCTable.isColumnLabelDisplay()
.
true
if column label display is enabled,
false
otherwiseJCTable.isColumnLabelDisplay()
public boolean getDoubleBuffer()
true
if double buffering is enabled,
false
otherwise. This method maps to
JComponent.isDoubleBuffered()
.
true
if double buffering is enabled,
false
otherwiseJComponent.isDoubleBuffered()
public void setDoubleBuffer(boolean value)
JComponent.setDoubleBuffer()
.
value
- JComponent.setDoubleBuffered(boolean)
public boolean getEditable(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setEditable(int, int, boolean)
public void setEditable(int row, int column, boolean value)
true
).
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- public void setEditable(com.klg.jclass.table.JCCellRange cr, boolean value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setEditable(int, int, boolean)
public Color getFocusRectColor()
JCTable.getFocusColor()
.
JCTable.getFocusColor()
public void setFocusRectColor(Color value)
JCTable.setFocusColor()
.
value
- JCTable.setFocusColor(java.awt.Color)
public Font getFont(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setFont(int, int, java.awt.Font)
public void setFont(int row, int column, Font value)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- public void setFont(com.klg.jclass.table.JCCellRange cr, Font value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setFont(int, int, java.awt.Font)
public Color getForeground(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setForeground(int, int, java.awt.Color)
public void setForeground(int row, int column, Color value)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- getForeground(int, int)
public void setForeground(com.klg.jclass.table.JCCellRange cr, Color value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setForeground(int, int, java.awt.Color)
public int getFrameShadowThickness()
JCTable.getFrameBorderWidth()
.
JCTable.getFrameBorderWidth()
public void setFrameShadowThickness(int value)
JCTable.setFrameBorderWidth()
.
value
- JCTable.setFrameBorderWidth(int)
public int getFrameBorderType()
JCTableEnum.BORDER_NONE
JCTableEnum.BORDER_ETCHED_IN
JCTableEnum.BORDER_ETCHED_OUT
JCTableEnum.BORDER_IN
JCTableEnum.BORDER_OUT
JCTableEnum.BORDER_PLAIN
JCTableEnum.BORDER_FRAME_IN
JCTableEnum.BORDER_FRAME_OUT
JCTableEnum.BORDER_THIN
public void setFrameBorderType(int value)
value
- Valid border type enum, one of
JCTableEnum.BORDER_NONE
JCTableEnum.BORDER_ETCHED_IN
JCTableEnum.BORDER_ETCHED_OUT
JCTableEnum.BORDER_IN
JCTableEnum.BORDER_OUT
JCTableEnum.BORDER_PLAIN
JCTableEnum.BORDER_FRAME_IN
JCTableEnum.BORDER_FRAME_OUT
JCTableEnum.BORDER_THIN
public int getHorizontalAlignment(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setHorizontalAlignment(int, int, int)
public void setHorizontalAlignment(int row, int column, int value)
JCTableEnum.LEFT
JCTableEnum.CENTER
JCTableEnum.RIGHT
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- public void setHorizontalAlignment(com.klg.jclass.table.JCCellRange cr, int value)
cr
- range of cells (Note: if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setHorizontalAlignment(int, int, int)
public boolean getRepaint()
true
if repaint is enabled, false
otherwise.
This method calls JCTable.isRepaintEnabled()
.
true
if repaint is enabled, false
otherwiseJCTable.isRepaintEnabled()
public void setRepaint(boolean value)
false
; otherwise,
enables table repainting. Use this method to change
a lot of properties without forcing repainting.
This method calls JCTable.setRepaintEnabled()
.
value
- JCTable.setRepaintEnabled(boolean)
public boolean getResizeByLabelsOnly()
true
if cell resizing can happen only using
column or row labels, false
otherwise. This method
uses JCTable.getAllowResizeBy()
.
true
if cell resizing can happen only using
column or row labels, false
otherwiseJCTable.getAllowResizeBy()
public void setResizeByLabelsOnly(boolean value)
JCTable.setAllowResizeBy()
.
value
- JCTable.setAllowResizeBy(int)
public boolean getRowLabelDisplay()
true
if row label display is enabled,
false
otherwise. This method maps to
JCTable.isRowLabelDisplay()
.
true
if row label display is enabled,
false
otherwiseJCTable.isRowLabelDisplay()
public int getShadowThickness()
JCTable.getCellBorderWidth()
.
JCTable.getCellBorderWidth()
public void setShadowThickness(int value)
JCTable.setCellBorderWidth()
.
value
- JCTable.setCellBorderWidth(int)
public boolean getTrackCursor()
true
if cursor tracking is enabled, false
otherwise. Cursor tracking determines whether the
cursor changes as it moves over cell borders. This
method maps to JCTable.isTrackCursor()
.
true
if cursor tracking is enabled, false
otherwiseJCTable.isTrackCursor()
public boolean getTraverseCycle()
true
if traversal will cycle on the
same line of cells (same row), false
otherwise.
This method maps to JCtable.isTraverseCycle()
.
true
if traversal will cycle on the
same line of cells (same row), false
otherwiseJCTable.isTraverseCycle()
public boolean getTraversable(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setTraversable(int, int, boolean)
public void setTraversable(int row, int column, boolean value)
true
).
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- public void setTraversable(com.klg.jclass.table.JCCellRange cr, boolean value)
cr
- range of cells (Note: that if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setTraversable(int, int, boolean)
public Object getUserdata(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
public int getVerticalAlignment(int row, int column)
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)
setVerticalAlignment(int, int, int)
public void setVerticalAlignment(int row, int column, int value)
JCTableEnum.TOP
JCTableEnum.CENTER
JCTableEnum.BOTTOM
row
- row index for desired cell (starts at 0)column
- column index for desired cell (starts at 0)value
- public void setVerticalAlignment(com.klg.jclass.table.JCCellRange cr, int value)
cr
- range of cells (Note: that if ALL or
ALLCELLS is used for end_row
or end_column
in
cr, it will be translated to the actual number of
rows or columns in the table; this means that
you must attach the data source before using
ALL or ALLCELLS in order for the call to work)value
- setVerticalAlignment(int, int, int)
public int getClipArrows()
ClipArrows
property.
The ClipArrows
property determines whether text clip arrows
are shown when the contents of the cell do not fit in the cell
frame.
JCTableEnum.CLIP_ARROWS_BOTH
,
JCTableEnum.CLIP_ARROWS_RIGHT
,
JCTableEnum.CLIP_ARROWS_DOWN
, or
JCTableEnum.CLIP_ARROWS_NONE
,setClipArrows(int)
public void setClipArrows(int value)
ClipArrows
property.
The ClipArrows
property determines whether text clip arrows
are shown when the contents of the cell do not fit in the cell
frame.
value
- one of JCTableEnum.CLIP_ARROWS_BOTH
,
JCTableEnum.CLIP_ARROWS_RIGHT
,
JCTableEnum.CLIP_ARROWS_DOWN
, or
JCTableEnum.CLIP_ARROWS_NONE
,public int getDatatype(int row, int column)
column
- row
-
public void setDatatype(int row, int column, int value)
column
- row
- value
- public int getMaxLength(int row, int column)
column
- row
-
public void setMaxLength(int row, int column, int value)
column
- row
- value
- public int getMode()
public void setMode(int value)
value
- public boolean getMultiline(int row, int column)
column
- row
-
public void setMultiline(int row, int column, boolean value)
row
- column
- value
- public int getStringCase(int row, int column)
column
- row
-
public void setStringCase(int row, int column, int value)
column
- row
- value
- public Component getTextComponent()
public void print()
protected void adjustCellRange(com.klg.jclass.table.JCCellRange cr)
set*(JCCellRange)
methods in Table to
make ALLCELLS/ALL values use the current table size.
cr
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |