org.jppf.ui.treetable
Class AbstractTreeTableOption

java.lang.Object
  extended by org.jppf.ui.options.AbstractOptionProperties
      extended by org.jppf.ui.options.AbstractOptionElement
          extended by org.jppf.ui.options.AbstractOption
              extended by org.jppf.ui.treetable.AbstractTreeTableOption
All Implemented Interfaces:
Serializable, Option, OptionElement, OptionProperties
Direct Known Subclasses:
JobDataPanel, NodeDataPanel

public abstract class AbstractTreeTableOption
extends AbstractOption

Abstract implementation of a tree table-based option.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
protected  JTreeTableActionHandler actionHandler
          Handles all actions in toolbars or popup menus.
protected  String BASE
          Base name for localization bundle lookups.
protected  AbstractJPPFTreeTableModel model
          The tree table model associated with the tree table.
protected  JPPFTreeTable treeTable
          A tree table component displaying the driver and nodes information.
protected  DefaultMutableTreeNode treeTableRoot
          The root of the tree model.
 
Fields inherited from class org.jppf.ui.options.AbstractOption
listeners, persistent, value
 
Fields inherited from class org.jppf.ui.options.AbstractOptionElement
parent, root
 
Fields inherited from class org.jppf.ui.options.AbstractOptionProperties
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent
 
Constructor Summary
AbstractTreeTableOption()
           
 
Method Summary
 JTreeTableActionHandler getActionHandler()
          Get the object that handles all actions in toolbars or popup menus.
 AbstractJPPFTreeTableModel getModel()
          get the tree table model associated with the tree table.
 JPPFTreeTable getTreeTable()
          Get the tree table component displaying the driver and nodes information.
 DefaultMutableTreeNode getTreeTableRoot()
          Get the root of the tree model.
protected  String localize(String message)
          Get a localized message given its unique name and the current locale.
 void saveTableColumnsWidth()
          Set the columns width based on values stored as preferences.
 void setEnabled(boolean enabled)
          Not implemented.
 void setEventsEnabled(boolean enabled)
          Not implemented.
 void setupTableColumns()
          Set the columns width based on values stored as preferences.
protected  void setupValueChangeNotifications()
          Not implemented.
 
Methods inherited from class org.jppf.ui.options.AbstractOption
addValueChangeListener, fireValueChanged, getValue, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, setValue
 
Methods inherited from class org.jppf.ui.options.AbstractOptionElement
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParent, toString
 
Methods inherited from class org.jppf.ui.options.AbstractOptionProperties
createUI, getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setBordered, setComponentConstraints, setEditable, setFinalizer, setIconPath, setInitializer, setLabel, setLayoutConstraints, setName, setScrollable, setToolTipText, setUIComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jppf.ui.options.OptionElement
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPath
 
Methods inherited from interface org.jppf.ui.options.OptionProperties
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setLayoutConstraints
 

Field Detail

BASE

protected String BASE
Base name for localization bundle lookups.


model

protected transient AbstractJPPFTreeTableModel model
The tree table model associated with the tree table.


treeTableRoot

protected DefaultMutableTreeNode treeTableRoot
The root of the tree model.


treeTable

protected JPPFTreeTable treeTable
A tree table component displaying the driver and nodes information.


actionHandler

protected JTreeTableActionHandler actionHandler
Handles all actions in toolbars or popup menus.

Constructor Detail

AbstractTreeTableOption

public AbstractTreeTableOption()
Method Detail

getActionHandler

public JTreeTableActionHandler getActionHandler()
Get the object that handles all actions in toolbars or popup menus.

Returns:
a JTreeTableActionHandler instance.

getTreeTable

public JPPFTreeTable getTreeTable()
Get the tree table component displaying the driver and nodes information.

Returns:
a JPPFTreeTable instance.

setEnabled

public void setEnabled(boolean enabled)
Not implemented.

Parameters:
enabled - not used.
See Also:
OptionProperties.setEnabled(boolean)

setEventsEnabled

public void setEventsEnabled(boolean enabled)
Not implemented.

Specified by:
setEventsEnabled in interface OptionProperties
Overrides:
setEventsEnabled in class AbstractOptionProperties
Parameters:
enabled - not used.
See Also:
OptionProperties.setEventsEnabled(boolean)

setupValueChangeNotifications

protected void setupValueChangeNotifications()
Not implemented.

Specified by:
setupValueChangeNotifications in class AbstractOption
See Also:
AbstractOption.setupValueChangeNotifications()

localize

protected String localize(String message)
Get a localized message given its unique name and the current locale.

Parameters:
message - - the unique name of the localized message.
Returns:
a message in the current locale, or the default locale if the localization for the current locale is not found.

setupTableColumns

public void setupTableColumns()
Set the columns width based on values stored as preferences.


saveTableColumnsWidth

public void saveTableColumnsWidth()
Set the columns width based on values stored as preferences.


getTreeTableRoot

public DefaultMutableTreeNode getTreeTableRoot()
Get the root of the tree model.

Returns:
a DefaultMutableTreeNode instance.

getModel

public AbstractJPPFTreeTableModel getModel()
get the tree table model associated with the tree table.

Returns:
an AbstractJPPFTreeTableModel instance.


Copyright © 2005-2010 JPPF Team.