Interface SelectionHandler

All Known Implementing Classes:
AbstractSelectionHandler, MultipleSelectionHandler

public interface SelectionHandler
Author:
Laurent Cohen
  • Method Details

    • handle

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

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

      boolean isSelected(String uuid)
      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.
    • getFilter

      org.jppf.ui.treetable.TreeNodeFilter getFilter()
      Get the filter for this selection handler.
      Returns:
      a TreeNodeFilter instance.
    • setFilter

      SelectionHandler setFilter(org.jppf.ui.treetable.TreeNodeFilter filter)
      Set the filter for this selection handler.
      Parameters:
      filter - a TreeNodeFilter instance.
      Returns:
      this selection handler, for method call chaining.
    • select

      void select(String uuid)
      Select the specified uuid.
      Parameters:
      uuid - uuid of the element to select.
    • unselect

      void unselect(String uuid)
      un-select the specified uuid.
      Parameters:
      uuid - uuid of the element to unselect.
    • clearSelection

      void clearSelection()
      Clear the selection.
    • cleanup

      void cleanup()
      Free resources.
    • addSelectionListener

      void addSelectionListener(SelectionListener listener)
      Add a selection listenr to this handler.
      Parameters:
      listener - the listener to add.
    • removeSelectionListener

      void removeSelectionListener(SelectionListener listener)
      Remove a selection listenr from this handler.
      Parameters:
      listener - the listener to remove.