JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class Table

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.klg.jclass.table.JCTable
                          |
                          +--com.klg.jclass.table.Table
All Implemented Interfaces:
ActionListener, EventListener, FocusListener, ImageObserver, MenuContainer, Serializable

public class Table
extends JCTable

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.*.

See Also:
Serialized Form

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 com.klg.jclass.table.JCTable
actions, adjustmentHandler, allow_cell_resize, allow_resize_by, auto_edit, auto_scroll, cell_border_width, cellAreaHandler, cellDisplayListeners, cellLayout, cellRendererPane, cellStyles, column_label_display, column_label_offset, column_label_placement, columnWidths, component_border_width, current_column, current_row, dataView, default_cell_style, default_label_style, edit_height_policy, edit_width_policy, editCellListeners, focus_color, focus_indicator, focusManager, frame_border, frame_border_width, frozen_column_placement, frozen_columns, frozen_row_placement, frozen_rows, hsb, hsb_attach, hsb_display, hsb_offset, hsb_position, hsb_track, hsb_track_row, ignore_container_size, jump_mode, keyHandler, left_column, margin_height, margin_width, min_cell_visibility, mouseHandler, mouseWheelListener, moveables, needs_initial_set_left_check, needs_initial_set_top_check, needs_initial_traverse, oldFocusOwner, paintListeners, pointer_traverse_forces_edit, popupMenu, popupMenuEnabled, repaint_enabled, resize_even, resize_interactive, resizeListeners, resizeMotionListeners, row_label_display, row_label_offset, row_label_placement, rowHeights, scrolling, scrollListeners, select_include_labels, selected_background, selected_background_mode, selected_foreground, selected_foreground_mode, selectionHandler, selectListeners, set_initial_left, set_initial_top, set_left_column, set_top_row, sort_column, sort_direction, sort_series, sortListeners, spanHandler, store_image, store_image_enabled, store_origin, tableChangeHandler, tableLayout, top_row, track_background, track_cursor, track_foreground, track_size, traverse_cycle, traverseListeners, userData, variable_estimate_count, visible_columns, visible_rows, vsb, vsb_attach, vsb_display, vsb_offset, vsb_position, vsb_track, vsb_track_column
 
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 com.klg.jclass.table.JCTable
actionPerformed, addAction, addAction, addCellDisplayListener, addColumnSelection, addEditCellListener, addNotify, addPaintListener, addResizeCellListener, addResizeCellMotionListener, addRowSelection, addScrollListener, addSelection, addSelectListener, addSortListener, addSpannedRange, addTableMouseWheelListener, addToMoveables, addTraverseCellListener, beginEdit, cancelEdit, clearSelectedCells, clearSelection, clearSpannedRanges, cloneCellStyles, commitEdit, createCellStyle, createDefaultCellLayout, createDefaultCellStyleSeries, createDefaultColumnWidthSeries, createDefaultDataSource, createDefaultDataView, createDefaultRowHeightSeries, createDefaultSelectionModel, createDefaultSpanHandler, createDefaultUserDataSeries, createPopupMenu, dispose, doLayout, doResizeEvents, dragColumn, dragRow, findMethod, fireJCCellDisplayEvent, fireJCEditCellEvent, fireJCPaintEvent, fireJCResizeCellEvent, fireJCResizeCellMotionEvent, fireJCScrollEvent, fireJCSelectEvent, fireJCSortEvent, fireJCTraverseCellEvent, focusGained, focusLost, getAction, getAllowCellResize, getAllowResizeBy, getAutoScroll, getCellAreaHandler, getCellBorderWidth, getCellBounds, getCellLayout, getCellPosition, getCellStyle, getCellStyleRanges, getCellStyles, getCellStyleValues, getCharHeight, getCharWidth, getColumnCellSize, getColumnClass, getColumnLabelOffset, getColumnLabelPlacement, getColumnPixelWidth, getColumnWidthValues, getComponent, getComponentBorderWidth, getComponentModel, getCurrentCell, getCurrentColumn, getCurrentRow, getDataSource, getDataView, getDefaultCellStyle, getDefaultLabelStyle, getEditHeightPolicy, getEditingComponent, getEditTraverseHandler, getEditWidthPolicy, getFocusColor, getFocusIndicator, getFocusManager, getFrameBorder, getFrameBorderWidth, getFrozenColumnPlacement, getFrozenColumns, getFrozenRowPlacement, getFrozenRows, getHorizSB, getHorizSBAttachment, getHorizSBDisplay, getHorizSBOffset, getHorizSBPosition, getHorizSBTrack, getHorizSBTrackRow, getJumpScroll, getKeyInputHandler, getLeftColumn, getLicense, getMarginHeight, getMarginWidth, getMaxHeight, getMaxWidth, getMinCellVisibility, getMinHeight, getMinimumSize, getMinWidth, getMouseInputHandler, getNumColumns, getNumRows, getNumVisibleColumns, getNumVisibleRows, getPixelHeight, getPixelWidth, getPointerTraverseForcesEdit, getPosition, getPreferredSize, getRowCellSize, getRowHeightValues, getRowLabelOffset, getRowLabelPlacement, getRowPixelHeight, getSelectedBackground, getSelectedBackgroundMode, getSelectedCells, getSelectedForeground, getSelectedForegroundMode, getSelectIncludeLabels, getSelectionModel, getSelectionPolicy, getSpanHandler, getSpannedRange, getSpannedRanges, getTableLayout, getTextHeightOffset, getTextWidthOffset, getTopRow, getTrackBackground, getTrackForeground, getTrackSize, getUI, getUIClassID, getUniqueCellStyle, getUserData, getVariableEstimateCount, getVertSB, getVertSBAttachment, getVertSBDisplay, getVertSBOffset, getVertSBPosition, getVertSBTrack, getVertSBTrackColumn, getVisibleCells, getVisibleColumns, getVisibleRows, goToRow, hasComponent, hasComponents, hideShowColumns, isAutoEdit, isCell, isCellVisible, isColumnHidden, isColumnLabel, isColumnLabelDisplay, isColumnVisible, isContentClipped, isCurrentCell, isEditable, isFocusTraversable, isIgnoreContainerSize, isLabel, isPopupMenuEnabled, isRecalcRequired, isRelayoutRequired, isRepaintEnabled, isRepaintRequired, isResizable, isResizeEven, isResizeInteractive, isRowHidden, isRowLabel, isRowLabelDisplay, isRowVisible, isSelected, isSeriesDataSorted, isStoreImageEnabled, isTrackCursor, isTracking, isTraversable, isTraverseCycle, isValidCell, keyPressed, keyReleased, keyTyped, layoutAreas, makeColumnVisible, makeRowVisible, makeVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintComponent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeAction, removeAction, removeAction, removeAllActions, removeCellDisplayListener, removeEditCellListener, removePaintListener, removeResizeCellListener, removeResizeCellMotionListener, removeScrollListener, removeSelectListener, removeSortListener, removeSpannedRange, removeTableMouseWheelListener, removeTraverseCellListener, repaintSelected, requestChange, requestChange, requestChange, requestFocus, resetSortedRows, resetSwappedColumns, resetSwappedRows, reshape, selectAll, setAllowCellResize, setAllowResizeBy, setAutoEdit, setAutoScroll, setCellBorderWidth, setCellEditor, setCellEditor, setCellEditorMapping, setCellLayout, setCellRenderer, setCellRenderer, setCellRendererMapping, setCellStyle, setCellStyle, setCellStyles, setCharHeight, setCharWidth, setColumnCellSize, setColumnHidden, setColumnLabelDisplay, setColumnLabelOffset, setColumnLabelPlacement, setColumnSelection, setColumnWidthChanged, setComponent, setComponent, setComponentBorderWidth, setCurrentCell, setCurrentCell, setCurrentCell, setCursor, setDataSource, setDataView, setEditHeightPolicy, setEditWidthPolicy, setFocusColor, setFocusIndicator, setFocusManager, setFrameBorder, setFrameBorderWidth, setFrozenColumnPlacement, setFrozenColumns, setFrozenRowPlacement, setFrozenRows, setHorizSB, setHorizSBAttachment, setHorizSBDisplay, setHorizSBOffset, setHorizSBPosition, setHorizSBTrack, setHorizSBTrackRow, setIgnoreContainerSize, setJumpScroll, setLeftColumn, setLicense, setMarginHeight, setMarginWidth, setMaxHeight, setMaxWidth, setMinCellVisibility, setMinHeight, setMinWidth, setPixelHeight, setPixelWidth, setPointerTraverseForcesEdit, setPopupMenuEnabled, setRecalcRequired, setRelayoutRequired, setRepaintEnabled, setRepaintRequired, setResizeEven, setResizeInteractive, setRowCellSize, setRowHeightChanged, setRowHidden, setRowLabelDisplay, setRowLabelOffset, setRowLabelPlacement, setRowSelection, setSelectedBackground, setSelectedBackgroundMode, setSelectedCells, setSelectedCells, setSelectedForeground, setSelectedForegroundMode, setSelectIncludeLabels, setSelection, setSelectionModel, setSelectionPolicy, setSeriesDataSorted, setSpanHandler, setSpannedRanges, setStoreImageEnabled, setTopRow, setTrackBackground, setTrackCursor, setTrackForeground, setTrackSize, setTraverseCycle, setUI, setUserData, setUserData, setVariableEstimateCount, setVertSB, setVertSBAttachment, setVertSBDisplay, setVertSBOffset, setVertSBPosition, setVertSBTrack, setVertSBTrackColumn, setVisibleColumns, setVisibleRows, showPopupMenu, sortByColumn, sortByColumn, sortByColumn, sortByColumn, swapColumns, swapRows, traverse, traverse, updateUI, XtoColumn, XYToCell, YtoRow
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

