public class RowSetTable extends Table
Table used to display data contained
in a RowSetTableModel.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Class and Description |
|---|---|
protected class |
RowSetTable.DefaultActionListener
The default
ActionListener for the
table. |
ACTION_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 |
RowSetTable()
Default constructor.
|
|
RowSetTable(RowSetTableModel model)
Create a new table using the specified model for its data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(SelectionListener<RowSet,RowSetTable> listener)
Adds a selection listener to be notified of row selections.
|
void |
dispose()
Over-ridden to close the
RowSet associated with
this table's model. |
protected void |
fireRowSelection()
Notifies configured
SelectionListener of row selections. |
RowSetTableModel |
getModel()
Over-ridden to return a properly type-cast model.
|
void |
init()
Initialise the table model.
|
void |
removeSelectionListener(SelectionListener<RowSet,RowSetTable> listener)
Remove a selection listener from being notified of row selections.
|
void |
setModel(TableModel model)
Over-ridden to throw
IllegalArgumentException if the
specified model is not an instance of RowSetTableModel. |
addActionListener, 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 RowSetTable()
public RowSetTable(RowSetTableModel model) throws IllegalArgumentException
model - The underlying data model to use for the table.IllegalArgumentException - If the specified model does not
implement RowSetTableModel.public RowSetTableModel getModel()
public void setModel(TableModel model) throws IllegalArgumentException
IllegalArgumentException if the
specified model is not an instance of RowSetTableModel.setModel in class Tablemodel - The model to use for this table.IllegalArgumentException - If the specified model does not
implement RowSetTableModel.public void dispose()
RowSet associated with
this table's model.dispose in class ComponentRowSetTableModel.dispose()public void addSelectionListener(SelectionListener<RowSet,RowSetTable> listener)
listener - The listener to add.Component.getEventListenerList()public void removeSelectionListener(SelectionListener<RowSet,RowSetTable> listener)
listener - The listener to remove.protected void fireRowSelection()
throws RuntimeException
SelectionListener of row selections.RuntimeException - If errors are encountered while fetching the
RowSet with the cursor postiion at the selected
row.