|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 SelectionModel
obj
- public void addAll(java.util.Collection c)
addAll
in interface SelectionModel
c
- public void addSelectionListener(SelectionChangeListener l)
addSelectionListener
in interface SingleSelectionModel
l
- public void clear()
SingleSelectionModel
clear
in interface SingleSelectionModel
public boolean contains(java.lang.Object obj)
contains
in interface SelectionModel
obj
-
public boolean equals(java.lang.Object arg0)
public void fireSelectionChanged(RequestContext context)
SingleSelectionModel
fireSelectionChanged
in interface SingleSelectionModel
context
- public int getMode()
getMode
in interface SelectionModel
public java.util.Set getSelection()
getSelection
in interface SelectionModel
public java.lang.Object getSingleSelection()
SingleSelectionModel
getSingleSelection
in interface SingleSelectionModel
public int hashCode()
public boolean isSelectable(java.lang.Object item)
SingleSelectionModel
isSelectable
in interface SingleSelectionModel
item
-
public void remove(java.lang.Object obj)
remove
in interface SelectionModel
obj
- public void removeSelectionListener(SelectionChangeListener l)
removeSelectionListener
in interface SingleSelectionModel
l
- public void setSingleSelection(java.lang.Object selectedObject)
SingleSelectionModel
setSingleSelection
in interface SingleSelectionModel
selectedObject
- 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 |