Class SplitPanel


public class SplitPanel extends Panel
SplitPanel - divides two Panels vertically or horizontally.
Author:
pquiring
  • Constructor Details

    • SplitPanel

      public SplitPanel(int direction)
      Create SplitPanel with vertical or horizontal divider. The divider will control the size of the left/top component. The other component will flex as needed.
      Parameters:
      direction - = VERTICAL or HORIZONTAL
    • SplitPanel

      public SplitPanel(int direction, int flexSide)
      Create SplitPanel with vertical or horizontal divider. Based on the flexSide param the divider will control the size of the left/top or bottom/right component. The other component will flex as needed.
      Parameters:
      direction - = VERTICAL or HORIZONTAL
      flexSide - = the side that will flex (the divider controls the other component's size) VERTICAL = LEFT or RIGHT (Default = RIGHT) HORIZONTAL = TOP or BOTTOM (Default = BOTTOM)
  • Method Details

    • init

      public void init()
      Description copied from class: Component
      Perform any initialization with the client. Containers should call init() on all sub-components.
      Overrides:
      init in class Panel
    • getDirection

      public int getDirection()
    • setDividerPosition

      public void setDividerPosition(int pos)
    • getDividerPosition

      public int getDividerPosition()
    • getLeftComponent

      public Component getLeftComponent()
    • getTopComponent

      public Component getTopComponent()
    • getRightComponent

      public Component getRightComponent()
    • getBottomComponent

      public Component getBottomComponent()
    • setLeftComponent

      public void setLeftComponent(Component c)
    • setTopComponent

      public void setTopComponent(Component c)
    • setRightComponent

      public void setRightComponent(Component c)
    • setBottomComponent

      public void setBottomComponent(Component c)
    • onEvent

      public void onEvent(String event, String[] args)
      Description copied from class: Component
      Process custom events.
      Overrides:
      onEvent in class Component