Class 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
    • Constructor Detail

      • SectionPanel

        public SectionPanel()
    • Method Detail

      • unregisterRowComponents

        protected void unregisterRowComponents​(Section section)
      • 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)
      • createRowValueContainer

        protected org.zkoss.zul.Div createRowValueContainer​(SectionRow row)
      • createRowContextMenu

        protected org.zkoss.zul.Menupopup createRowContextMenu​(SectionRow row,
                                                               Section section)
      • 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()
      • setSectionRowRenderer

        public void setSectionRowRenderer​(SectionRowRenderer sectionRowRenderer)
      • setSectionRenderer

        public void setSectionRenderer​(SectionRenderer sectionRenderer)
      • 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 interface org.zkoss.zk.ui.ext.AfterCompose
        Overrides:
        afterCompose in class org.zkoss.zk.ui.HtmlMacroComponent
      • resetView

        protected void resetView()
      • 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)
      • 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()
      • 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)
      • 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 interface org.zkoss.zk.ui.Component
        Overrides:
        detach in class org.zkoss.zk.ui.AbstractComponent
      • updateMode

        protected void updateMode​(org.zkoss.zk.ui.Component parent)
      • isCollectionReference

        protected boolean isCollectionReference​(PropertyDescriptor propertyDescriptor)
      • onPageDetached

        public void onPageDetached​(org.zkoss.zk.ui.Page page)
        Specified by:
        onPageDetached in interface org.zkoss.zk.ui.sys.ComponentCtrl
        Overrides:
        onPageDetached in class org.zkoss.zk.ui.AbstractComponent
      • setRowLabelWidth

        public void setRowLabelWidth​(java.lang.String rowLabelWidth)
      • getRowLabelWidth

        public java.lang.String getRowLabelWidth()
      • setSectionPanelLabelRenderer

        public void setSectionPanelLabelRenderer​(SectionPanelLabelRenderer sectionPanelLabelRenderer)
      • 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()