Class SplitPaneOption

All Implemented Interfaces:
Serializable, OptionContainer, OptionElement, OptionProperties

public class SplitPaneOption extends AbstractOptionContainer
This option class encapsulates a split pane, as the one present in the Swing api.
Author:
Laurent Cohen
See Also:
  • Field Details

    • HORIZONTAL

      public static final int HORIZONTAL
      Horizontal split.
      See Also:
    • VERTICAL

      public static final int VERTICAL
      Vertical split.
      See Also:
    • FILLER1

      protected final Option FILLER1
      Used when nothing is set in the left (top) panel.
    • FILLER2

      protected final Option FILLER2
      Used when nothing is set in the right (bottom) panel.
    • resizeWeight

      protected double resizeWeight
      The split pane's resize weight.
    • dividerWidth

      protected int dividerWidth
      The split pane's divider width.
    • orientation

      protected int orientation
      The orientation of the split, one of VERTICAL or HORIZONTAL.
  • Constructor Details

    • SplitPaneOption

      public SplitPaneOption()
  • Method Details

    • createUI

      public void createUI()
      Description copied from class: AbstractOptionProperties
      Create the UI components for this option.
      Specified by:
      createUI in class AbstractOptionProperties
    • add

      public void add(OptionElement element)
      Description copied from interface: OptionContainer
      Add an element to this options page.
      Specified by:
      add in interface OptionContainer
      Overrides:
      add in class AbstractOptionContainer
      Parameters:
      element - the element to add.
    • remove

      public void remove(OptionElement element)
      Description copied from interface: OptionContainer
      Remove an element from this options page.
      Specified by:
      remove in interface OptionContainer
      Overrides:
      remove in class AbstractOptionContainer
      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 VERTICAL or HORIZONTAL.
    • setOrientation

      public void setOrientation(int orientation)
      Set the orientation of the split.
      Parameters:
      orientation - - one of VERTICAL or HORIZONTAL.