Class SiteSectionSelectorSection
- 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.cmscockpit.components.sectionpanel.SiteSectionSelectorSection
-
- All Implemented Interfaces:
SectionSelectorSection,SelectorSection,Section,CockpitEventAcceptor
public class SiteSectionSelectorSection extends DefaultSectionSelectorSection
Section represents CMSSite selector for WCMS Page Perspective. It is responsible for choosing particular CMSSite in navigation area. Note:
This is counterpart ofLiveSiteSectionSelectorSectionthat is used within Live Edit Perspective. Important thing: sections aren't synchronized between each other (works independently)- See Also:
LiveSiteSectionSelectorSection
-
-
Field Summary
-
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 SiteSectionSelectorSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseEditorArea()Checks whether something is activated within Editor Area if so then we deselect this value and close Editor Areaprotected CMSAdminSiteServicegetCmsAdminSiteService()protected CmsCockpitServicegetCmsCockpitService()java.util.List<TypedObject>getItems()Returns this selector's items.protected TypeServicegetTypeService()protected voidinformCmsAboutCurrentSiteChanged()Informs CMS about changes made by uservoidonCockpitEvent(CockpitEvent event)voidrefreshView()Refreshes current sectionvoidselectionChanged()Fires when selection was changedvoidsetCmsAdminSiteService(CMSAdminSiteService siteService)voidsetCmsCockpitService(CmsCockpitService cmsCockpitService)voidupdateItems()-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.DefaultSectionSelectorSection
addToRelatedObjects, clear, disable, disableSubSections, enable, enableSubSections, getParentSection, getRelatedObject, getRelatedObjects, getRootSection, getSubSections, isMultiselect, isSubSectionsVisible, removeToRelatedObjects, setMultiselect, setParentSection, setRelatedObject, setRelatedObjects, setSubSections
-
Methods inherited from class de.hybris.platform.cockpit.components.navigationarea.AbstractSelectorSection
getNavigationAreaModel, getRenderer, getSelectedItem, getSelectedItems, isInitiallySelected, isItemActive, isMultiple, 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
getSelectedItem, getSelectedItems, isInitiallySelected, isItemActive, isMultiple, setInitiallySelected, setItems, setMultiple, setSelectedItem, setSelectedItems, setSelectedItemsDirectly
-
-
-
-
Method Detail
-
selectionChanged
public void selectionChanged()
Fires when selection was changed Note:
Informs CMS about current selected objects, and refreshes proper view- Specified by:
selectionChangedin interfaceSelectorSection- Overrides:
selectionChangedin classDefaultSectionSelectorSection
-
getItems
public java.util.List<TypedObject> getItems()
Returns this selector's items. Note: Items and selected items are implicitly loaded the first time this method is called.- Specified by:
getItemsin interfaceSelectorSection- Overrides:
getItemsin classAbstractSelectorSection- Returns:
- this selector's items
- See Also:
AbstractSelectorSection.getSelectedItems(),AbstractSelectorSection.getItems()
-
updateItems
public void updateItems()
- Overrides:
updateItemsin classDefaultSectionSelectorSection
-
onCockpitEvent
public void onCockpitEvent(CockpitEvent event)
- Specified by:
onCockpitEventin interfaceCockpitEventAcceptor- Overrides:
onCockpitEventin classAbstractSelectorSection
-
closeEditorArea
protected void closeEditorArea()
Checks whether something is activated within Editor Area if so then we deselect this value and close Editor Area
-
informCmsAboutCurrentSiteChanged
protected void informCmsAboutCurrentSiteChanged()
Informs CMS about changes made by user Note:
Informs about chosen CMSSite
-
refreshView
public void refreshView()
Description copied from interface:SectionSelectorSectionRefreshes current section- Specified by:
refreshViewin interfaceSectionSelectorSection- Overrides:
refreshViewin classDefaultSectionSelectorSection
-
setCmsAdminSiteService
public void setCmsAdminSiteService(CMSAdminSiteService siteService)
-
getCmsAdminSiteService
protected CMSAdminSiteService getCmsAdminSiteService()
-
getTypeService
protected TypeService getTypeService()
-
getCmsCockpitService
protected CmsCockpitService getCmsCockpitService()
-
setCmsCockpitService
public void setCmsCockpitService(CmsCockpitService cmsCockpitService)
-
-