Class WebsitesSelectorSection
- 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.WebsitesSelectorSection
-
- All Implemented Interfaces:
SectionSelectorSection,SelectorSection,Section,CockpitEventAcceptor
public class WebsitesSelectorSection extends DefaultSectionSelectorSection
Section represents CMSSite selector for Navigation Perspective. It is responsible for choosing particular CMSSite in navigation area. Note:
Similar sections are used in other perspective likeWCMS Page PerspectiveorWCMS Live Edit PerspectiveImportant thing: sections aren't synchronized between each other (works independently)
-
-
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 WebsitesSelectorSection()
-
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 CmsCockpitServicegetCmsCockpitService()java.util.List<TypedObject>getItems()Returns this selector's items.protected TypeServicegetTypeService()protected voidinformBrowserAreaAboutSiteChanged()Informs CMS about changes made by uservoidonCockpitEvent(CockpitEvent event)voidrefreshView()Refreshes current sectionvoidselectionChanged()Fires when selection was changedvoidsetCmsCockpitService(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
-
informBrowserAreaAboutSiteChanged
protected void informBrowserAreaAboutSiteChanged()
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
-
getTypeService
protected TypeService getTypeService()
-
getCmsCockpitService
protected CmsCockpitService getCmsCockpitService()
-
setCmsCockpitService
public void setCmsCockpitService(CmsCockpitService cmsCockpitService)
-
-