Package org.jppf.ui.options
Class AbstractOptionContainer
java.lang.Object
org.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOptionContainer
- All Implemented Interfaces:
Serializable,OptionContainer,OptionElement,OptionProperties
- Direct Known Subclasses:
OptionPanel,SplitPaneOption,TabbedPaneOption,ToolbarOption
public abstract class AbstractOptionContainer
extends AbstractOptionElement
implements OptionContainer
Container for other UI elements.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<OptionElement>The list of children of this options page.Fields 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
ConstructorsConstructorDescriptionConstructor provided as a convenience to facilitate the creation of option elements through reflexion. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OptionElement element) Add an element to this options page.voidadd(OptionElement element, int index) Get the options in this page.voidremove(OptionElement element) Remove an element from this options page.voidsetEnabled(boolean enabled) Enable or disable this option.voidsetEventsEnabled(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, toStringMethods 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
-
children
The list of children of this options page.
-
-
Constructor Details
-
AbstractOptionContainer
public AbstractOptionContainer()Constructor provided as a convenience to facilitate the creation of option elements through reflexion.
-
-
Method Details
-
getChildren
Description copied from interface:OptionContainerGet the options in this page.- Specified by:
getChildrenin interfaceOptionContainer- Returns:
- a list of
Optioninstances.
-
add
Description copied from interface:OptionContainerAdd an element to this options page.- Specified by:
addin interfaceOptionContainer- Parameters:
element- the element to add.
-
add
- Parameters:
element- the element to add.index- the index at which to add the element.
-
remove
Description copied from interface:OptionContainerRemove an element from this options page.- Specified by:
removein interfaceOptionContainer- Parameters:
element- the element to remove.
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:OptionPropertiesEnable or disable this option.- Specified by:
setEnabledin interfaceOptionProperties- Parameters:
enabled- true to enable this option, false to disable it.
-
setEventsEnabled
public void setEventsEnabled(boolean enabled) Description copied from class:AbstractOptionPropertiesEnable or disable the events firing in this option and/or its children.- Specified by:
setEventsEnabledin interfaceOptionProperties- Overrides:
setEventsEnabledin classAbstractOptionProperties- Parameters:
enabled- true to enable the events, false to disable them.
-