|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tonbeller.wcf.selection.SelectionModelDecorator
decorates a selection model
| Field Summary |
| Fields inherited from interface com.tonbeller.wcf.selection.SelectionModel |
MULTIPLE_SELECTION, MULTIPLE_SELECTION_BUTTON, MULTIPLE_SELECTION_HREF, NO_SELECTION, SINGLE_SELECTION, SINGLE_SELECTION_BUTTON, SINGLE_SELECTION_HREF |
| Constructor Summary | |
SelectionModelDecorator(SelectionModel delegate)
|
|
| Method Summary | |
void |
add(java.lang.Object obj)
|
void |
addAll(java.util.Collection c)
|
void |
addSelectionListener(SelectionChangeListener l)
|
void |
clear()
clears the selection |
boolean |
contains(java.lang.Object obj)
|
boolean |
equals(java.lang.Object arg0)
|
void |
fireSelectionChanged(RequestContext context)
fires a SelectionChangeEvent. |
int |
getMode()
|
java.util.Set |
getSelection()
|
java.lang.Object |
getSingleSelection()
return the only selected object or null if the selection is empty. |
int |
hashCode()
|
boolean |
isEmpty()
|
boolean |
isSelectable(java.lang.Object item)
true, if item is selectable. |
void |
remove(java.lang.Object obj)
|
void |
removeSelectionListener(SelectionChangeListener l)
|
void |
setSingleSelection(java.lang.Object selectedObject)
sets the only selected element |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.tonbeller.wcf.selection.SelectionModel |
setMode |
| Constructor Detail |
public SelectionModelDecorator(SelectionModel delegate)
| Method Detail |
public void add(java.lang.Object obj)
add in interface SelectionModelobj - public void addAll(java.util.Collection c)
addAll in interface SelectionModelc - public void addSelectionListener(SelectionChangeListener l)
addSelectionListener in interface SingleSelectionModell - public void clear()
SingleSelectionModel
clear in interface SingleSelectionModelpublic boolean contains(java.lang.Object obj)
contains in interface SelectionModelobj -
public boolean equals(java.lang.Object arg0)
public void fireSelectionChanged(RequestContext context)
SingleSelectionModel
fireSelectionChanged in interface SingleSelectionModelcontext - public int getMode()
getMode in interface SelectionModelpublic java.util.Set getSelection()
getSelection in interface SelectionModelpublic java.lang.Object getSingleSelection()
SingleSelectionModel
getSingleSelection in interface SingleSelectionModelpublic int hashCode()
public boolean isSelectable(java.lang.Object item)
SingleSelectionModel
isSelectable in interface SingleSelectionModelitem -
public void remove(java.lang.Object obj)
remove in interface SelectionModelobj - public void removeSelectionListener(SelectionChangeListener l)
removeSelectionListener in interface SingleSelectionModell - public void setSingleSelection(java.lang.Object selectedObject)
SingleSelectionModel
setSingleSelection in interface SingleSelectionModelselectedObject - public java.lang.String toString()
public boolean isEmpty()
isEmpty in interface SingleSelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||