T
- public class ListBoxSelectionModeMulti<T> extends Object implements ListBoxSelectionMode<T>
Constructor and Description |
---|
ListBoxSelectionModeMulti() |
Modifier and Type | Method and Description |
---|---|
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.
|
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>
Copyright © 2013. All Rights Reserved.