|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Selectable<E>
Indicate a data model that supports selection.
It is typically used with ListModel
and Listbox.
ListModel,
Listbox| Method Summary | |
|---|---|
void |
addSelection(E obj)
Add the specified object into selection. |
void |
clearSelection()
Clear all selection. |
java.util.Set<E> |
getSelection()
Returns current selection. |
void |
removeSelection(java.lang.Object obj)
Remove the specified object from selection. |
| Method Detail |
|---|
java.util.Set<E> getSelection()
void addSelection(E obj)
Notice that this method is designed to be called by a component
(such as Listbox).
If it is called by an application, the component's selection status
won't be changed.
obj - the object to be as selection.void removeSelection(java.lang.Object obj)
Notice that this method is designed to be called by a component
(such as Listbox).
If it is called by an application, the component's selection status
won't be changed.
obj - the object to be remove from selection.void clearSelection()
Notice that this method is designed to be called by a component
(such as Listbox).
If it is called by an application, the component's selection status
won't be changed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||