Class UserSelectionDialog

  • All Implemented Interfaces:
    EventChild, EventChildHandler, LogEventChildHandler, java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Framable

    public final class UserSelectionDialog
    extends BaseWindow
    Dialog window to select workflow actors.
    See Also:
    Serialized Form
    • Field Detail

      • USER_TO_ADD

        public static final java.lang.String USER_TO_ADD
        Drag&Drop identifier for users to add.
        See Also:
        Constant Field Values
      • GROUP_TO_ADD

        public static final java.lang.String GROUP_TO_ADD
        Drag&Drop identifier for groups to add.
        See Also:
        Constant Field Values
      • ITEM_TO_REMOVE

        public static final java.lang.String ITEM_TO_REMOVE
        Drag&Drop identifier for items to remove.
        See Also:
        Constant Field Values
      • ID_BUTTON_REMOVE

        public static final java.lang.String ID_BUTTON_REMOVE
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserSelectionDialog

        public UserSelectionDialog()
    • Method Detail

      • endModalCancel

        public void endModalCancel()
                            throws java.lang.Exception
        Close dialog with cancel.
        Throws:
        java.lang.Exception - exception
      • endModalOk

        public void endModalOk()
                        throws java.lang.Exception
        Close dialog with ok.
        Throws:
        java.lang.Exception - exception
      • setTreeModel

        public void setTreeModel​(org.zkoss.zul.TreeModel model)
        Sets the treemodel to use.
        Parameters:
        model - treemodel
      • setListModel

        public void setListModel​(org.zkoss.zul.ListModelList model)
        Sets the listmodel to use.
        Parameters:
        model - listmodel
      • setUseMultiSelection

        public void setUseMultiSelection​(boolean multiSelection)
        Sets flag that indicates whether only single user selection is allowed.
        Parameters:
        multiSelection - true if only single user selection is allowed
      • addToList

        public void addToList​(java.util.Set<?> items)
                       throws java.lang.Exception
        Adds the specified items to the list of selected members.
        Parameters:
        items - TreeItems to add
        Throws:
        java.lang.Exception - execption
      • removeFromList

        public void removeFromList​(java.util.Set<?> items)
        Removes the specified items from the list of selected members.
        Parameters:
        items - items to remove
      • selectedItems

        public void selectedItems​(java.util.Set<org.zkoss.zul.Treeitem> items)
        Handles the selection of tree items.
        Parameters:
        items - tree items
      • filterUserTree

        public void filterUserTree​(java.lang.String filter)
        Applies filter to user tree.
        Parameters:
        filter - filter string
      • show

        public static void show​(com.saperion.intf.wf.WorkflowMember userTree,
                                boolean multiSelection,
                                org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener)
        Deprecated.
        Shows the user selection dialog and returns the selected users.
        Parameters:
        userTree - available users
        multiSelection - multi user selection
        eventListener - event listener
      • show

        public static void show​(com.saperion.intf.wf.WorkflowMember userTree,
                                boolean multiSelection,
                                com.saperion.wf.UserSelectionFlags flags,
                                org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> eventListener)
        Shows the user selection dialog and returns the selected users.
        Parameters:
        userTree - available users
        multiSelection - multi user selection
        flags - user selection flags
        eventListener - event listener