|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.Table
com.sptci.echo2.table.RowSetTable
public class RowSetTable
A Table used to display data contained
in a RowSetTableModel.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Nested Class Summary | |
|---|---|
protected class |
RowSetTable.DefaultActionListener
The default ActionListener for the
table. |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
RowSetTable()
Default constructor. |
|
RowSetTable(RowSetTableModel model)
Create a new table using the specified model for its data. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected 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.| Method Detail |
|---|
public void init()
init in class Componentpublic RowSetTableModel getModel()
getModel in class Table
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.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||