Package org.jppf.ui.options
Class OptionPanel
java.lang.Object
org.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOptionContainer
org.jppf.ui.options.OptionPanel
- All Implemented Interfaces:
Serializable,OptionContainer,OptionElement,OptionProperties
Instances of this page represent dynamic UI components representing a page (or panel) container,
with the underlying Swing component being a JPanel.
It also implements a specific behavior for radio buttons: any radio button that is a direct child is also added to a
It also implements a specific behavior for radio buttons: any radio button that is a direct child is also added to a
ButtonGroup.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ButtonGroupAn eventual button group to which any radio button direct child is added.protected JPanelThe panel used to display this options page.Fields inherited from class org.jppf.ui.options.AbstractOptionContainer
childrenFields 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
ConstructorsConstructorDescriptionDefault constructor.OptionPanel(String name, String label, boolean scrollable) Initialize this option page with the specified parameters, setting up a page without border.OptionPanel(String name, String label, boolean scrollable, boolean bordered) Initialize this option page with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OptionElement element) Add an element to this options page.voidcreateUI()Create the UI components for this option.voidremove(OptionElement element) Remove an element from this options page.Methods inherited from class org.jppf.ui.options.AbstractOptionContainer
add, getChildren, setEnabled, setEventsEnabledMethods 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, 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
-
panel
The panel used to display this options page. -
buttonGroup
An eventual button group to which any radio button direct child is added.
-
-
Constructor Details
-
OptionPanel
public OptionPanel()Default constructor. -
OptionPanel
Initialize this option page with the specified parameters.- Parameters:
name- this component's name.label- the panel's title.scrollable- determines whether this page should be enclosed within a scroll pane.bordered- determines whether this page has a border around it.
-
OptionPanel
Initialize this option page with the specified parameters, setting up a page without border. This constructor is used for building outermost pages.- Parameters:
name- this component's name.label- the panel's title.scrollable- determines whether this page should be enclosed within a scroll pane.
-
-
Method Details
-
createUI
public void createUI()Description copied from class:AbstractOptionPropertiesCreate the UI components for this option.- Specified by:
createUIin classAbstractOptionProperties
-
add
Description copied from interface:OptionContainerAdd an element to this options page.- Specified by:
addin interfaceOptionContainer- Overrides:
addin classAbstractOptionContainer- Parameters:
element- the element to add.
-
remove
Description copied from interface:OptionContainerRemove an element from this options page.- Specified by:
removein interfaceOptionContainer- Overrides:
removein classAbstractOptionContainer- Parameters:
element- the element to remove.
-