Class UserSelectionDialog

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Window
com.saperion.ngc.events.BaseWindow
com.saperion.ngc.dialogs.userselect.UserSelectionDialog
All Implemented Interfaces:
EventChild, EventChildHandler, LogEventChildHandler, Serializable, 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:
  • Field Details

  • Constructor Details

    • UserSelectionDialog

      public UserSelectionDialog()
  • Method Details

    • endModalCancel

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

      public void endModalOk() throws Exception
      Close dialog with ok.
      Throws:
      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(Set<?> items) throws Exception
      Adds the specified items to the list of selected members.
      Parameters:
      items - TreeItems to add
      Throws:
      Exception - execption
    • removeFromList

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

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

      public void filterUserTree(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