JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.db
Class DataTable

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.klg.jclass.table.JCTable
                          |
                          +--com.klg.jclass.table.beans.LiveTable
                                |
                                +--com.klg.jclass.table.db.DataTable
All Implemented Interfaces:
ActionListener, EventListener, FocusListener, ImageObserver, JCTraverseCellListener, MenuContainer, Serializable
Direct Known Subclasses:
DSdbTable, JBdbTable

public class DataTable
extends LiveTable
implements JCTraverseCellListener

This is data aware Table subclass. It displays data from the data source and allows to change the data and save them back to the data source. This component navigates the result set of a data bean and can insert and delete records, cancel, save and requery data in the data source. The class is not a bean, but a common ancestor of all data aware table beans.

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
static String[] commands
           
protected  boolean useDatasourceEditable
           
 
Fields inherited from class com.klg.jclass.table.beans.LiveTable
cellRenderer, numColumns, numRows
 
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
protected DataTable()
          Protected DataTable constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Handles the popup menu commands.
 void afterTraverseCell(com.klg.jclass.table.JCTraverseCellEvent e)
          Invoked after the cell is traversed to if all listeners notified through traverseCell accepted the destination.
protected  boolean beforeCurrentRowChange()
          Saves the value from the current editor to the data source before the current row has been changed.
protected  void cancelAll()
           
protected  void cancelRows()
           
protected  void commitAll()
           
protected  void commitRows()
           
protected  com.klg.jclass.table.TablePopupMenu createPopupMenu()
          Creates data binding specific portion of the popup menu.
protected  void delete()
           
protected  Class getColumnClass(int column)
          Returns the class of a given column in the datasource.
protected  com.klg.jclass.table.db.DataBoundSource getDataBeanSource()
          Returns DataBoundSource for the table.
protected  String getDataBinding()
          Returns the table's value of the DataBinding object property.
protected  Object getNativeMetaData()
          Returns the IDE specific metadata object bound to the table.
protected  com.klg.jclass.table.JCCellRange getSelection()
           
 boolean getUseDatasourceEditable()
          Gets the useDatasourceEditable property.
protected  void initDataBinding(com.klg.jclass.table.db.DataBoundSource dataSource)
          Verifies that a new data source is valid and binds the table.
protected  void insert()
           
protected  void makeDataSource()
           
protected  void requeryAll()
           
protected  void requeryRows()
           
protected  boolean setDataBinding(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel)
          Sets up parameters to bind the DataBoundSource to a MetaDataModel in the given DataModel.
protected  void setDataSource(com.klg.jclass.datasource.BindingModel binding)
          Bind using a Binding
 void setDataSource(com.klg.jclass.datasource.DataModel dataModel)
          Binds the table to the given DataModel and to the root MetaDataModel.
 void setDataSource(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel)
          Binds the table to the given DataModel and MetaDataModel.
protected  void setDataSource(com.klg.jclass.datasource.DataModel dataModel, String metaDescription)
          Sets the data source to a DataModel and binds the MetaData to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g.
protected  void setDataSource(String dataBinding)
          Sets the DataBinding property value to the table.
 void setDataSource(com.klg.jclass.table.TableDataModel dataSource)
          Overwrites the superclass setDataSource to support enabling/disabling menu items.
 void setUseDatasourceEditable(boolean b)
          Sets the useDatasourceEditable property.
protected  void tableChanged()
          Cancel the editing and updates the table state, because the data source data table was changed.
 void traverseCell(com.klg.jclass.table.JCTraverseCellEvent e)
          Invoked before a cell is traversed to.
protected  void updateEditors()
          Updates cell editors according to the datasource table column types.
 
Methods inherited from class com.klg.jclass.table.beans.LiveTable
createArray, createArray2D, createCellStyle, createVector, createVector, getAbout, getCellSize, getData, getFrameBorderType, getFrozenCellLayout, getLabelLayout, getNumEditorColumns, getNumEditorRows, getSBLayout, getSelectedRange, getSpannedCells, getStyles, getSwingDataModel, makeDataSource, makePositionsArray, setAbout, setCellRenderer, setCellSize, setData, setFrameBorderType, setFrozenCellLayout, setLabelLayout, setNumEditorColumns, setNumEditorRows, setSBLayout, setSpannedCells, setStyles, setSwingDataModel
 
Methods inherited from class com.klg.jclass.table.JCTable
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, createDefaultCellLayout, createDefaultCellStyleSeries, createDefaultColumnWidthSeries, createDefaultDataSource, createDefaultDataView, createDefaultRowHeightSeries, createDefaultSelectionModel, createDefaultSpanHandler, createDefaultUserDataSeries, 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, 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, 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
 

Field Detail

useDatasourceEditable

protected boolean useDatasourceEditable

commands

public static final String[] commands
Constructor Detail

DataTable

protected DataTable()
Protected DataTable constructor. The constructor must not be called directly, but only from it's subclasses.

Method Detail

createPopupMenu

