Class TableTreeData

java.lang.Object
org.jppf.admin.web.tabletree.TableTreeData
All Implemented Interfaces:
SelectionListener
Direct Known Subclasses:
HealthTreeData, JobsTreeData, TopologyTreeData

public abstract class TableTreeData extends Object implements SelectionListener
Author:
Laurent Cohen
  • Field Details

    • model

      protected transient org.jppf.ui.treetable.AbstractJPPFTreeTableModel model
      The 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

      public SelectionHandler getSelectionHandler()
      Returns:
      the selection handler.
    • setSelectionHandler

      public void setSelectionHandler(SelectionHandler selectionHandler)
      Parameters:
      selectionHandler - the selection handler.
    • getActionHandler

      public ActionHandler getActionHandler()
      Returns:
      the action handler.
    • setActionHandler

      public void setActionHandler(ActionHandler actionHandler)
      Parameters:
      actionHandler - the action handler.
    • cleanup

      public void cleanup()
      Free resources.
    • selectionChanged

      public void selectionChanged(SelectionHandler source)
      Description copied from interface: SelectionListener
      Called when the selection changes.
      Specified by:
      selectionChanged in interface SelectionListener
      Parameters:
      source - the source of the event.
    • getSelectedTreeNodes

      public List<DefaultMutableTreeNode> getSelectedTreeNodes()
      Get the currently selected nodes.
      Returns:
      the selected tree nodes.
    • getViewType

      public org.jppf.ui.treetable.TreeViewType getViewType()
      Returns:
      the view type.
    • getExpansionModel

      public org.apache.wicket.model.IModel<Set<DefaultMutableTreeNode>> 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 - true if first-tome expansion, false otherwise.
    • createTreeTableModel

      protected abstract void createTreeTableModel()
      Create the tree model.