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 class
SectionPanel.SectionComponent
protected class
SectionPanel.SectionRowComponent
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_SECTION_SELECTED_ROW
protected static java.lang.String
EVENT_TAG
static java.lang.String
FOCUSABLE_COMPONENT
protected static java.lang.String
NAVIGATION_EVENT
static java.lang.String
ON_ALL_MESSAGE_SHOW
static java.lang.String
ON_ALL_ROWS_SHOW
static java.lang.String
ON_ALL_SECTIONS_SHOW
static java.lang.String
ON_MESSAGE_CLICKED
static java.lang.String
ON_MESSAGE_HIDE
static java.lang.String
ON_ROW_HIDE
static java.lang.String
ON_ROW_MOVED
static java.lang.String
ON_ROW_SHOW
static java.lang.String
ON_SECTION_ADDED
static java.lang.String
ON_SECTION_CLOSED
static java.lang.String
ON_SECTION_HIDE
static java.lang.String
ON_SECTION_LABEL_CHANGE
static java.lang.String
ON_SECTION_MOVED
static java.lang.String
ON_SECTION_OPEN
static java.lang.String
ON_SECTION_REMOVED
static java.lang.String
ON_SECTION_SHOW
static java.lang.String
ON_SECTIONS_COLLAPSED
static java.lang.String
ON_SECTIONS_EXPANDED
protected static java.lang.String
PERSP_ID
protected static java.lang.String
PERSP_TAG
Jumping url stuff for "change constraint" featureprotected static java.lang.String
PNAV_CONSTRAINT
static java.lang.String
SECTION_NAME
static java.lang.String
SECTION_ROW
-
Constructor Summary
Constructors Constructor Description SectionPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCompose()
protected void
appendPanelSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp)
protected void
appendSectionSpecificMenuItems(org.zkoss.zul.Menupopup menuPopUp, Section section)
protected void
appendViewSettingsMenu(org.zkoss.zul.Menupopup menuPopUp)
void
attacheValidationMenupopup(SectionRow row, org.zkoss.zul.Menupopup menuPopup)
protected void
collapseAllSections(SectionPanel.SectionComponent exclude)
org.zkoss.zk.ui.HtmlBasedComponent
createRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer)
SectionPanel.SectionRowComponent
createRowComponent(Section section, SectionRow row, org.zkoss.zk.ui.Component rowContainer, org.zkoss.zk.ui.Component sectionContentContainer, java.lang.String labelWidth)
protected org.zkoss.zul.Menupopup
createRowContextMenu(SectionRow row, Section section)
protected org.zkoss.zul.Menu
createRowsMenu(Section section)
protected org.zkoss.zul.Div
createRowValueContainer(SectionRow row)
protected org.zkoss.zul.Menupopup
createSectionContextMenu(Section section)
void
desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
void
detach()
protected void
doRowHidden(SectionRow row)
protected void
doRowShown(SectionRow row)
protected void
doRowUpdated(SectionRow row)
protected void
doSectionAdded(Section section)
protected void
doSectionHidden(Section section)
protected void
doSectionRemoved(Section section)
protected void
doSectionShown(Section section)
protected void
doSectionUpdated(Section section)
protected void
expandAllSections()
void
focusNext(SectionRow row, java.lang.String nextIso)
java.util.Set<SectionRow>
getAllRows()
protected java.util.List<SectionPanel.SectionComponent>
getAllSectionComponents()
protected org.zkoss.zul.Menupopup
getContextMenu()
java.lang.String
getImageUrl()
protected org.zkoss.zk.ui.Component
getInfoContainer()
java.lang.String
getLabel()
protected org.zkoss.zk.ui.Component
getLabelContainer()
protected org.zkoss.zk.ui.Component
getMainBorderlayout()
MessageBoxRenderer
getMessageBoxRenderer()
protected org.zkoss.zk.ui.Component
getMessageContainer()
java.util.List<Message>
getMessages()
SectionPanelModel
getModel()
protected SectionRow
getNextVisibleRow(SectionRow row)
protected SectionPanel.SectionRowComponent
getRowComponent(SectionRow row)
java.lang.String
getRowLabelWidth()
protected Section
getSection(SectionRow row)
SectionPanel.SectionComponent
getSectionComponent(Section section)
protected org.zkoss.zk.ui.Component
getSectionContainer()
protected org.zkoss.zk.ui.Component
getSectionContainerDiv()
SectionPanelLabelRenderer
getSectionPanelLabelRenderer()
SectionRenderer
getSectionRenderer()
SectionRowRenderer
getSectionRowRenderer()
SectionRow
getSelectedRow()
void
handleKeyDown()
protected void
highlightRow(SectionRow sectionRow)
boolean
isAlternateOpen()
protected boolean
isCollectionReference(PropertyDescriptor propertyDescriptor)
boolean
isEditMode()
boolean
isFlatSectionLayout()
boolean
isLazyLoad()
boolean
isSectionsChangeAllowed()
void
onCtrlKey(org.zkoss.zk.ui.event.KeyEvent keyEvent)
void
onDrop(org.zkoss.zk.ui.event.DropEvent event)
void
onPageDetached(org.zkoss.zk.ui.Page page)
void
onPortalMoved(org.zkoss.zkmax.event.PortalMoveEvent event)
void
onShowAllMessages()
protected void
registerRowComponent(Section section, SectionRow row, SectionPanel.SectionRowComponent comp)
protected void
registerSectionComponent(Section section, SectionPanel.SectionComponent comp)
protected void
renderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row)
protected void
renderRowValue(org.zkoss.zk.ui.Component valueContainer, SectionRow row, boolean useRowRenderer)
protected void
resetInfoContainer()
protected void
resetRowsMenu(SectionPanel panel, Section section, org.zkoss.zul.Menupopup nmp)
protected void
resetSectionMenu(org.zkoss.zul.Menu menu)
protected void
resetView()
void
setAlternateOpen(boolean alternateOpen)
void
setEditMode(boolean editMode)
void
setFlatSectionLayout(boolean flatSectionLayout)
void
setLazyLoad(boolean lazyLoad)
void
setMessageBoxRenderer(MessageBoxRenderer messageBoxRenderer)
void
setModel(SectionPanelModel model)
void
setRowLabelWidth(java.lang.String rowLabelWidth)
void
setRowStatus(SectionRow row, int status, java.lang.String localizedMsg)
void
setSectionHeaderStatus(Section section, int status)
void
setSectionPanelLabelRenderer(SectionPanelLabelRenderer sectionPanelLabelRenderer)
void
setSectionRenderer(SectionRenderer sectionRenderer)
void
setSectionRowRenderer(SectionRowRenderer sectionRowRenderer)
void
setSectionsChangeAllowed(boolean sectionsChangeAllowed)
void
setSelectedRow(SectionRow selectedRow)
void
setSelectedRow(SectionRow selectedRow, boolean highlight)
protected void
unregisterRowComponents(Section section)
protected void
updateMode(org.zkoss.zk.ui.Component parent)
protected void
updateSectionPositions()
-
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
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, 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, equals, 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
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:
afterCompose
in interfaceorg.zkoss.zk.ui.ext.AfterCompose
- Overrides:
afterCompose
in 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:
detach
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
detach
in 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:
desktopRemoved
in interfaceDesktopRemovalAwareComponent
-
onPageDetached
public void onPageDetached(org.zkoss.zk.ui.Page page)
- Specified by:
onPageDetached
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
onPageDetached
in 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()
-
-