Class MultipleSelectionHandler

java.lang.Object
org.jppf.admin.web.tabletree.AbstractSelectionHandler
org.jppf.admin.web.tabletree.MultipleSelectionHandler
All Implemented Interfaces:
SelectionHandler

public class MultipleSelectionHandler extends AbstractSelectionHandler
A selectionHandler that handles the selection of multiple items.
  • Constructor Details

    • MultipleSelectionHandler

      public MultipleSelectionHandler()
  • Method Details

    • handle

      public boolean handle(org.apache.wicket.ajax.AjaxRequestTarget target, DefaultMutableTreeNode node, Object... params)
      Description copied from interface: SelectionHandler
      Handle a selection/deselction event for the specified tree node.
      Parameters:
      target - ajax target for the selection request.
      node - the node to handle.
      params - optional additional parameters.
      Returns:
      true if the node is selected, false otherwise.
    • getSelected

      public List<String> getSelected()
      Returns:
      the uuids of the selected tree nodes.
    • isSelected

      public boolean isSelected(String uuid)
      Description copied from interface: SelectionHandler
      Determine whether the specified node is selected.
      Parameters:
      uuid - uuid of the node to check.
      Returns:
      true if the node with the specified uuid is selected, false otherwise.
    • select

      public void select(String uuid)
      Description copied from interface: SelectionHandler
      Select the specified uuid.
      Specified by:
      select in interface SelectionHandler
      Overrides:
      select in class AbstractSelectionHandler
      Parameters:
      uuid - uuid of the element to select.
    • unselect

      public void unselect(String uuid)
      Description copied from interface: SelectionHandler
      un-select the specified uuid.
      Specified by:
      unselect in interface SelectionHandler
      Overrides:
      unselect in class AbstractSelectionHandler
      Parameters:
      uuid - uuid of the element to unselect.
    • clearSelection

      public void clearSelection()
      Description copied from interface: SelectionHandler
      Clear the selection.