Class SectionPanel
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zk.ui.HtmlMacroComponent
-
- de.hybris.platform.cockpit.components.sectionpanel.SectionPanel
-
- All Implemented Interfaces:
DesktopRemovalAwareComponent,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.AfterCompose,org.zkoss.zk.ui.ext.DynamicPropertied,org.zkoss.zk.ui.ext.Macro,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl
public final class SectionPanel extends org.zkoss.zk.ui.HtmlMacroComponent implements DesktopRemovalAwareComponent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSectionPanel.SectionComponentprotected classSectionPanel.SectionRowComponent
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASS_SECTION_SELECTED_ROWprotected static java.lang.StringEVENT_TAGstatic java.lang.StringFOCUSABLE_COMPONENTprotected static java.lang.StringNAVIGATION_EVENTstatic java.lang.StringON_ALL_MESSAGE_SHOWstatic java.lang.StringON_ALL_ROWS_SHOWstatic java.lang.StringON_ALL_SECTIONS_SHOWstatic java.lang.StringON_MESSAGE_CLICKEDstatic java.lang.StringON_MESSAGE_HIDEstatic java.lang.StringON_ROW_HIDEstatic java.lang.StringON_ROW_MOVEDstatic java.lang.StringON_ROW_SHOWstatic java.lang.StringON_SECTION_ADDEDstatic java.lang.StringON_SECTION_CLOSEDstatic java.lang.StringON_SECTION_HIDEstatic java.lang.StringON_SECTION_LABEL_CHANGEstatic java.lang.StringON_SECTION_MOVEDstatic java.lang.StringON_SECTION_OPENstatic java.lang.StringON_SECTION_REMOVEDstatic java.lang.StringON_SECTION_SHOWstatic java.lang.StringON_SECTIONS_COLLAPSEDstatic java.lang.StringON_SECTIONS_EXPANDEDprotected static java.lang.StringPERSP_IDprotected static java.lang.StringPERSP_TAGJumping url stuff for "change constraint" featureprotected static java.lang.StringPNAV_CONSTRAINTstatic java.lang.StringSECTION_NAMEstatic java.lang.StringSECTION_ROW
-
Constructor Summary
Constructors Constructor Description SectionPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCompose()protected voidappendPanelSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp)protected voidappendSectionSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp, Section section)protected voidappendViewSettingsMenu(org.zkoss.zul.Menupopup menuPopUp)voidattacheValidationMenupopup(SectionRow row, org.zkoss.zul.Menupopup menuPopup)protected voidcollapseAllSections(SectionPanel.SectionComponent exclude)org.zkoss.zk.ui.HtmlBasedComponentcreateRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer)SectionPanel.SectionRowComponentcreateRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer, java.lang.String labelWidth)protected org.zkoss.zul.MenupopupcreateRowContextMenu(SectionRow row, Section section)protected org.zkoss.zul.MenucreateRowsMenu(Section section)protected org.zkoss.zul.DivcreateRowValueContainer(SectionRow row)protected org.zkoss.zul.MenupopupcreateSectionContextMenu(Section section)voiddesktopRemoved(org.zkoss.zk.ui.Desktop desktop)voiddetach()protected voiddoRowHidden(SectionRow row)protected voiddoRowShown(SectionRow row)protected voiddoRowUpdated(SectionRow row)protected voiddoSectionAdded(Section section)protected voiddoSectionHidden(Section section)protected voiddoSectionRemoved(Section section)protected voiddoSectionShown(Section section)protected voiddoSectionUpdated(Section section)protected voidexpandAllSections()voidfocusNext(SectionRow row, java.lang.String nextIso)java.util.Set<SectionRow>getAllRows()protected java.util.List<SectionPanel.SectionComponent>getAllSectionComponents()protected org.zkoss.zul.MenupopupgetContextMenu()java.lang.StringgetImageUrl()protected org.zkoss.zk.ui.ComponentgetInfoContainer()java.lang.StringgetLabel()protected org.zkoss.zk.ui.ComponentgetLabelContainer()protected org.zkoss.zk.ui.ComponentgetMainBorderlayout()MessageBoxRenderergetMessageBoxRenderer()protected org.zkoss.zk.ui.ComponentgetMessageContainer()java.util.List<Message>getMessages()SectionPanelModelgetModel()protected SectionRowgetNextVisibleRow(SectionRow row)protected SectionPanel.SectionRowComponentgetRowComponent(SectionRow row)java.lang.StringgetRowLabelWidth()protected SectiongetSection(SectionRow row)SectionPanel.SectionComponentgetSectionComponent(Section section)protected org.zkoss.zk.ui.ComponentgetSectionContainer()protected org.zkoss.zk.ui.ComponentgetSectionContainerDiv()SectionPanelLabelRenderergetSectionPanelLabelRenderer()SectionRenderergetSectionRenderer()SectionRowRenderergetSectionRowRenderer()SectionRowgetSelectedRow()voidhandleKeyDown()protected voidhighlightRow(SectionRow sectionRow)booleanisAlternateOpen()protected booleanisCollectionReference(PropertyDescriptor propertyDescriptor)booleanisEditMode()booleanisFlatSectionLayout()booleanisLazyLoad()booleanisSectionsChangeAllowed()voidonCtrlKey(org.zkoss.zk.ui.event.KeyEvent keyEvent)voidonDrop(org.zkoss.zk.ui.event.DropEvent event)voidonPageDetached(org.zkoss.zk.ui.Page page)voidonPortalMoved(org.zkoss.zkmax.event.PortalMoveEvent event)voidonShowAllMessages()protected voidregisterRowComponent(Section section, SectionRow row, SectionPanel.SectionRowComponent comp)protected voidregisterSectionComponent(Section section, SectionPanel.SectionComponent comp)protected voidrenderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row)protected voidrenderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row, boolean useRowRenderer)protected voidresetInfoContainer()protected voidresetRowsMenu(SectionPanel panel, Section section, org.zkoss.zul.Menupopup nmp)protected voidresetSectionMenu(org.zkoss.zul.Menu menu)protected voidresetView()voidsetAlternateOpen(boolean alternateOpen)voidsetEditMode(boolean editMode)voidsetFlatSectionLayout(boolean flatSectionLayout)voidsetLazyLoad(boolean lazyLoad)voidsetMessageBoxRenderer(MessageBoxRenderer messageBoxRenderer)voidsetModel(SectionPanelModel model)voidsetRowLabelWidth(java.lang.String rowLabelWidth)voidsetRowStatus(SectionRow row, int status, java.lang.String localizedMsg)voidsetSectionHeaderStatus(Section section, int status)voidsetSectionPanelLabelRenderer(SectionPanelLabelRenderer sectionPanelLabelRenderer)voidsetSectionRenderer(SectionRenderer sectionRenderer)voidsetSectionRowRenderer(SectionRowRenderer sectionRowRenderer)voidsetSectionsChangeAllowed(boolean sectionsChangeAllowed)voidsetSelectedRow(SectionRow selectedRow)voidsetSelectedRow(SectionRow selectedRow, boolean highlight)protected voidunregisterRowComponents(Section section)protected voidupdateMode(org.zkoss.zk.ui.Component parent)protected voidupdateSectionPositions()-
Methods inherited from class org.zkoss.zk.ui.HtmlMacroComponent
clone, compose, getDynamicProperty, getEnclosingTag, getMacroURI, getWidgetClass, hasDynamicProperty, isChildable, isInline, recreate, renderProperties, setDynamicProperty, setEnclosingTag, setInlineParent, setMacroURI, setPage, setParent
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPageBefore, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLASS_SECTION_SELECTED_ROW
public static final java.lang.String CLASS_SECTION_SELECTED_ROW
- See Also:
- Constant Field Values
-
FOCUSABLE_COMPONENT
public static final java.lang.String FOCUSABLE_COMPONENT
- See Also:
- Constant Field Values
-
ON_SECTION_REMOVED
public static final java.lang.String ON_SECTION_REMOVED
- See Also:
- Constant Field Values
-
ON_SECTION_MOVED
public static final java.lang.String ON_SECTION_MOVED
- See Also:
- Constant Field Values
-
ON_SECTION_ADDED
public static final java.lang.String ON_SECTION_ADDED
- See Also:
- Constant Field Values
-
ON_SECTION_HIDE
public static final java.lang.String ON_SECTION_HIDE
- See Also:
- Constant Field Values
-
ON_SECTION_LABEL_CHANGE
public static final java.lang.String ON_SECTION_LABEL_CHANGE
- See Also:
- Constant Field Values
-
ON_SECTION_SHOW
public static final java.lang.String ON_SECTION_SHOW
- See Also:
- Constant Field Values
-
ON_SECTION_OPEN
public static final java.lang.String ON_SECTION_OPEN
- See Also:
- Constant Field Values
-
ON_SECTION_CLOSED
public static final java.lang.String ON_SECTION_CLOSED
- See Also:
- Constant Field Values
-
ON_SECTIONS_EXPANDED
public static final java.lang.String ON_SECTIONS_EXPANDED
- See Also:
- Constant Field Values
-
ON_SECTIONS_COLLAPSED
public static final java.lang.String ON_SECTIONS_COLLAPSED
- See Also:
- Constant Field Values
-
ON_ROW_HIDE
public static final java.lang.String ON_ROW_HIDE
- See Also:
- Constant Field Values
-
ON_ROW_SHOW
public static final java.lang.String ON_ROW_SHOW
- See Also:
- Constant Field Values
-
ON_ROW_MOVED
public static final java.lang.String ON_ROW_MOVED
- See Also:
- Constant Field Values
-
ON_ALL_ROWS_SHOW
public static final java.lang.String ON_ALL_ROWS_SHOW
- See Also:
- Constant Field Values
-
ON_ALL_SECTIONS_SHOW
public static final java.lang.String ON_ALL_SECTIONS_SHOW
- See Also:
- Constant Field Values
-
ON_MESSAGE_CLICKED
public static final java.lang.String ON_MESSAGE_CLICKED
- See Also:
- Constant Field Values
-
ON_MESSAGE_HIDE
public static final java.lang.String ON_MESSAGE_HIDE
- See Also:
- Constant Field Values
-
ON_ALL_MESSAGE_SHOW
public static final java.lang.String ON_ALL_MESSAGE_SHOW
- See Also:
- Constant Field Values
-
SECTION_ROW
public static final java.lang.String SECTION_ROW
- See Also:
- Constant Field Values
-
SECTION_NAME
public static final java.lang.String SECTION_NAME
- See Also:
- Constant Field Values
-
PERSP_TAG
protected static final java.lang.String PERSP_TAG
Jumping url stuff for "change constraint" feature- See Also:
- Constant Field Values
-
PERSP_ID
protected static final java.lang.String PERSP_ID
- See Also:
- Constant Field Values
-
EVENT_TAG
protected static final java.lang.String EVENT_TAG
- See Also:
- Constant Field Values
-
NAVIGATION_EVENT
protected static final java.lang.String NAVIGATION_EVENT
- See Also:
- Constant Field Values
-
PNAV_CONSTRAINT
protected static final java.lang.String PNAV_CONSTRAINT
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerSectionComponent
protected void registerSectionComponent(Section section, SectionPanel.SectionComponent comp)
-
getSectionComponent
public SectionPanel.SectionComponent getSectionComponent(Section section)
-
registerRowComponent
protected void registerRowComponent(Section section, SectionRow row, SectionPanel.SectionRowComponent comp)
-
unregisterRowComponents
protected void unregisterRowComponents(Section section)
-
getRowComponent
protected SectionPanel.SectionRowComponent getRowComponent(SectionRow row)
-
getContextMenu
protected org.zkoss.zul.Menupopup getContextMenu()
-
getSectionContainer
protected org.zkoss.zk.ui.Component getSectionContainer()
-
getSectionContainerDiv
protected org.zkoss.zk.ui.Component getSectionContainerDiv()
-
getMainBorderlayout
protected org.zkoss.zk.ui.Component getMainBorderlayout()
-
getMessageContainer
protected org.zkoss.zk.ui.Component getMessageContainer()
-
getLabelContainer
protected org.zkoss.zk.ui.Component getLabelContainer()
-
getInfoContainer
protected org.zkoss.zk.ui.Component getInfoContainer()
-
createRowComponent
public org.zkoss.zk.ui.HtmlBasedComponent createRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer)
-
renderRowValue
protected void renderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row)
-
renderRowValue
protected void renderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row, boolean useRowRenderer)
-
createRowComponent
public SectionPanel.SectionRowComponent createRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer, java.lang.String labelWidth)
-
createRowValueContainer
protected org.zkoss.zul.Div createRowValueContainer(SectionRow row)
-
createRowContextMenu
protected org.zkoss.zul.Menupopup createRowContextMenu(SectionRow row, Section section)
-
collapseAllSections
protected void collapseAllSections(SectionPanel.SectionComponent exclude)
-
expandAllSections
protected void expandAllSections()
-
appendPanelSpecificMenuItems
protected void appendPanelSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp)
-
appendSectionSpecificMenuItems
protected void appendSectionSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp, Section section)
-
createRowsMenu
protected org.zkoss.zul.Menu createRowsMenu(Section section)
-
resetRowsMenu
protected void resetRowsMenu(SectionPanel panel, Section section, org.zkoss.zul.Menupopup nmp)
-
appendViewSettingsMenu
protected void appendViewSettingsMenu(org.zkoss.zul.Menupopup menuPopUp)
-
createSectionContextMenu
protected org.zkoss.zul.Menupopup createSectionContextMenu(Section section)
-
getLabel
public java.lang.String getLabel()
-
getImageUrl
public java.lang.String getImageUrl()
-
getMessages
public java.util.List<Message> getMessages()
-
getAllSectionComponents
protected java.util.List<SectionPanel.SectionComponent> getAllSectionComponents()
-
setSectionRowRenderer
public void setSectionRowRenderer(SectionRowRenderer sectionRowRenderer)
-
getSectionRowRenderer
public SectionRowRenderer getSectionRowRenderer()
-
getSectionRenderer
public SectionRenderer getSectionRenderer()
-
setSectionRenderer
public void setSectionRenderer(SectionRenderer sectionRenderer)
-
setModel
public void setModel(SectionPanelModel model)
-
resetSectionMenu
protected void resetSectionMenu(org.zkoss.zul.Menu menu)
-
resetInfoContainer
protected void resetInfoContainer()
-
updateSectionPositions
protected void updateSectionPositions()
-
onPortalMoved
public void onPortalMoved(org.zkoss.zkmax.event.PortalMoveEvent event)
-
onDrop
public void onDrop(org.zkoss.zk.ui.event.DropEvent event)
-
onShowAllMessages
public void onShowAllMessages()
-
afterCompose
public void afterCompose()
- Specified by:
afterComposein interfaceorg.zkoss.zk.ui.ext.AfterCompose- Overrides:
afterComposein classorg.zkoss.zk.ui.HtmlMacroComponent
-
resetView
protected void resetView()
-
getModel
public SectionPanelModel getModel()
-
doSectionRemoved
protected void doSectionRemoved(Section section)
-
doSectionHidden
protected void doSectionHidden(Section section)
-
doSectionShown
protected void doSectionShown(Section section)
-
doSectionUpdated
protected void doSectionUpdated(Section section)
-
doSectionAdded
protected void doSectionAdded(Section section)
-
getSection
protected Section getSection(SectionRow row)
-
doRowUpdated
protected void doRowUpdated(SectionRow row)
-
doRowHidden
protected void doRowHidden(SectionRow row)
-
doRowShown
protected void doRowShown(SectionRow row)
-
onCtrlKey
public void onCtrlKey(org.zkoss.zk.ui.event.KeyEvent keyEvent)
-
handleKeyDown
public void handleKeyDown()
-
highlightRow
protected void highlightRow(SectionRow sectionRow)
-
setRowStatus
public void setRowStatus(SectionRow row, int status, java.lang.String localizedMsg)
-
setSectionHeaderStatus
public void setSectionHeaderStatus(Section section, int status)
-
attacheValidationMenupopup
public void attacheValidationMenupopup(SectionRow row, org.zkoss.zul.Menupopup menuPopup)
-
getAllRows
public java.util.Set<SectionRow> getAllRows()
-
getNextVisibleRow
protected SectionRow getNextVisibleRow(SectionRow row)
-
focusNext
public void focusNext(SectionRow row, java.lang.String nextIso)
-
setSelectedRow
public void setSelectedRow(SectionRow selectedRow)
-
setSelectedRow
public void setSelectedRow(SectionRow selectedRow, boolean highlight)
-
getSelectedRow
public SectionRow getSelectedRow()
-
setMessageBoxRenderer
public void setMessageBoxRenderer(MessageBoxRenderer messageBoxRenderer)
-
getMessageBoxRenderer
public MessageBoxRenderer getMessageBoxRenderer()
-
setAlternateOpen
public void setAlternateOpen(boolean alternateOpen)
-
isAlternateOpen
public boolean isAlternateOpen()
-
setFlatSectionLayout
public void setFlatSectionLayout(boolean flatSectionLayout)
-
isFlatSectionLayout
public boolean isFlatSectionLayout()
-
detach
public void detach()
- Specified by:
detachin interfaceorg.zkoss.zk.ui.Component- Overrides:
detachin classorg.zkoss.zk.ui.AbstractComponent
-
updateMode
protected void updateMode(org.zkoss.zk.ui.Component parent)
-
isCollectionReference
protected boolean isCollectionReference(PropertyDescriptor propertyDescriptor)
-
desktopRemoved
public void desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
- Specified by:
desktopRemovedin interfaceDesktopRemovalAwareComponent
-
onPageDetached
public void onPageDetached(org.zkoss.zk.ui.Page page)
- Specified by:
onPageDetachedin interfaceorg.zkoss.zk.ui.sys.ComponentCtrl- Overrides:
onPageDetachedin classorg.zkoss.zk.ui.AbstractComponent
-
setRowLabelWidth
public void setRowLabelWidth(java.lang.String rowLabelWidth)
-
getRowLabelWidth
public java.lang.String getRowLabelWidth()
-
setSectionPanelLabelRenderer
public void setSectionPanelLabelRenderer(SectionPanelLabelRenderer sectionPanelLabelRenderer)
-
getSectionPanelLabelRenderer
public SectionPanelLabelRenderer getSectionPanelLabelRenderer()
-
setLazyLoad
public void setLazyLoad(boolean lazyLoad)
-
isLazyLoad
public boolean isLazyLoad()
-
setEditMode
public void setEditMode(boolean editMode)
-
isEditMode
public boolean isEditMode()
-
setSectionsChangeAllowed
public void setSectionsChangeAllowed(boolean sectionsChangeAllowed)
-
isSectionsChangeAllowed
public boolean isSectionsChangeAllowed()
-
-