|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.AbstractSingleSelectionModel
com.arsdigita.formbuilder.ui.DecimalSingleSelectionModel
Field Summary |
Fields inherited from class com.arsdigita.bebop.AbstractSingleSelectionModel |
versionId |
Constructor Summary | |
DecimalSingleSelectionModel(SingleSelectionModel selection)
|
Method Summary | |
void |
addChangeListener(ChangeListener l)
Adds a change listener to the model. |
void |
clearSelection(PageState state)
Clears the selection. |
Object |
getSelectedKey(PageState state)
Returns the key that identifies the selected element. |
ParameterModel |
getStateParameter()
Returns the state parameter that will be used to keep track of the currently selected key. |
boolean |
isSelected(PageState state)
Returns true if there is a selected element. |
void |
removeChangeListener(ChangeListener l)
Removes a change listener from the model. |
void |
setSelectedKey(PageState state,
Object key)
Sets the selected key. |
Methods inherited from class com.arsdigita.bebop.AbstractSingleSelectionModel |
fireStateChanged, isLocked, lock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DecimalSingleSelectionModel(SingleSelectionModel selection)
Method Detail |
public boolean isSelected(PageState state)
AbstractSingleSelectionModel
true
if there is a selected element.
isSelected
in interface SingleSelectionModel
isSelected
in class AbstractSingleSelectionModel
state
- the state of the current request
true
if there is a selected component;
false
otherwise.public Object getSelectedKey(PageState state)
SingleSelectionModel
getSelectedKey
in interface SingleSelectionModel
getSelectedKey
in class AbstractSingleSelectionModel
public void setSelectedKey(PageState state, Object key)
SingleSelectionModel
key
is not in the collection of
objects underlying this model, an
IllegalArgumentException
is thrown.
setSelectedKey
in interface SingleSelectionModel
setSelectedKey
in class AbstractSingleSelectionModel
public void clearSelection(PageState state)
SingleSelectionModel
clearSelection
in interface SingleSelectionModel
clearSelection
in class AbstractSingleSelectionModel
public void addChangeListener(ChangeListener l)
SingleSelectionModel
stateChanged
method is called whenever the selected key changes.
addChangeListener
in interface SingleSelectionModel
addChangeListener
in class AbstractSingleSelectionModel
public void removeChangeListener(ChangeListener l)
SingleSelectionModel
removeChangeListener
in interface SingleSelectionModel
removeChangeListener
in class AbstractSingleSelectionModel
public ParameterModel getStateParameter()
SingleSelectionModel
return new StringParameter("foo");
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |