Class AbstractDrillableSelectorSection
- java.lang.Object
-
- de.hybris.platform.cockpit.components.navigationarea.NavigationPanelSection
-
- de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
-
- de.hybris.platform.cockpit.components.navigationarea.DefaultSectionSelectorSection
-
- de.hybris.platform.cockpit.components.navigationarea.AbstractDrillableSelectorSection
-
- All Implemented Interfaces:
DrillableSelectorSection
,SectionSelectorSection
,SelectorSection
,Section
,CockpitEventAcceptor
public class AbstractDrillableSelectorSection extends DefaultSectionSelectorSection implements DrillableSelectorSection
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Stack<TypedObject>
drillableElements
protected int
drilldownLevel
-
Fields inherited from class de.hybris.platform.cockpit.components.navigationarea.DefaultSectionSelectorSection
multiselect, parentSection, relatedObject, relatedObjects, subSections
-
Fields inherited from class de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
selectedItems
-
-
Constructor Summary
Constructors Constructor Description AbstractDrillableSelectorSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendAsLastElement(TypedObject element)
Appends given object as a last elementvoid
clear()
Clears current sectionint
currentLevel()
Returns current levelvoid
disable()
Disabling current sectionint
getDrilldownLevel()
Returns how many levels should be displayedTypedObject
getLastElement()
Returns last elementvoid
removeLastElement()
Remove last elementvoid
setDrilldownLevel(int drilldownLevel)
Sets how many levels should be displayed-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.DefaultSectionSelectorSection
addToRelatedObjects, disableSubSections, enable, enableSubSections, getParentSection, getRelatedObject, getRelatedObjects, getRootSection, getSubSections, isMultiselect, isSubSectionsVisible, refreshView, removeToRelatedObjects, selectionChanged, setMultiselect, setParentSection, setRelatedObject, setRelatedObjects, setSubSections, updateItems
-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
getItems, getNavigationAreaModel, getRenderer, getSelectedItem, getSelectedItems, isInitiallySelected, isItemActive, isMultiple, onCockpitEvent, setInitiallySelected, setItems, setMultiple, setNavigationAreaModel, setSelectedItem, setSelectedItems, setSelectedItemsDirectly, wrapItems
-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.NavigationPanelSection
getAttribute, getLabel, getLocalizedLabel, isInitialOpen, isOpen, isTabbed, isVisible, setAttribute, setLabel, setLocalizedLabel, setOpen, setRenderer, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.components.sectionpanel.Section
getLabel, getLocalizedLabel, isInitialOpen, isOpen, isTabbed, isVisible, setOpen
-
Methods inherited from interface de.hybris.platform.cockpit.components.navigationarea.SectionSelectorSection
enable, getParentSection, getRelatedObject, getSubSections, isMultiselect, isSubSectionsVisible, refreshView, setParentSection, setRelatedObject, setSubSections
-
Methods inherited from interface de.hybris.platform.cockpit.components.navigationarea.SelectorSection
getItems, getSelectedItem, getSelectedItems, isInitiallySelected, isItemActive, isMultiple, selectionChanged, setInitiallySelected, setItems, setMultiple, setSelectedItem, setSelectedItems, setSelectedItemsDirectly
-
-
-
-
Field Detail
-
drillableElements
protected java.util.Stack<TypedObject> drillableElements
-
drilldownLevel
protected int drilldownLevel
-
-
Method Detail
-
getLastElement
public TypedObject getLastElement()
Description copied from interface:DrillableSelectorSection
Returns last element- Specified by:
getLastElement
in interfaceDrillableSelectorSection
- Returns:
- last element
-
appendAsLastElement
public void appendAsLastElement(TypedObject element)
Description copied from interface:DrillableSelectorSection
Appends given object as a last element- Specified by:
appendAsLastElement
in interfaceDrillableSelectorSection
- Parameters:
element
- - given object
-
removeLastElement
public void removeLastElement()
Description copied from interface:DrillableSelectorSection
Remove last element- Specified by:
removeLastElement
in interfaceDrillableSelectorSection
-
disable
public void disable()
Description copied from interface:SectionSelectorSection
Disabling current section- Specified by:
disable
in interfaceSectionSelectorSection
- Overrides:
disable
in classDefaultSectionSelectorSection
-
clear
public void clear()
Description copied from interface:SectionSelectorSection
Clears current section- Specified by:
clear
in interfaceSectionSelectorSection
- Overrides:
clear
in classDefaultSectionSelectorSection
-
getDrilldownLevel
public int getDrilldownLevel()
Description copied from interface:DrillableSelectorSection
Returns how many levels should be displayed- Specified by:
getDrilldownLevel
in interfaceDrillableSelectorSection
- Returns:
- - how many levels
-
setDrilldownLevel
public void setDrilldownLevel(int drilldownLevel)
Description copied from interface:DrillableSelectorSection
Sets how many levels should be displayed- Specified by:
setDrilldownLevel
in interfaceDrillableSelectorSection
- Parameters:
drilldownLevel
- - how many levels
-
currentLevel
public int currentLevel()
Description copied from interface:DrillableSelectorSection
Returns current level- Specified by:
currentLevel
in interfaceDrillableSelectorSection
- Returns:
- current level
-
-