|
|||||||||||
| 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)
AbstractSingleSelectionModeltrue if there is a selected element.
isSelected in interface SingleSelectionModelisSelected in class AbstractSingleSelectionModelstate - the state of the current request
true if there is a selected component;
false otherwise.public Object getSelectedKey(PageState state)
SingleSelectionModel
getSelectedKey in interface SingleSelectionModelgetSelectedKey in class AbstractSingleSelectionModel
public void setSelectedKey(PageState state,
Object key)
SingleSelectionModelkey is not in the collection of
objects underlying this model, an
IllegalArgumentException is thrown.
setSelectedKey in interface SingleSelectionModelsetSelectedKey in class AbstractSingleSelectionModelpublic void clearSelection(PageState state)
SingleSelectionModel
clearSelection in interface SingleSelectionModelclearSelection in class AbstractSingleSelectionModelpublic void addChangeListener(ChangeListener l)
SingleSelectionModelstateChanged method is called whenever the selected key changes.
addChangeListener in interface SingleSelectionModeladdChangeListener in class AbstractSingleSelectionModelpublic void removeChangeListener(ChangeListener l)
SingleSelectionModel
removeChangeListener in interface SingleSelectionModelremoveChangeListener in class AbstractSingleSelectionModelpublic ParameterModel getStateParameter()
SingleSelectionModelreturn new StringParameter("foo");
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||