Package org.jppf.admin.web.tabletree
Class AbstractSelectionHandler
java.lang.Object
org.jppf.admin.web.tabletree.AbstractSelectionHandler
- All Implemented Interfaces:
SelectionHandler
- Direct Known Subclasses:
MultipleSelectionHandler
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jppf.ui.treetable.TreeNodeFilterThe filter to use.protected final List<SelectionListener>The listeners to this selection handler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionListener(SelectionListener listener) Add a selection listenr to this handler.voidcleanup()Free resources.org.jppf.ui.treetable.TreeNodeFilterGet the filter for this selection handler.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.admin.web.tabletree.SelectionHandler
clearSelection, getSelected, handle, isSelected
-
Field Details
-
filter
protected transient org.jppf.ui.treetable.TreeNodeFilter filterThe filter to use. -
listeners
The listeners to this selection handler.
-
-
Constructor Details
-
AbstractSelectionHandler
public AbstractSelectionHandler()
-
-
Method Details
-
getFilter
public org.jppf.ui.treetable.TreeNodeFilter getFilter()Description copied from interface:SelectionHandlerGet the filter for this selection handler.- Specified by:
getFilterin interfaceSelectionHandler- Returns:
- a
TreeNodeFilterinstance.
-
setFilter
Description copied from interface:SelectionHandlerSet the filter for this selection handler.- Specified by:
setFilterin interfaceSelectionHandler- Parameters:
filter- aTreeNodeFilterinstance.- Returns:
- this selection handler, for method call chaining.
-
select
Description copied from interface:SelectionHandlerSelect the specified uuid.- Specified by:
selectin interfaceSelectionHandler- Parameters:
uuid- uuid of the element to select.
-
unselect
Description copied from interface:SelectionHandlerun-select the specified uuid.- Specified by:
unselectin interfaceSelectionHandler- Parameters:
uuid- uuid of the element to unselect.
-
addSelectionListener
Description copied from interface:SelectionHandlerAdd a selection listenr to this handler.- Specified by:
addSelectionListenerin interfaceSelectionHandler- Parameters:
listener- the listener to add.
-
removeSelectionListener
Description copied from interface:SelectionHandlerRemove a selection listenr from this handler.- Specified by:
removeSelectionListenerin interfaceSelectionHandler- Parameters:
listener- the listener to remove.
-
cleanup
public void cleanup()Description copied from interface:SelectionHandlerFree resources.- Specified by:
cleanupin interfaceSelectionHandler
-