Package org.jppf.ui.treetable
Class AbstractTreeTableOption
java.lang.Object
org.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOption
org.jppf.ui.treetable.AbstractTreeTableOption
- All Implemented Interfaces:
Serializable,ActionHolder,Option,OptionElement,OptionProperties
- Direct Known Subclasses:
JobDataPanel,JVMHealthPanel,NodeDataPanel
Abstract implementation of a tree table-based option.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTreeTableActionHandlerHandles all actions in toolbars or popup menus.protected StringBase name for localization bundle lookups.protected AbstractJPPFTreeTableModelThe tree table model associated with the tree table.protected JPPFTreeTableA tree table component displaying the driver and nodes information.protected DefaultMutableTreeNodeThe root of the tree model.Fields inherited from class org.jppf.ui.options.AbstractOption
listeners, persistent, valueFields inherited from class org.jppf.ui.options.AbstractOptionElement
parent, rootFields inherited from class org.jppf.ui.options.AbstractOptionProperties
bordered, componentConstraints, detachable, eventsEnabled, finalizer, horizontalScrollbar, iconPath, initializer, label, layoutConstraints, mouseListener, name, scripts, scrollable, toolTipText, UIComponent, verticalScrollbar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the object that handles all actions in toolbars or popup menus.getModel()get the tree table model associated with the tree table.Get the tree table component displaying the driver and nodes information.Get the root of the tree model.booleanisColumnHidden(int pos) Determine whether the column with the specified position in the tree table model is hidden.protected StringGet a localized message given its unique name and the current locale.voidrestoreColumns(Collection<Integer> positions) Restore the previously hidden columns with the specified positions in the tree table model.voidSet the columns width based on values stored as preferences.voidsetEnabled(boolean enabled) Not implemented.voidsetEventsEnabled(boolean enabled) Not implemented.voidSet the columns width based on values stored as preferences.protected voidNot implemented.Methods inherited from class org.jppf.ui.options.AbstractOption
addValueChangeListener, fireValueChanged, getValue, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, setValue, toStringMethods inherited from class org.jppf.ui.options.AbstractOptionElement
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParentMethods inherited from class org.jppf.ui.options.AbstractOptionProperties
createScrollPane, createUI, getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getMouseListener, getName, getScripts, getToolTipText, getUIComponent, isBordered, isDetachable, isEventsEnabled, isHorizontalScrollbar, isScrollable, isVerticalScrollbar, setBordered, setComponentConstraints, setDetachable, setEditable, setFinalizer, setHorizontalScrollbar, setIconPath, setInitializer, setLabel, setLayoutConstraints, setMouseListener, setName, setScrollable, setToolTipText, setUIComponent, setVerticalScrollbarMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.ui.options.OptionElement
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPathMethods inherited from interface org.jppf.ui.options.OptionProperties
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getMouseListener, getName, getScripts, getToolTipText, getUIComponent, isBordered, isDetachable, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setLayoutConstraints, setMouseListener
-
Field Details
-
BASE
Base name for localization bundle lookups. -
model
The tree table model associated with the tree table. -
treeTableRoot
The root of the tree model. -
treeTable
A tree table component displaying the driver and nodes information. -
actionHandler
Handles all actions in toolbars or popup menus.
-
-
Constructor Details
-
AbstractTreeTableOption
public AbstractTreeTableOption()
-
-
Method Details
-
getActionHandler
Get the object that handles all actions in toolbars or popup menus.- Specified by:
getActionHandlerin interfaceActionHolder- Returns:
- a
JTreeTableActionHandlerinstance.
-
getTreeTable
Get the tree table component displaying the driver and nodes information.- Returns:
- a
JPPFTreeTableinstance.
-
setEnabled
public void setEnabled(boolean enabled) Not implemented.- Specified by:
setEnabledin interfaceOptionProperties- Parameters:
enabled- not used.- See Also:
-
setEventsEnabled
public void setEventsEnabled(boolean enabled) Not implemented.- Specified by:
setEventsEnabledin interfaceOptionProperties- Overrides:
setEventsEnabledin classAbstractOptionProperties- Parameters:
enabled- not used.- See Also:
-
setupValueChangeNotifications
protected void setupValueChangeNotifications()Not implemented.- Specified by:
setupValueChangeNotificationsin classAbstractOption- See Also:
-
localize
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. -
saveTableColumnsSettings
public void saveTableColumnsSettings()Set the columns width based on values stored as preferences. -
getTreeTableRoot
Get the root of the tree model.- Returns:
- a
DefaultMutableTreeNodeinstance.
-
getModel
get the tree table model associated with the tree table.- Returns:
- an
AbstractJPPFTreeTableModelinstance.
-
restoreColumns
Restore the previously hidden columns with the specified positions in the tree table model.- Parameters:
positions- the positions of the columns position in the tree table model (not the table column model).
-
isColumnHidden
public boolean isColumnHidden(int pos) Determine whether the column with the specified position in the tree table model is hidden.- Parameters:
pos- the column position in the tree table model (not the table column model).- Returns:
trueif the column is hidden,falseotherwise.
-
getVisibleColumnIndexes
- Returns:
- the positions of the visible table columns represented by their index in the tree table model.
-