Package org.jppf.admin.web.tabletree
Interface SelectionHandler
- All Known Implementing Classes:
AbstractSelectionHandler,MultipleSelectionHandler
public interface SelectionHandler
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionListener(SelectionListener listener) Add a selection listenr to this handler.voidcleanup()Free resources.voidClear the selection.org.jppf.ui.treetable.TreeNodeFilterGet the filter for this selection handler.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.voidremoveSelectionListener(SelectionListener listener) Remove a selection listenr from this handler.voidSelect the specified uuid.setFilter(org.jppf.ui.treetable.TreeNodeFilter filter) Set the filter for this selection handler.voidun-select the specified uuid.
-
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:
trueif the node is selected,falseotherwise.
-
getSelected
- Returns:
- the uuids of the selected tree nodes.
-
isSelected
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
TreeNodeFilterinstance.
-
setFilter
Set the filter for this selection handler.- Parameters:
filter- aTreeNodeFilterinstance.- Returns:
- this selection handler, for method call chaining.
-
select
Select the specified uuid.- Parameters:
uuid- uuid of the element to select.
-
unselect
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
Add a selection listenr to this handler.- Parameters:
listener- the listener to add.
-
removeSelectionListener
Remove a selection listenr from this handler.- Parameters:
listener- the listener to remove.
-