Package org.jppf.admin.web.tabletree
Class TableTreeData
java.lang.Object
org.jppf.admin.web.tabletree.TableTreeData
- All Implemented Interfaces:
SelectionListener
- Direct Known Subclasses:
HealthTreeData,JobsTreeData,TopologyTreeData
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jppf.ui.treetable.AbstractJPPFTreeTableModelThe tree table model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Free resources.protected abstract voidCreate the tree model.org.apache.wicket.model.IModel<Set<DefaultMutableTreeNode>>org.jppf.ui.treetable.AbstractJPPFTreeTableModelgetModel()Get the currently selected nodes.org.jppf.ui.treetable.TreeViewTypebooleanvoidselectionChanged(SelectionHandler source) Called when the selection changes.voidsetActionHandler(ActionHandler actionHandler) voidsetFirstExpansion(boolean firstExpansion) Specify whether this is the first time any node is expanded.voidsetSelectionHandler(SelectionHandler selectionHandler)
-
Field Details
-
model
protected transient org.jppf.ui.treetable.AbstractJPPFTreeTableModel modelThe tree table model.
-
-
Constructor Details
-
TableTreeData
public TableTreeData(org.jppf.ui.treetable.TreeViewType viewType) - Parameters:
viewType- the view type.
-
-
Method Details
-
getModel
public org.jppf.ui.treetable.AbstractJPPFTreeTableModel getModel()- Returns:
- the tree table model.
-
getSelectionHandler
- Returns:
- the selection handler.
-
setSelectionHandler
- Parameters:
selectionHandler- the selection handler.
-
getActionHandler
- Returns:
- the action handler.
-
setActionHandler
- Parameters:
actionHandler- the action handler.
-
cleanup
public void cleanup()Free resources. -
selectionChanged
Description copied from interface:SelectionListenerCalled when the selection changes.- Specified by:
selectionChangedin interfaceSelectionListener- Parameters:
source- the source of the event.
-
getSelectedTreeNodes
Get the currently selected nodes.- Returns:
- the selected tree nodes.
-
getViewType
public org.jppf.ui.treetable.TreeViewType getViewType()- Returns:
- the view type.
-
getExpansionModel
- Returns:
- the object that keeps tabs on the expanded nodes in the tree.
-
isFirstExpansion
public boolean isFirstExpansion()- Returns:
- whether this is the first time any node is expanded.
-
setFirstExpansion
public void setFirstExpansion(boolean firstExpansion) Specify whether this is the first time any node is expanded.- Parameters:
firstExpansion-trueif first-tome expansion,falseotherwise.
-
createTreeTableModel
protected abstract void createTreeTableModel()Create the tree model.
-