public Table()
Default constructor.

Method Detail

getAlignment

public int getAlignment(int row,
                        int column)
Retreives the alignment enumeration for a particular cell.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
alignment enum; for example, JCTableEnum.BOTTOMLEFT

setAlignment

public void setAlignment(int row,
                         int column,
                         int value)
Sets the alignment for a particular cell.

Parameters:
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

setAlignment

public void setAlignment(com.klg.jclass.table.JCCellRange cr,
                         int value)
Sets the alignment for a range of cells.

Parameters:
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
See Also:
setAlignment(int, int, int)

getBackground

public Color getBackground(int row,
                           int column)
Returns the background value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
background color for desired cell
See Also:
setBackground(int, int, java.awt.Color)

setBackground

public void setBackground(int row,
                          int column,
                          Color value)
Sets the background color of cells and labels. When set to null, the color is inherited from the Component's background value.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value - new background color for specified cell
See Also:
getBackground(int, int)

setBackground

public void setBackground(com.klg.jclass.table.JCCellRange cr,
                          Color value)
Sets the background color for a range of cells.

Parameters:
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 -
See Also:
setBackground(int, int, java.awt.Color)

getCellRenderer

public com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row,
                                                          int column)
Gets the cell's CellRenderer value.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the cell's CellRenderer value
See Also:
setCellRenderer(int, int, com.klg.jclass.cell.JCCellRenderer)

