|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.list.AbstractListSelectionGuard
public abstract class AbstractListSelectionGuard
This class applies a guard to a Guarded object that enables the
guarded object bsaed on the contents of the selection model value. Concrete
subclasses must provide an implementation for shouldEnable(int[]).
| Constructor Summary | |
|---|---|
AbstractListSelectionGuard(ValueModel selectionHolder,
Guarded guarded)
Constructor. |
|
| Method Summary | |
|---|---|
Guarded |
getGuarded()
Get the guarded object. |
ValueModel |
getSelectionHolder()
Get the selection value holder. |
void |
propertyChange(PropertyChangeEvent evt)
Handle a change in the selectionHolder value. |
protected abstract boolean |
shouldEnable(int[] selected)
Determine if the guarded object should be enabled based on the contents of the current selection model value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractListSelectionGuard(ValueModel selectionHolder,
Guarded guarded)
selectionHolder - ValueModel holding the list selection (value must
be an array of int (int[]guarded - Object to guard| Method Detail |
|---|
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic Guarded getGuarded()
public ValueModel getSelectionHolder()
int[]
protected abstract boolean shouldEnable(int[] selected)
selected - The array of selected rows
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||