Class GenericItemMandatoryPage

    • Field Detail

      • WIZARD_GROUP_LABEL

        protected static final java.lang.String WIZARD_GROUP_LABEL
        See Also:
        Constant Field Values
      • WIZARD_GROUP_CONTAINER

        protected static final java.lang.String WIZARD_GROUP_CONTAINER
        See Also:
        Constant Field Values
      • WIZARD_GROUP_EDITOR_CONTAINER

        protected static final java.lang.String WIZARD_GROUP_EDITOR_CONTAINER
        See Also:
        Constant Field Values
      • WIZARD_GROUP_ROW_LABEL

        protected static final java.lang.String WIZARD_GROUP_ROW_LABEL
        See Also:
        Constant Field Values
    • Constructor Detail

      • GenericItemMandatoryPage

        public GenericItemMandatoryPage()
      • GenericItemMandatoryPage

        public GenericItemMandatoryPage​(java.lang.String pageTitle)
      • GenericItemMandatoryPage

        public GenericItemMandatoryPage​(java.lang.String pageTitle,
                                        GenericItemWizard wizard)
    • Method Detail

      • createGroupRow

        protected final org.zkoss.zk.ui.Component createGroupRow​(org.zkoss.zk.ui.Component parent,
                                                                 PropertyDescriptor descriptor,
                                                                 TypedObject currentObject,
                                                                 java.lang.String editorCode,
                                                                 int errorLevel,
                                                                 java.util.Map<java.lang.String,​java.lang.String> params)
        Creates one single row for group on that page.

        Parameters:
        parent - parent component HtmlBasedComponent
        descriptor - property descriptor for which editor should be displayed
        currentObject - current object TypedObject
        editorCode - editor code that should be used for displaying given properties
        errorLevel - is this property causing error
        params - configuration parameters
        Returns:
        a component that represents row within group
      • createGroupSectionContent

        protected void createGroupSectionContent​(org.zkoss.zk.ui.HtmlBasedComponent group,
                                                 java.util.Collection<java.lang.String> allreadyDisplayedProperties,
                                                 java.util.Collection<java.lang.String> displaydDescriptors,
                                                 WizardConfiguration wizardConfiguration)
        Creates a group content accordingly to given parameters

        Parameters:
        group - parent @{link HtmlBasedComponent
        allreadyDisplayedProperties - properties already displayed
        displaydDescriptors - properties that should be displayed for that group
        wizardConfiguration - wizard configuration
      • createGroup

        protected AdvancedGroupbox createGroup​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                                               boolean open,
                                               java.lang.String label)
        Creates one single group for particular page

        Parameters:
        parent - component HtmlBasedComponent
        open - flag that determines whether groups should be opened
        label - group label
        Returns:
        a component that represents single group
      • extractPropertyQualifiers

        protected java.util.List<java.lang.String> extractPropertyQualifiers​(java.util.List<PropertyDescriptor> propertyDescriptors)
      • getParameters

        public java.util.Map<java.lang.String,​? extends java.lang.Object> getParameters()
      • getValue

        public java.lang.Object getValue()
      • loadInitConfigValues

        protected void loadInitConfigValues​(PropertyDescriptor descriptor,
                                            WizardConfiguration wizardConfig)
        Method loads initial values that can be defined within WizardConfiguration

        Parameters:
        descriptor - property descriptor
        wizardConfig - current wizard configuration
      • render

        protected void render​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                              java.util.Collection<java.lang.String> requiredDescriptors)
        Main method that is used for render whole page's content (i.e. all group and rows configured via WizardConfiguration)

        Parameters:
        parent - component HtmlBasedComponent
        requiredDescriptors - descriptors that are required in order to instantiate a given @{link ObjectTemplate
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters)
      • setValue

        public void setValue​(java.lang.Object value)