Class FormButton

    • Constructor Detail

      • FormButton

        public FormButton​(java.lang.String label,
                          java.lang.String image)
                   throws NgcUiException
        Constructor.
        Parameters:
        label - Label
        image - Image
        Throws:
        NgcUiException - exception to be handled by view
      • FormButton

        public FormButton​(java.lang.String label)
                   throws NgcUiException
        Constructor.
        Parameters:
        label - Label
        Throws:
        NgcUiException - exception to be handled by view
      • FormButton

        public FormButton​(com.saperion.ngc.iform.xml.ButtonType buttonType,
                          com.saperion.ngc.iform.xml.PosType panePos,
                          boolean isNoLocatization)
                   throws NgcUiException
        Constructor.
        Parameters:
        buttonType - Button type
        panePos - Pane position
        isNoLocatization - disables the localization of this button
        Throws:
        NgcUiException - exception to be handled by view
    • Method Detail

      • getZclass

        public java.lang.String getZclass()
        Overrides:
        getZclass in class org.zkoss.zul.Button
      • onClick

        public final void onClick​(org.zkoss.zk.ui.event.Event event)
        Handler for onClick event.
        Parameters:
        event - event
      • setMold

        public void setMold​(java.lang.String mold)
        Specified by:
        setMold in interface org.zkoss.zk.ui.Component
        Overrides:
        setMold in class org.zkoss.zk.ui.AbstractComponent
        See Also:
        AbstractComponent.setMold(java.lang.String)
      • getKind

        public final com.saperion.ngc.iform.xml.ButtonKindType getKind()
        Returns:
        the kind
      • setKind

        public final void setKind​(com.saperion.ngc.iform.xml.ButtonKindType value)
                           throws NgcUiException
        Parameters:
        value - the kind to set
        Throws:
        NgcUiException - exception to be handled by view
      • isUseFields

        public final boolean isUseFields()
        Returns:
        the useFields
      • setUseFields

        public final void setUseFields​(boolean value)
                                throws NgcUiException
        Parameters:
        value - the useFields to set
        Throws:
        NgcUiException - exception to be handled by view
      • getSaveAction

        public final com.saperion.ngc.iform.xml.SaveActionType getSaveAction()
        Returns:
        the saveAction
      • setSaveAction

        public final void setSaveAction​(com.saperion.ngc.iform.xml.SaveActionType value)
                                 throws NgcUiException
        Parameters:
        value - the saveAction to set
        Throws:
        NgcUiException - exception to be handled by view
      • isUtf8

        public final boolean isUtf8()
        Returns:
        the utf8
      • setUtf8

        public final void setUtf8​(boolean value)
                           throws NgcUiException
        Parameters:
        value - the utf8 to set
        Throws:
        NgcUiException - exception to be handled by view
      • getWorkflowAction

        public final com.saperion.ngc.iform.xml.WorkflowActionType getWorkflowAction()
        Returns:
        the workflowAction
      • setWorkflowAction

        public final void setWorkflowAction​(com.saperion.ngc.iform.xml.WorkflowActionType value)
                                     throws NgcUiException
        Parameters:
        value - the workflowAction to set
        Throws:
        NgcUiException - exception to be handled by view
      • getEventtarget

        public java.util.Set<org.zkoss.zk.ui.Component> getEventtarget​(java.lang.String eventName)
        Reads the event target for the given event name, if set or the root element.
        Specified by:
        getEventtarget in interface EventChild
        Parameters:
        eventName - Event name or null for main target
        Returns:
        Set of event targets
        See Also:
        EventChildHandlerImpl.getEventtarget(java.lang.String)
      • setParent

        public void setParent​(org.zkoss.zk.ui.Component parent)
        Specified by:
        setParent in interface org.zkoss.zk.ui.Component
        Overrides:
        setParent in class org.zkoss.zk.ui.AbstractComponent
        See Also:
        AbstractComponent.setParent(org.zkoss.zk.ui.Component)
      • onPageAttached

        public void onPageAttached​(org.zkoss.zk.ui.Page newpage,
                                   org.zkoss.zk.ui.Page oldpage)
        Specified by:
        onPageAttached in interface org.zkoss.zk.ui.sys.ComponentCtrl
        Overrides:
        onPageAttached in class org.zkoss.zk.ui.AbstractComponent
        See Also:
        AbstractComponent.onPageAttached(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Page)
      • 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
        See Also:
        AbstractComponent.onPageDetached(org.zkoss.zk.ui.Page)
      • getParentForm

        public IntelligentFormView getParentForm()
        Returns the parent form or null, if this button is not part of a form.
        Returns:
        parent for or null
      • isNoLocalize

        public boolean isNoLocalize()
        Description copied from interface: Localized
        Returns the noLocalize parameter.
        Specified by:
        isNoLocalize in interface Localized
        Returns:
        noLocalize
      • setNoLocalize

        public void setNoLocalize​(boolean noLocalize)
        Description copied from interface: Localized
        Sets the noLocalize parameter that can be used to disable localization of this component.
        Specified by:
        setNoLocalize in interface Localized
        Parameters:
        noLocalize - value
      • generateUUID

        public java.lang.String generateUUID()
        Specified by:
        generateUUID in interface Identifiable
        Returns:
        the generated uuid for the DOM tree