setCellRenderer

public void setCellRenderer(int row,
                            int column,
                            com.klg.jclass.cell.JCCellRenderer renderer)
Sets the renderer for a cell.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
renderer -

setCellRenderer

public void setCellRenderer(com.klg.jclass.table.JCCellRange cr,
                            com.klg.jclass.cell.JCCellRenderer renderer)
Sets the renderer for a range of cells.

Parameters:
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 -
See Also:
setCellRenderer(int, int, com.klg.jclass.cell.JCCellRenderer)

getCellEditor

public com.klg.jclass.cell.JCCellEditor getCellEditor(int row,
                                                      int column)
Gets the cell's CellEditor value.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the cell's CellEditor value
See Also:
setCellEditor(int, int, com.klg.jclass.cell.JCCellEditor)

setCellEditor

public void setCellEditor(int row,
                          int column,
                          com.klg.jclass.cell.JCCellEditor editor)
Sets the editor for a cell.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
editor -

setCellEditor

public void setCellEditor(com.klg.jclass.table.JCCellRange cr,
                          com.klg.jclass.cell.JCCellEditor editor)
Sets the editor for a range of cells.

Parameters:
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 -
See Also:
setCellEditor(int, int, com.klg.jclass.cell.JCCellEditor)

getBorderSides

public int getBorderSides(int row,
                          int column)
Retrieves the cell border side enum for a particular cell. This method calls getCellBorderSizes().

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
Cell border sides enum; for example, JCTableEnum.BORDERSIDE_ALL
See Also:
getCellBorderSides(int, int)

