|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.OptionPanel
public class OptionPanel
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 ButtonGroup.
| Field Summary | |
|---|---|
protected ButtonGroup |
buttonGroup
An eventual button group to which any radio button direct child is added. |
protected List<OptionElement> |
children
The list of children of this options page. |
protected JPanel |
panel
The panel used to display 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 | |
|---|---|
OptionPanel()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion. |
|
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 | |
|---|---|
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 |
|---|
protected List<OptionElement> children
protected JPanel panel
protected ButtonGroup buttonGroup
| Constructor Detail |
|---|
public OptionPanel()
public OptionPanel(String name,
String label,
boolean scrollable,
boolean bordered)
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.
public OptionPanel(String name,
String label,
boolean scrollable)
name - this component's name.label - the panel's title.scrollable - determines whether this page should be enclosed within a scroll pane.| Method Detail |
|---|
public void createUI()
createUI in class AbstractOptionPropertiespublic List<OptionElement> getChildren()
getChildren in interface OptionsPageOption instances.OptionsPage.getChildren()public void add(OptionElement element)
add in interface OptionsPageelement - the element to add.OptionsPage.add(org.jppf.ui.options.OptionElement)public void remove(OptionElement element)
remove in interface OptionsPageelement - the element to remove.OptionsPage.remove(org.jppf.ui.options.OptionElement)public void setEnabled(boolean enabled)
setEnabled in interface OptionPropertiesenabled - true to enable this option, false to disable it.OptionProperties.setEnabled(boolean)public void setEventsEnabled(boolean enabled)
setEventsEnabled in interface OptionPropertiessetEventsEnabled in class AbstractOptionPropertiesenabled - true to enable the events, false to disable them.OptionProperties.setEventsEnabled(boolean)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||