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 boolean
multiselect
protected SectionSelectorSection
parentSection
protected TypedObject
relatedObject
protected java.util.List<TypedObject>
relatedObjects
protected 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 void
addToRelatedObjects(TypedObject relatedObject)
void
clear()
Clears current sectionvoid
disable()
Disabling current sectionvoid
disableSubSections()
void
enable()
Enabling current sectionvoid
enableSubSections()
SectionSelectorSection
getParentSection()
Returns parent sectionTypedObject
getRelatedObject()
Returns related object with current sectionjava.util.List<TypedObject>
getRelatedObjects()
protected SectionSelectorSection
getRootSection()
java.util.List<SectionSelectorSection>
getSubSections()
Returns sub sections defined for current sectionboolean
isMultiselect()
Is multi select possibleboolean
isSubSectionsVisible()
Checks whether sub sections are visiblevoid
refreshView()
Refreshes current sectionvoid
removeToRelatedObjects(TypedObject relatedObject)
void
selectionChanged()
Called whenever this selector's selection has changed.void
setMultiselect(boolean multiselect)
void
setParentSection(SectionSelectorSection parentSection)
Sets parent sectionvoid
setRelatedObject(TypedObject relatdObject)
Sets related object for current sectionvoid
setRelatedObjects(java.util.List<TypedObject> relatedObjects)
void
setSubSections(java.util.List<SectionSelectorSection> subSections)
Sets sub sections for current sectionvoid
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.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:SectionSelectorSection
Clears current section- Specified by:
clear
in interfaceSectionSelectorSection
-
disable
public void disable()
Description copied from interface:SectionSelectorSection
Disabling current section- Specified by:
disable
in interfaceSectionSelectorSection
-
updateItems
public void updateItems()
-
disableSubSections
public void disableSubSections()
-
enable
public void enable()
Description copied from interface:SectionSelectorSection
Enabling current section- Specified by:
enable
in interfaceSectionSelectorSection
-
enableSubSections
public void enableSubSections()
-
getParentSection
public SectionSelectorSection getParentSection()
Description copied from interface:SectionSelectorSection
Returns parent section- Specified by:
getParentSection
in interfaceSectionSelectorSection
- Returns:
- parent section
-
getRelatedObject
public TypedObject getRelatedObject()
Description copied from interface:SectionSelectorSection
Returns related object with current section- Specified by:
getRelatedObject
in 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:SectionSelectorSection
Returns sub sections defined for current section- Specified by:
getSubSections
in interfaceSectionSelectorSection
- Returns:
- sub sections
-
isMultiselect
public boolean isMultiselect()
Description copied from interface:SectionSelectorSection
Is multi select possible- Specified by:
isMultiselect
in interfaceSectionSelectorSection
-
isSubSectionsVisible
public boolean isSubSectionsVisible()
Description copied from interface:SectionSelectorSection
Checks whether sub sections are visible- Specified by:
isSubSectionsVisible
in interfaceSectionSelectorSection
- Returns:
- flag indicate whether sub sections are visible
-
refreshView
public void refreshView()
Description copied from interface:SectionSelectorSection
Refreshes current section- Specified by:
refreshView
in interfaceSectionSelectorSection
-
removeToRelatedObjects
public void removeToRelatedObjects(TypedObject relatedObject)
-
selectionChanged
public void selectionChanged()
Description copied from interface:SelectorSection
Called whenever this selector's selection has changed.- Specified by:
selectionChanged
in interfaceSelectorSection
- Specified by:
selectionChanged
in classAbstractSelectorSection
-
setMultiselect
public void setMultiselect(boolean multiselect)
-
setParentSection
public void setParentSection(SectionSelectorSection parentSection)
Description copied from interface:SectionSelectorSection
Sets parent section- Specified by:
setParentSection
in interfaceSectionSelectorSection
- Parameters:
parentSection
- - parent section
-
setRelatedObject
public void setRelatedObject(TypedObject relatdObject)
Description copied from interface:SectionSelectorSection
Sets related object for current section- Specified by:
setRelatedObject
in 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:SectionSelectorSection
Sets sub sections for current section- Specified by:
setSubSections
in interfaceSectionSelectorSection
- Parameters:
subSections
- - sub sections list
-
-