setBorderSides

public void setBorderSides(int row,
                           int column,
                           int value)
Sets the cell border side enum for a particular cell. This method calls setCellBorderSides().

Parameters:
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
See Also:
setCellBorderSides(int, int, int)

getBorderType

public int getBorderType(int row,
                         int column)
Gets the broder type for a particular cell. This methods calls getCellBorderType().

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
cell border type enum; for example, JCTableEnum.BORDER_ETCHED_IN
See Also:
getCellBorderType(int, int)

setBorderType

public void setBorderType(int row,
                          int column,
                          int value)
Sets the broder type for a particular cell. This methods calls setCellBorderType().

Parameters:
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
See Also:
setCellBorderType(int, int, com.klg.jclass.table.CellBorderModel)

getCellBorderSides

public int getCellBorderSides(int row,
                              int column)
Returns the CellBorderSides value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
cell border sides enum; for example, JCTableEnum.BORDERSIDE_ALL
See Also:
setCellBorderSides(int, int, int)

setCellBorderSides

public 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. The value is a bitwise OR of the following:

The width of all cell/label borders is specified by CellBorderWidth.

Parameters:
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
See Also:
getCellBorderSides(int, int), JCTable.setCellBorderWidth(int)

setCellBorderSides

public void setCellBorderSides(com.klg.jclass.table.JCCellRange cr,
                               int value)
Sets the sides of a cell or label for a range of cells.

Parameters:
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
See Also:
setCellBorderSides(int, int, int)

getCellBorderType

public com.klg.jclass.table.CellBorderModel getCellBorderType(int row,
                                                              int column)
Returns the cellBorderType value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
cell border type enum; for example, JCTableEnum.BORDER_ETCHED_IN
See Also:
setCellBorderType(int, int, com.klg.jclass.table.CellBorderModel)

setCellBorderType

public void setCellBorderType(int row,
                              int column,
                              com.klg.jclass.table.CellBorderModel value)
Sets the custom style used for cell and label borders. Valid values are objects that implement the CellBorder interface.

Parameters:
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)

setCellBorderType

public void setCellBorderType(int row,
                              int column,
                              int type)
Sets the custom style used for cell and label borders as an enum. The enums are translated to an actual border using the JCCellBorder object.

Parameters:
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


setCellBorderType

public 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.

Parameters:
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)

getColumnLabelDisplay

public boolean getColumnLabelDisplay()
Returns true if column label display is enabled, false otherwise. This method maps to JCTable.isColumnLabelDisplay().

Returns:
true if column label display is enabled, false otherwise
See Also:
JCTable.isColumnLabelDisplay()

getDoubleBuffer

public boolean getDoubleBuffer()
Returns true if double buffering is enabled, false otherwise. This method maps to JComponent.isDoubleBuffered().

Returns:
true if double buffering is enabled, false otherwise
See Also:
JComponent.isDoubleBuffered()

setDoubleBuffer

public void setDoubleBuffer(boolean value)
Sets the double buffering value for table. This method maps to JComponent.setDoubleBuffer().

Parameters:
value -
See Also:
JComponent.setDoubleBuffered(boolean)

getEditable

public boolean getEditable(int row,
                           int column)
Returns the editable value for a cell.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
See Also:
setEditable(int, int, boolean)

setEditable

public void setEditable(int row,
                        int column,
                        boolean value)
Sets whether the cell can be edited (default: true).

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -

setEditable

public void setEditable(com.klg.jclass.table.JCCellRange cr,
                        boolean value)
Sets whether a range of cells can be edited.

Parameters:
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 -
See Also:
setEditable(int, int, boolean)

getFocusRectColor

public Color getFocusRectColor()
Gets the focus rectangle color. This methods calls JCTable.getFocusColor().

Returns:
the focus rectangle color
See Also:
JCTable.getFocusColor()

setFocusRectColor

public void setFocusRectColor(Color value)
Sets the focus rectangle color This methods calls JCTable.setFocusColor().

Parameters:
value -
See Also:
JCTable.setFocusColor(java.awt.Color)

getFont

public Font getFont(int row,
                    int column)
Returns the font value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the font value for a cell or label
See Also:
setFont(int, int, java.awt.Font)

setFont

