public abstract class AbstractSelectorSection extends NavigationPanelSection implements SelectorSection, CockpitEventAcceptor
selector sections implementations.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<TypedObject> |
selectedItems |
| Constructor and Description |
|---|
AbstractSelectorSection() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TypedObject> |
getItems()
Returns this selector's (root) items.
|
AbstractNavigationAreaModel |
getNavigationAreaModel()
Returns the navigation area model to which this section belongs.
|
SectionRenderer |
getRenderer() |
TypedObject |
getSelectedItem()
Returns the currently 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)
Please see
SelectorSection.isItemActive(TypedObject). |
boolean |
isMultiple()
Returns whether this selector supports multiple selection or not.
|
void |
onCockpitEvent(CockpitEvent event) |
abstract 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 |
setNavigationAreaModel(AbstractNavigationAreaModel navAreaModel)
Sets the model of the navigation area to which this selector belongs.
|
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
SelectorSection.setSelectedItems(List) with the exception that no event is fired. |
static java.util.List<TypedObject> |
wrapItems(java.util.Collection<? extends ItemModel> itemModels)
Deprecated.
since 6.3, will become obsolete when the cockpit's type service has support for service layer models
|
getAttribute, getLabel, getLocalizedLabel, isInitialOpen, isOpen, isTabbed, isVisible, setAttribute, setLabel, setLocalizedLabel, setOpen, setRenderer, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLabel, getLocalizedLabel, isInitialOpen, isOpen, isTabbed, isVisible, setOpenprotected final java.util.List<TypedObject> selectedItems
public java.util.List<TypedObject> getItems()
SelectorSectiongetItems in interface SelectorSectionpublic boolean isMultiple()
SelectorSectionisMultiple in interface SelectorSectiontrue if multiple selection is allowed, false otherwisepublic void setItems(java.util.List<TypedObject> items)
SelectorSectionsetItems in interface SelectorSectionitems - this selector's new itemspublic void setMultiple(boolean multi)
SelectorSectionsetMultiple in interface SelectorSectionmulti - whether multiple selection should be allowed or notpublic void setSelectedItem(TypedObject selectedItem)
SelectorSectionselectedItemsetSelectedItem in interface SelectorSectionselectedItem - the selected itempublic void setSelectedItems(java.util.List<TypedObject> selectedItems)
SelectorSectionselectedItems.setSelectedItems in interface SelectorSectionselectedItems - the new selection of the selectorSelectorSection.setSelectedItemsDirectly(List)public void setSelectedItemsDirectly(java.util.List<TypedObject> selectedItems)
SelectorSectionSelectorSection.setSelectedItems(List) with the exception that no event is fired.setSelectedItemsDirectly in interface SelectorSectionselectedItems - the selected itemsSelectorSection.setSelectedItems(List)public java.util.List<TypedObject> getSelectedItems()
SelectorSectiongetSelectedItems in interface SelectorSectionpublic TypedObject getSelectedItem()
getSelectedItem in interface SelectorSectionnull if no items have been selectedSelectorSection.getSelectedItem()public void setNavigationAreaModel(AbstractNavigationAreaModel navAreaModel)
navAreaModel - the navigation area modelpublic AbstractNavigationAreaModel getNavigationAreaModel()
public SectionRenderer getRenderer()
getRenderer in class NavigationPanelSectionpublic abstract void selectionChanged()
SelectorSectionselectionChanged in interface SelectorSectionpublic boolean isItemActive(TypedObject item)
SelectorSection.isItemActive(TypedObject).
Note: This implementation always returns false.isItemActive in interface SelectorSectionitem - the itemtrue if item is active, false otherwise@Deprecated public static java.util.List<TypedObject> wrapItems(java.util.Collection<? extends ItemModel> itemModels)
type service supports
Service layer models.itemModels - items to wrappublic void setInitiallySelected(boolean initSelection)
SelectorSectionsetInitiallySelected in interface SelectorSectioninitSelection - true if inital selection should be enabled, false otherwisepublic boolean isInitiallySelected()
SelectorSectionisInitiallySelected in interface SelectorSectiontrue if initial selection is enabled, false otherwisepublic void onCockpitEvent(CockpitEvent event)
onCockpitEvent in interface CockpitEventAcceptorCopyright © 2018 SAP SE. All Rights Reserved.