public interface SelectorSection extends Section
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TypedObject> |
getItems()
Returns this selector's (root) items.
|
TypedObject |
getSelectedItem()
Returns the selected item.
|
java.util.List<TypedObject> |
getSelectedItems()
Returns the selector's currently selected items.
|
boolean |
isInitiallySelected()
Returns whether initial selection is enabled or not.
|
boolean |
isItemActive(TypedObject item)
Returns whether the item
item is active or not. |
boolean |
isMultiple()
Returns whether this selector supports multiple selection or not.
|
void |
selectionChanged()
Called whenever this selector's selection has changed.
|
void |
setInitiallySelected(boolean initSelection)
Sets whether the first item should be initially selected or not.
|
void |
setItems(java.util.List<TypedObject> items)
Sets the (root) items which this selector should render.
|
void |
setMultiple(boolean multi)
Sets whether this selector supports multiple selection or not.
|
void |
setSelectedItem(TypedObject selectedItem)
Sets the selector's selected item to
selectedItem |
void |
setSelectedItems(java.util.List<TypedObject> selectedItems)
Sets the selector's selected items to
selectedItems. |
void |
setSelectedItemsDirectly(java.util.List<TypedObject> selectedItems)
Does the same thing as
setSelectedItems(List) with the exception that no event is fired. |
getLabel, getLocalizedLabel, isInitialOpen, isOpen, isTabbed, isVisible, setOpenvoid setItems(java.util.List<TypedObject> items)
items - this selector's new itemsjava.util.List<TypedObject> getItems()
void setMultiple(boolean multi)
multi - whether multiple selection should be allowed or notboolean isMultiple()
true if multiple selection is allowed, false otherwisevoid setSelectedItems(java.util.List<TypedObject> selectedItems)
selectedItems.selectedItems - the new selection of the selectorsetSelectedItemsDirectly(List)void setSelectedItem(TypedObject selectedItem)
selectedItemselectedItem - the selected itemvoid setSelectedItemsDirectly(java.util.List<TypedObject> selectedItems)
setSelectedItems(List) with the exception that no event is fired.selectedItems - the selected itemssetSelectedItems(List)java.util.List<TypedObject> getSelectedItems()
TypedObject getSelectedItem()
getSelectedItems()void selectionChanged()
boolean isItemActive(TypedObject item)
item is active or not. Exactly what active means depends on the implementation.
Typically active selector items are rendered differently than normal items.
item - the itemtrue if item is active, false otherwisevoid setInitiallySelected(boolean initSelection)
initSelection - true if inital selection should be enabled, false otherwiseboolean isInitiallySelected()
true if initial selection is enabled, false otherwiseCopyright © 2018 SAP SE. All Rights Reserved.