|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.table.ListSelectionListenerSupport
org.springframework.richclient.progress.ListStatusBarUpdater
public abstract class ListStatusBarUpdater
ListSelectionListenerSupport
implementation that updates the statusbar
of the application. The getSelectedObjectName
must return the string
representation of the selected object.
Usage:
JTable table = ... ListStatusBarUpdater updater = new ListStatusBarUpdater(getStatusBar()) { protected String getSelectedObjectName() { // return the selected Object's name } }; table.getSelectionModel().addListSelectionListener(updater);
Constructor Summary | |
---|---|
ListStatusBarUpdater(StatusBar statusBar)
Constructs a new TableStatusBarUpdater instance. |
Method Summary | |
---|---|
protected abstract String |
getSelectedObjectName()
Returns the string representation of the selected object. |
StatusBar |
getStatusBar()
Method getStatusBar. |
protected void |
onMultiSelection(int[] indexes)
Called when multiple rows are selected. |
protected void |
onNoSelection()
Called when nothing gets selected. |
protected void |
onSingleSelection(int index)
Called when the user selects a single row. |
Methods inherited from class org.springframework.richclient.table.ListSelectionListenerSupport |
---|
getItemsSelected, valueChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.event.ListSelectionListener |
---|
valueChanged |
Constructor Detail |
---|
public ListStatusBarUpdater(StatusBar statusBar)
TableStatusBarUpdater
instance.
table
- the tablestatusBar
- the status barMethod Detail |
---|
protected abstract String getSelectedObjectName()
public StatusBar getStatusBar()
protected void onSingleSelection(int index)
ListSelectionListenerSupport
onSingleSelection
in class ListSelectionListenerSupport
index
- the selected roworg.springframework.richclient.table.TableSelectionListenerSupport#onSingleSelection(int)
protected void onMultiSelection(int[] indexes)
ListSelectionListenerSupport
onMultiSelection
in class ListSelectionListenerSupport
indexes
- the selected indexesorg.springframework.richclient.table.TableSelectionListenerSupport#onMultiSelection(int[])
protected void onNoSelection()
ListSelectionListenerSupport
onNoSelection
in class ListSelectionListenerSupport
org.springframework.richclient.table.TableSelectionListenerSupport#onNoSelection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |