Class DefaultSectionSelectorSection
- java.lang.Object
-
- de.hybris.platform.cockpit.components.navigationarea.NavigationPanelSection
-
- de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
-
- de.hybris.platform.cockpit.components.navigationarea.DefaultSectionSelectorSection
-
- All Implemented Interfaces:
SectionSelectorSection,SelectorSection,Section,CockpitEventAcceptor
- Direct Known Subclasses:
AbstractDrillableSelectorSection
public class DefaultSectionSelectorSection extends AbstractSelectorSection implements SectionSelectorSection
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmultiselectprotected SectionSelectorSectionparentSectionprotected TypedObjectrelatedObjectprotected java.util.List<TypedObject>relatedObjectsprotected java.util.List<SectionSelectorSection>subSections-
Fields inherited from class de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
selectedItems
-
-
Constructor Summary
Constructors Constructor Description DefaultSectionSelectorSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToRelatedObjects(TypedObject relatedObject)voidclear()Clears current sectionvoiddisable()Disabling current sectionvoiddisableSubSections()voidenable()Enabling current sectionvoidenableSubSections()SectionSelectorSectiongetParentSection()Returns parent sectionTypedObjectgetRelatedObject()Returns related object with current sectionjava.util.List<TypedObject>getRelatedObjects()protected SectionSelectorSectiongetRootSection()java.util.List<SectionSelectorSection>getSubSections()Returns sub sections defined for current sectionbooleanisMultiselect()Is multi select possiblebooleanisSubSectionsVisible()Checks whether sub sections are visiblevoidrefreshView()Refreshes current sectionvoidremoveToRelatedObjects(TypedObject relatedObject)voidselectionChanged()Called whenever this selector's selection has changed.voidsetMultiselect(boolean multiselect)voidsetParentSection(SectionSelectorSection parentSection)Sets parent sectionvoidsetRelatedObject(TypedObject relatdObject)Sets related object for current sectionvoidsetRelatedObjects(java.util.List<TypedObject> relatedObjects)voidsetSubSections(java.util.List<SectionSelectorSection> subSections)Sets sub sections for current sectionvoidupdateItems()-
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.SelectorSection
getItems, getSelectedItem, getSelectedItems, isInitiallySelected, isItemActive, isMultiple, setInitiallySelected, setItems, setMultiple, setSelectedItem, setSelectedItems, setSelectedItemsDirectly
-
-
-
-
Field Detail
-
subSections
protected java.util.List<SectionSelectorSection> subSections
-
parentSection
protected SectionSelectorSection parentSection
-
relatedObject
protected TypedObject relatedObject
-
relatedObjects
protected java.util.List<TypedObject> relatedObjects
-
multiselect
protected boolean multiselect
-
-
Method Detail
-
addToRelatedObjects
public void addToRelatedObjects(TypedObject relatedObject)
-
clear
public void clear()
Description copied from interface:SectionSelectorSectionClears current section- Specified by:
clearin interfaceSectionSelectorSection
-
disable
public void disable()
Description copied from interface:SectionSelectorSectionDisabling current section- Specified by:
disablein interfaceSectionSelectorSection
-
updateItems
public void updateItems()
-
disableSubSections
public void disableSubSections()
-
enable
public void enable()
Description copied from interface:SectionSelectorSectionEnabling current section- Specified by:
enablein interfaceSectionSelectorSection
-
enableSubSections
public void enableSubSections()
-
getParentSection
public SectionSelectorSection getParentSection()
Description copied from interface:SectionSelectorSectionReturns parent section- Specified by:
getParentSectionin interfaceSectionSelectorSection- Returns:
- parent section
-
getRelatedObject
public TypedObject getRelatedObject()
Description copied from interface:SectionSelectorSectionReturns related object with current section- Specified by:
getRelatedObjectin interfaceSectionSelectorSection- Returns:
- related object
-
getRelatedObjects
public java.util.List<TypedObject> getRelatedObjects()
-
getRootSection
protected SectionSelectorSection getRootSection()
-
getSubSections
public java.util.List<SectionSelectorSection> getSubSections()
Description copied from interface:SectionSelectorSectionReturns sub sections defined for current section- Specified by:
getSubSectionsin interfaceSectionSelectorSection- Returns:
- sub sections
-
isMultiselect
public boolean isMultiselect()
Description copied from interface:SectionSelectorSectionIs multi select possible- Specified by:
isMultiselectin interfaceSectionSelectorSection
-
isSubSectionsVisible
public boolean isSubSectionsVisible()
Description copied from interface:SectionSelectorSectionChecks whether sub sections are visible- Specified by:
isSubSectionsVisiblein interfaceSectionSelectorSection- Returns:
- flag indicate whether sub sections are visible
-
refreshView
public void refreshView()
Description copied from interface:SectionSelectorSectionRefreshes current section- Specified by:
refreshViewin interfaceSectionSelectorSection
-
removeToRelatedObjects
public void removeToRelatedObjects(TypedObject relatedObject)
-
selectionChanged
public void selectionChanged()
Description copied from interface:SelectorSectionCalled whenever this selector's selection has changed.- Specified by:
selectionChangedin interfaceSelectorSection- Specified by:
selectionChangedin classAbstractSelectorSection
-
setMultiselect
public void setMultiselect(boolean multiselect)
-
setParentSection
public void setParentSection(SectionSelectorSection parentSection)
Description copied from interface:SectionSelectorSectionSets parent section- Specified by:
setParentSectionin interfaceSectionSelectorSection- Parameters:
parentSection- - parent section
-
setRelatedObject
public void setRelatedObject(TypedObject relatdObject)
Description copied from interface:SectionSelectorSectionSets related object for current section- Specified by:
setRelatedObjectin interfaceSectionSelectorSection- Parameters:
relatdObject- - related object
-
setRelatedObjects
public void setRelatedObjects(java.util.List<TypedObject> relatedObjects)
-
setSubSections
public void setSubSections(java.util.List<SectionSelectorSection> subSections)
Description copied from interface:SectionSelectorSectionSets sub sections for current section- Specified by:
setSubSectionsin interfaceSectionSelectorSection- Parameters:
subSections- - sub sections list
-
-