Package org.jppf.ui.options
Class SplitPaneOption
java.lang.Object
org.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOptionContainer
org.jppf.ui.options.SplitPaneOption
- All Implemented Interfaces:
Serializable,OptionContainer,OptionElement,OptionProperties
This option class encapsulates a split pane, as the one present in the Swing api.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe split pane's divider width.protected final OptionUsed when nothing is set in the left (top) panel.protected final OptionUsed when nothing is set in the right (bottom) panel.static final intHorizontal split.protected intThe orientation of the split, one ofVERTICALorHORIZONTAL.protected doubleThe split pane's resize weight.static final intVertical split.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OptionElement element) Add an element to this options page.voidcreateUI()Create the UI components for this option.intGet the split pane's divider width.intGet the orientation of the split.doubleGet the split pane's resize weight.voidremove(OptionElement element) Remove an element from this options page.voidsetDividerWidth(int dividerWidth) Set the split pane's divider width.voidsetOrientation(int orientation) Set the orientation of the split.voidsetResizeWeight(double resizeWeight) Set the split pane's resize weight.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
-
HORIZONTAL
public static final int HORIZONTALHorizontal split.- See Also:
-
VERTICAL
public static final int VERTICALVertical split.- See Also:
-
FILLER1
Used when nothing is set in the left (top) panel. -
FILLER2
Used when nothing is set in the right (bottom) panel. -
resizeWeight
protected double resizeWeightThe split pane's resize weight. -
dividerWidth
protected int dividerWidthThe split pane's divider width. -
orientation
protected int orientationThe orientation of the split, one ofVERTICALorHORIZONTAL.
-
-
Constructor Details
-
SplitPaneOption
public SplitPaneOption()
-
-
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.
-
getDividerWidth
public int getDividerWidth()Get the split pane's divider width.- Returns:
- the divider width as an int value.
-
setDividerWidth
public void setDividerWidth(int dividerWidth) Set the split pane's divider width.- Parameters:
dividerWidth- the divider width as an int value.
-
getResizeWeight
public double getResizeWeight()Get the split pane's resize weight.- Returns:
- the resize weight as a double value.
-
setResizeWeight
public void setResizeWeight(double resizeWeight) Set the split pane's resize weight.- Parameters:
resizeWeight- the resize weight as a double value.
-
getOrientation
public int getOrientation()Get the orientation of the split.- Returns:
- one of
VERTICALorHORIZONTAL.
-
setOrientation
public void setOrientation(int orientation) Set the orientation of the split.- Parameters:
orientation- - one ofVERTICALorHORIZONTAL.
-