org.jppf.ui.options
Class ToolbarOption

java.lang.Object
  extended by org.jppf.ui.options.AbstractOptionProperties
      extended by org.jppf.ui.options.AbstractOptionElement
          extended by org.jppf.ui.options.ToolbarOption
All Implemented Interfaces:
Serializable, OptionElement, OptionProperties, OptionsPage

public class ToolbarOption
extends AbstractOptionElement
implements OptionsPage

This option class encapsulates a JToolBar.

Author:
Laurent Cohen
See Also:
Serialized Form

Field Summary
protected  List<OptionElement> children
          The list of children of this options page.
 
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
ToolbarOption()
          Initialize the split pane with 2 fillers as left (or top) and right (or bottom) components.
 
Method Summary
 void add(OptionElement element)
          Add an element to this options page.
 void createUI()
          Initialize the panel used to display this options page.
 List<OptionElement> getChildren()
          Get the options in this page.
 void remove(OptionElement element)
          Remove an element from this options page.
 void setEnabled(boolean enabled)
          Enable or disable this option.
 void setEventsEnabled(boolean enabled)
          Enable or disable the events firing in this option and/or its children.
 
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
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

children

protected List<OptionElement> children
The list of children of this options page.

Constructor Detail

ToolbarOption

public ToolbarOption()
Initialize the split pane with 2 fillers as left (or top) and right (or bottom) components.

Method Detail

createUI

public void createUI()
Initialize the panel used to display this options page.

Specified by:
createUI in class AbstractOptionProperties

setEnabled

public void setEnabled(boolean enabled)
Enable or disable this option.

Specified by:
setEnabled in interface OptionProperties
Parameters:
enabled - true to enable this option, false to disable it.
See Also:
OptionProperties.setEnabled(boolean)

setEventsEnabled

public void setEventsEnabled(boolean enabled)
Enable or disable the events firing in this option and/or its children.

Specified by:
setEventsEnabled in interface OptionProperties
Overrides:
setEventsEnabled in class AbstractOptionProperties
Parameters:
enabled - true to enable the events, false to disable them.
See Also:
OptionProperties.setEventsEnabled(boolean)

add

public void add(OptionElement element)
Add an element to this options page. The element can be either an option, or another page.

Specified by:
add in interface OptionsPage
Parameters:
element - the element to add.
See Also:
OptionsPage.add(org.jppf.ui.options.OptionElement)

remove

public void remove(OptionElement element)
Remove an element from this options page.

Specified by:
remove in interface OptionsPage
Parameters:
element - the element to remove.
See Also:
OptionsPage.remove(org.jppf.ui.options.OptionElement)

getChildren

public List<OptionElement> getChildren()
Get the options in this page.

Specified by:
getChildren in interface OptionsPage
Returns:
a list of Option instances.
See Also:
OptionsPage.getChildren()


Copyright © 2005-2010 JPPF Team.