public void setFont(int row,
                    int column,
                    Font value)
Sets the font to be used to display cell and/or label values.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -

setFont

public void setFont(com.klg.jclass.table.JCCellRange cr,
                    Font value)
Sets the font for a range of cells.

Parameters:
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 -
See Also:
setFont(int, int, java.awt.Font)

getForeground

public Color getForeground(int row,
                           int column)
Returns the foreground value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the foreground value for a cell or label
See Also:
setForeground(int, int, java.awt.Color)

setForeground

public void setForeground(int row,
                          int column,
                          Color value)
Sets the foreground color of cells and labels. When set to null the color is inherited from Component's foreground value.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -
See Also:
getForeground(int, int)

setForeground

public void setForeground(com.klg.jclass.table.JCCellRange cr,
                          Color value)
Sets the foreground color for a range of cells.

Parameters:
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 -
See Also:
setForeground(int, int, java.awt.Color)

getFrameShadowThickness

public int getFrameShadowThickness()
Gets the frame shadow thickness. This method calls JCTable.getFrameBorderWidth().

Returns:
frame shadow thickness
See Also:
JCTable.getFrameBorderWidth()

setFrameShadowThickness

public void setFrameShadowThickness(int value)
Sets the frame shadow thickness. This method calls JCTable.setFrameBorderWidth().

Parameters:
value -
See Also:
JCTable.setFrameBorderWidth(int)

getFrameBorderType

public int getFrameBorderType()
Gets the frame border type as an enum value.

Returns:
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


setFrameBorderType

public void setFrameBorderType(int value)
Sets the frame border type as an enum value.

Parameters:
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


getHorizontalAlignment

public int getHorizontalAlignment(int row,
                                  int column)
Returns the horizontal alignment value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the horizontal alignment value for a cell or label
See Also:
setHorizontalAlignment(int, int, int)

setHorizontalAlignment

public void setHorizontalAlignment(int row,
                                   int column,
                                   int value)
Sets the horizontal alignment of cell/label text and/or image. Valid values are:

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -

setHorizontalAlignment

public void setHorizontalAlignment(com.klg.jclass.table.JCCellRange cr,
                                   int value)
Sets the horizontal alignment for a range of cells.

Parameters:
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 -
See Also:
setHorizontalAlignment(int, int, int)

getRepaint

public boolean getRepaint()
Returns true if repaint is enabled, false otherwise. This method calls JCTable.isRepaintEnabled().

Returns:
true if repaint is enabled, false otherwise
See Also:
JCTable.isRepaintEnabled()

setRepaint

public void setRepaint(boolean value)
Disables repainting if set to false; otherwise, enables table repainting. Use this method to change a lot of properties without forcing repainting. This method calls JCTable.setRepaintEnabled().

Parameters:
value -
See Also:
JCTable.setRepaintEnabled(boolean)

getResizeByLabelsOnly

public boolean getResizeByLabelsOnly()
Returns true if cell resizing can happen only using column or row labels, false otherwise. This method uses JCTable.getAllowResizeBy().

Returns:
true if cell resizing can happen only using column or row labels, false otherwise
See Also:
JCTable.getAllowResizeBy()

setResizeByLabelsOnly

public void setResizeByLabelsOnly(boolean value)
Determines whether cell resizing is limited to column and row labels, or can happen on any cell. This method uses JCTable.setAllowResizeBy().

Parameters:
value -
See Also:
JCTable.setAllowResizeBy(int)

getRowLabelDisplay

public boolean getRowLabelDisplay()
Returns true if row label display is enabled, false otherwise. This method maps to JCTable.isRowLabelDisplay().

Returns:
true if row label display is enabled, false otherwise
See Also:
JCTable.isRowLabelDisplay()

getShadowThickness

public int getShadowThickness()
Gets the shadown thickness, which is the thickness of all cell borders. This method maps to JCTable.getCellBorderWidth().

Returns:
shadow thickness
See Also:
JCTable.getCellBorderWidth()

setShadowThickness

public void setShadowThickness(int value)
Sets the shadown thickness, which is the thickness of all cell borders. This method maps to JCTable.setCellBorderWidth().

Parameters:
value -
See Also:
JCTable.setCellBorderWidth(int)

getTrackCursor

public boolean getTrackCursor()
Returns 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().

