public class DatabaseTable extends RowSetTable
Table used to display data contained
in a DatabaseTableModel.
© Copyright 2007 Sans Pareil Technologies, Inc.
RowSetTable.DefaultActionListenerACTION_LISTENERS_CHANGED_PROPERTY, AUTO_CREATE_COLUMNS_FROM_MODEL_CHANGED_PROPERTY, COLUMN_MODEL_CHANGED_PROPERTY, DEFAULT_HEADER_RENDERER_CHANGED_PROPERTY, DEFAULT_RENDERER_CHANGED_PROPERTY, DEFAULT_TABLE_CELL_RENDERER, HEADER_ROW, HEADER_VISIBLE_CHANGED_PROPERTY, INPUT_ACTION, MODEL_CHANGED_PROPERTY, PROPERTY_ACTION_COMMAND, PROPERTY_BORDER, PROPERTY_INSETS, PROPERTY_ROLLOVER_BACKGROUND, PROPERTY_ROLLOVER_BACKGROUND_IMAGE, PROPERTY_ROLLOVER_ENABLED, PROPERTY_ROLLOVER_FONT, PROPERTY_ROLLOVER_FOREGROUND, PROPERTY_SELECTION_BACKGROUND, PROPERTY_SELECTION_BACKGROUND_IMAGE, PROPERTY_SELECTION_ENABLED, PROPERTY_SELECTION_FONT, PROPERTY_SELECTION_FOREGROUND, PROPERTY_WIDTH, SELECTION_CHANGED_PROPERTY, SELECTION_MODEL_CHANGED_PROPERTYCHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
DatabaseTable()
Default constructor.
|
|
DatabaseTable(DatabaseTableModel model)
Create a new table using the specified model for its data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireRowSelection()
Notifies configured
SelectionListener of row selections. |
DatabaseTableModel |
getModel()
Over-ridden to return a properly type-cast model.
|
void |
setModel(TableModel model)
Over-ridden to throw
IllegalArgumentException if the
specified model is not an instance of DatabaseTableModel. |
addSelectionListener, dispose, init, removeSelectionListeneraddActionListener, createDefaultColumnsFromModel, doRender, getActionCommand, getBorder, getCellComponent, getColumnModel, getDefaultHeaderRenderer, getDefaultRenderer, getInsets, getRolloverBackground, getRolloverBackgroundImage, getRolloverFont, getRolloverForeground, getSelectionBackground, getSelectionBackgroundImage, getSelectionFont, getSelectionForeground, getSelectionModel, getWidth, hasActionListeners, invalidate, isAutoCreateColumnsFromModel, isHeaderVisible, isRolloverEnabled, isSelectionEnabled, processInput, removeActionListener, setActionCommand, setAutoCreateColumnsFromModel, setBorder, setColumnModel, setDefaultHeaderRenderer, setDefaultRenderer, setHeaderVisible, setInsets, setRolloverBackground, setRolloverBackgroundImage, setRolloverEnabled, setRolloverFont, setRolloverForeground, setSelectionBackground, setSelectionBackgroundImage, setSelectionEnabled, setSelectionFont, setSelectionForeground, setSelectionModel, setWidth, validateadd, add, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, verifyInput, visibleIndexOfprotected DatabaseTable()
public DatabaseTable(DatabaseTableModel model) throws IllegalArgumentException
SortableHeaderCellRenderer.model - The underlying data model to use for the table.IllegalArgumentException - If the specified model does not
implement DatabaseTableModel.public DatabaseTableModel getModel()
getModel in class RowSetTablepublic void setModel(TableModel model) throws IllegalArgumentException
IllegalArgumentException if the
specified model is not an instance of DatabaseTableModel.setModel in class RowSetTablemodel - The model to use for this table.IllegalArgumentException - If the specified model does not
implement DatabaseTableModel.protected void fireRowSelection()
throws RuntimeException
SelectionListener of row selections.
Over-ridden to create an EventObject with a new RowSet that represents the selected row. Multiple selections
lead to selection listeners being notified in sequence.fireRowSelection in class RowSetTableRuntimeException - If errors are encountered while fetching the
RowSet with the cursor postiion at the selected
row.