|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.listbox.ListBoxSelectionModeMulti<T>
T - public class ListBoxSelectionModeMulti<T>
A multiple selection mode for a Nifty ListBox. You can select multiple items. Selecting a new one will add to any previous selected items.
| Constructor Summary | |
|---|---|
ListBoxSelectionModeMulti()
|
|
| Method Summary | |
|---|---|
void |
add(T item)
Add a new element to the selection. |
void |
clear()
Clear the selection. |
void |
enableRequiresSelection(boolean enabled)
When this is set to true the selection can't be completely de selected. |
List<T> |
getSelection()
Get the selection. |
void |
remove(T item)
Remove the given element from the selection. |
void |
removeForced(T item)
Remove the given element from the selection. |
boolean |
requiresAutoSelection()
Returns if this Selection Mode requires a selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListBoxSelectionModeMulti()
| Method Detail |
|---|
public void clear()
ListBoxSelectionMode
clear in interface ListBoxSelectionMode<T>public List<T> getSelection()
ListBoxSelectionMode
getSelection in interface ListBoxSelectionMode<T>public void remove(T item)
ListBoxSelectionMode
remove in interface ListBoxSelectionMode<T>public void removeForced(T item)
ListBoxSelectionMode
removeForced in interface ListBoxSelectionMode<T>public void add(T item)
ListBoxSelectionMode
add in interface ListBoxSelectionMode<T>public void enableRequiresSelection(boolean enabled)
ListBoxSelectionMode
enableRequiresSelection in interface ListBoxSelectionMode<T>enabled - true when the requires selection mode should be enabledpublic boolean requiresAutoSelection()
ListBoxSelectionMode
requiresAutoSelection in interface ListBoxSelectionMode<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||