Returns:
true if cursor tracking is enabled, false otherwise
See Also:
JCTable.isTrackCursor()

getTraverseCycle

public boolean getTraverseCycle()
Returns true if traversal will cycle on the same line of cells (same row), false otherwise. This method maps to JCtable.isTraverseCycle().

Returns:
true if traversal will cycle on the same line of cells (same row), false otherwise
See Also:
JCTable.isTraverseCycle()

getTraversable

public boolean getTraversable(int row,
                              int column)
Returns the traversable value for a cell.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
the traversable value for a cell
See Also:
setTraversable(int, int, boolean)

setTraversable

public void setTraversable(int row,
                           int column,
                           boolean value)
Sets whether the cell can be traversed to (default: true).

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -

setTraversable

public void setTraversable(com.klg.jclass.table.JCCellRange cr,
                           boolean value)
Sets whether the cell can be traversed to for a range of cells.

Parameters:
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 -
See Also:
setTraversable(int, int, boolean)

getUserdata

public Object getUserdata(int row,
                          int column)
Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:

getVerticalAlignment

public int getVerticalAlignment(int row,
                                int column)
Returns the vertical alignment value for a cell or label.

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
Returns:
vertical alignment value for a cell or label
See Also:
setVerticalAlignment(int, int, int)

setVerticalAlignment

public void setVerticalAlignment(int row,
                                 int column,
                                 int value)
Sets the vertical alignment of cell/label text and/or image. Valid values are:

Parameters:
row - row index for desired cell (starts at 0)
column - column index for desired cell (starts at 0)
value -

setVerticalAlignment

public void setVerticalAlignment(com.klg.jclass.table.JCCellRange cr,
                                 int value)
Sets the vertical alignment for a range of cells.

Parameters:
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 -
See Also:
setVerticalAlignment(int, int, int)

getClipArrows

public int getClipArrows()
Gets the value of the 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.

Returns:
One of JCTableEnum.CLIP_ARROWS_BOTH, JCTableEnum.CLIP_ARROWS_RIGHT, JCTableEnum.CLIP_ARROWS_DOWN, or JCTableEnum.CLIP_ARROWS_NONE,
See Also:
setClipArrows(int)

setClipArrows

public void setClipArrows(int value)
Sets the value of the 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.

Parameters:
value - one of JCTableEnum.CLIP_ARROWS_BOTH, JCTableEnum.CLIP_ARROWS_RIGHT, JCTableEnum.CLIP_ARROWS_DOWN, or JCTableEnum.CLIP_ARROWS_NONE,

getDatatype

public int getDatatype(int row,
                       int column)
This method is not yet supported.

Parameters:
column -
row -
Returns:

setDatatype

public void setDatatype(int row,
                        int column,
                        int value)
This method is not yet supported.

Parameters:
column -
row -
value -

getMaxLength

public int getMaxLength(int row,
                        int column)
This method is not yet supported.

Parameters:
column -
row -
Returns:

setMaxLength

public void setMaxLength(int row,
                         int column,
                         int value)
This method is not yet supported.

Parameters:
column -
row -
value -

getMode

public int getMode()
This method is not yet supported.

Returns:

setMode

public void setMode(int value)
This method is not yet supported.

Parameters:
value -

getMultiline

public boolean getMultiline(int row,
                            int column)
This method is not yet supported.

Parameters:
column -
row -
Returns:

setMultiline

public void setMultiline(int row,
                         int column,
                         boolean value)
This method is not yet supported.

Parameters:
row -
column -
value -

getStringCase

public int getStringCase(int row,
                         int column)
This method is not yet supported.

Parameters:
column -
row -
Returns:

setStringCase

public void setStringCase(int row,
                          int column,
                          int value)
This method is not yet supported.

Parameters:
column -
row -
value -

getTextComponent

public Component getTextComponent()
This method is not yet supported.

Returns:

print

public void print()
This method is not yet supported.


adjustCellRange

protected void adjustCellRange(com.klg.jclass.table.JCCellRange cr)
Adjusts a cell range to this table instance. Used by all set*(JCCellRange) methods in Table to make ALLCELLS/ALL values use the current table size.
Note: This means the table must be connected to a data source at the time of the call.

Parameters:
cr -

Copyright © 2004 Quest Software Inc..
All rights reserved.