protected com.klg.jclass.table.TablePopupMenu createPopupMenu()
Creates data binding specific portion of the popup menu.

Overrides:
createPopupMenu in class JCTable
Returns:
the new popup menu

actionPerformed

public void actionPerformed(ActionEvent event)
Handles the popup menu commands.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class JCTable
Parameters:
event - the event generated by the action

setDataSource

public void setDataSource(com.klg.jclass.table.TableDataModel dataSource)
Overwrites the superclass setDataSource to support enabling/disabling menu items.

Overrides:
setDataSource in class JCTable
Parameters:
dataSource - the new data source for this table

setDataSource

public void setDataSource(com.klg.jclass.datasource.DataModel dataModel)
Binds the table to the given DataModel and to the root MetaDataModel.


setDataSource

public void setDataSource(com.klg.jclass.datasource.DataModel dataModel,
                          com.klg.jclass.datasource.MetaDataModel metaDataModel)
Binds the table to the given DataModel and MetaDataModel.


setDataSource

protected void setDataSource(String dataBinding)
Sets the DataBinding property value to the table. Sets a table datasource for the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with.

See Also:
getDataBinding()

setDataSource

protected void setDataSource(com.klg.jclass.datasource.DataModel dataModel,
                             String metaDescription)
Sets the data source to a DataModel and binds the MetaData to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g. Orders|Customers).


setDataSource

protected void setDataSource(com.klg.jclass.datasource.BindingModel binding)
Bind using a Binding


initDataBinding

protected void initDataBinding(com.klg.jclass.table.db.DataBoundSource dataSource)
Verifies that a new data source is valid and binds the table.


getDataBinding

protected String getDataBinding()
Returns the table's value of the DataBinding object property. Returns the data binding hierarchy string, starting from a JCTreeData instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with. DataBinding property specifies a string, describing a JCTreeData instance and meta data level of the instance this table is bound with. The format of the property is as follows:
   <JCTreeData name>:<MetaDataModel description>[|<MetaDataModel description>...]
 

See Also:
setDataBinding(com.klg.jclass.datasource.DataModel, com.klg.jclass.datasource.MetaDataModel), JCTreeData, MetaDataModel

setDataBinding

protected boolean setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
                                 com.klg.jclass.datasource.MetaDataModel metaDataModel)
Sets up parameters to bind the DataBoundSource to a MetaDataModel in the given DataModel.


tableChanged

protected void tableChanged()
Cancel the editing and updates the table state, because the data source data table was changed.


beforeCurrentRowChange

protected boolean beforeCurrentRowChange()
Saves the value from the current editor to the data source before the current row has been changed.


getSelection

protected com.klg.jclass.table.JCCellRange getSelection()

insert

protected void insert()

delete

protected void delete()

cancelRows

protected void cancelRows()

cancelAll

protected void cancelAll()

requeryRows

protected void requeryRows()

requeryAll

protected void requeryAll()

commitRows

protected void commitRows()

commitAll

protected void commitAll()

traverseCell

public void traverseCell(com.klg.jclass.table.JCTraverseCellEvent e)
Invoked before a cell is traversed to. The event's setCancelled method can be called to prevent the traversal or the destination cell can be modified.

Specified by:
traverseCell in interface JCTraverseCellListener
Parameters:
e -
See Also:
JCTraverseCellEvent.setCancelled(boolean), JCTraverseCellEvent.setNextRow(int), JCTraverseCellEvent.setNextColumn(int)

afterTraverseCell

public void afterTraverseCell(com.klg.jclass.table.JCTraverseCellEvent e)
Invoked after the cell is traversed to if all listeners notified through traverseCell accepted the destination. If a listener cancelled the traversal in traverseCell, afterTraverseCell will be called with the cancelled flag set and the destination the same as the source location.

Specified by:
afterTraverseCell in interface JCTraverseCellListener
Parameters:
e -
See Also:
traverseCell(com.klg.jclass.table.JCTraverseCellEvent), JCTraverseCellEvent.isCancelled()

getDataBeanSource

protected com.klg.jclass.table.db.DataBoundSource getDataBeanSource()
Returns DataBoundSource for the table.


getNativeMetaData

protected Object getNativeMetaData()
Returns the IDE specific metadata object bound to the table.


setUseDatasourceEditable

public void setUseDatasourceEditable(boolean b)
Sets the useDatasourceEditable property. The property determines whether the editable column state is defined by the datasource or by the table.

See Also:
getUseDatasourceEditable()

getUseDatasourceEditable

public boolean getUseDatasourceEditable()
Gets the useDatasourceEditable property.

See Also:
setUseDatasourceEditable(boolean)

updateEditors

protected void updateEditors()
Updates cell editors according to the datasource table column types.


getColumnClass

protected Class getColumnClass(int column)
Returns the class of a given column in the datasource.

Overrides:
getColumnClass in class JCTable
Parameters:
column - the column index of the column whose class is required
Returns:
the class of the given column

makeDataSource

protected void makeDataSource()

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