Class ProgressBean

    • Constructor Detail

      • ProgressBean

        public ProgressBean()
    • Method Detail

      • newInstance

        public static ProgressBean newInstance​(MenuNode targetMenuNode,
                                               java.lang.Integer initialValue,
                                               java.lang.String labelTemplate,
                                               boolean ajax,
                                               boolean displayOnly,
                                               boolean closeDilaogOncomplete,
                                               ContainerBean containerBean)
                                        throws SystemException
        Create progressBean with progress property and start menu node.
        Parameters:
        targetMenuNode - the menu node to show progress for
        initialValue - progress initial value, default is zero
        labelTemplate - progress label template such as {value}%
        ajax - whether to ajax poll progress value from server side
        displayOnly - whether to display progress statically
        closeDilaogOncomplete - whether to close progress dialog when targetMenuNode command is successfully executed.
        containerBean - can be progress dialogBean
        Returns:
        progressBean
        Throws:
        SystemException - throw if an error occurs in creating ProgressBean
      • getTargetMenuNode

        public MenuNode getTargetMenuNode()
        Get the target menuNode whose command execution progress will be tracked
        Returns:
        target MenuNode
      • createProgressModalDialog

        public static DialogBean createProgressModalDialog​(MenuNode targetMenuNode,
                                                           java.lang.Integer initialValue,
                                                           java.lang.String labelTemplate,
                                                           boolean ajax,
                                                           boolean displayOnly,
                                                           boolean closeDialogOncomplete,
                                                           ContainerBean containerBean)
                                                    throws SystemException
        Create modal dialogBean with progressBean.
        Parameters:
        targetMenuNode - the menu node for which to track progress
        initialValue - progress initial value, default is zero.
        labelTemplate - progress label template such as {value}%, use default if null
        ajax - whether to ajax poll progress value from server side
        displayOnly - whether to display progress statically
        closeDialogOncomplete - whether to close progress dialog when targetMenuNode command is successfully executed
        containerBean - parent containerBean of dialogBean to be created
        Returns:
        dialogBean
        Throws:
        SystemException - throw if an error occurs in creating progress bean