Package org.jppf.admin.web.tabletree
Class MultipleSelectionHandler
java.lang.Object
org.jppf.admin.web.tabletree.AbstractSelectionHandler
org.jppf.admin.web.tabletree.MultipleSelectionHandler
- All Implemented Interfaces:
SelectionHandler
A selectionHandler that handles the selection of multiple items.
-
Field Summary
Fields inherited from class org.jppf.admin.web.tabletree.AbstractSelectionHandler
filter, listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the selection.booleanhandle(org.apache.wicket.ajax.AjaxRequestTarget target, DefaultMutableTreeNode node, Object... params) Handle a selection/deselction event for the specified tree node.booleanisSelected(String uuid) Determine whether the specified node is selected.voidSelect the specified uuid.voidun-select the specified uuid.Methods inherited from class org.jppf.admin.web.tabletree.AbstractSelectionHandler
addSelectionListener, cleanup, getFilter, removeSelectionListener, setFilter
-
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:SelectionHandlerHandle 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:
trueif the node is selected,falseotherwise.
-
getSelected
- Returns:
- the uuids of the selected tree nodes.
-
isSelected
Description copied from interface:SelectionHandlerDetermine 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
Description copied from interface:SelectionHandlerSelect the specified uuid.- Specified by:
selectin interfaceSelectionHandler- Overrides:
selectin classAbstractSelectionHandler- Parameters:
uuid- uuid of the element to select.
-
unselect
Description copied from interface:SelectionHandlerun-select the specified uuid.- Specified by:
unselectin interfaceSelectionHandler- Overrides:
unselectin classAbstractSelectionHandler- Parameters:
uuid- uuid of the element to unselect.
-
clearSelection
public void clearSelection()Description copied from interface:SelectionHandlerClear the selection.
-