|
|
||||||||||
| 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.SplitPaneOption
public class SplitPaneOption
This option class encapsulates a split pane, as the one present in the Swing api.
| Field Summary | |
|---|---|
protected List<OptionElement> |
children
The list of children of this options page. |
protected int |
dividerWidth
The split pane's divider width. |
protected Option |
FILLER1
Used when nothing is set in the left (top) panel. |
protected Option |
FILLER2
Used when nothing is set in the right (bottom) panel. |
static int |
HORIZONTAL
Horizontal split. |
protected int |
orientation
The orientation of the split, one of VERTICAL or HORIZONTAL. |
protected double |
resizeWeight
The split pane's resize weight. |
static int |
VERTICAL
Vertical split. |
| 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 | |
|---|---|
SplitPaneOption()
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. |
int |
getDividerWidth()
Get the split pane's divider width. |
int |
getOrientation()
Get the orientation of the split. |
double |
getResizeWeight()
Get the split pane's resize weight. |
void |
remove(OptionElement element)
Remove an element from this options page. |
void |
setDividerWidth(int dividerWidth)
Set the split pane's divider width. |
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. |
void |
setOrientation(int orientation)
Set the orientation of the split. |
void |
setResizeWeight(double resizeWeight)
Set the split pane's resize weight. |
| 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 |
|---|
public static final int HORIZONTAL
public static final int VERTICAL
protected final Option FILLER1
protected final Option FILLER2
protected List<OptionElement> children
protected double resizeWeight
protected int dividerWidth
protected int orientation
VERTICAL or HORIZONTAL.
| Constructor Detail |
|---|
public SplitPaneOption()
| Method Detail |
|---|
public void createUI()
createUI in class AbstractOptionPropertiespublic 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)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 List<OptionElement> getChildren()
getChildren in interface OptionsPageOption instances.OptionsPage.getChildren()public int getDividerWidth()
public void setDividerWidth(int dividerWidth)
dividerWidth - the divider width as an int value.public double getResizeWeight()
public void setResizeWeight(double resizeWeight)
resizeWeight - the resize weight as a double value.public int getOrientation()
VERTICAL or HORIZONTAL.public void setOrientation(int orientation)
orientation - - one of VERTICAL or HORIZONTAL.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||