Class JDPSplitPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPSplitPanel

public class JDPSplitPanel
extends Panel
Class JDPSplitPanel represents a class for laying out components 1, 2 or for panels with a control to adjust the relative size left-right, up-down.


Variable Index

 o PANEL_RESIZED
Row resized event.

Constructor Index

 o JDPSplitPanel(JDPUser)
Constructs a new Scroll Panel.
 o JDPSplitPanel(JDPUser, int, int)
Constructs a new Scroll Panel with the specified horizontal and vertical gaps between panels.

Method Index

 o getBottomLeftComp()
Get the component in the bottom left of the panel.
 o getBottomRightComp()
Get the component in the bottom right of the panel.
 o getLeftPercentage()
Get the percentage that the left side of the panel occupies.
 o getTopLeftComp()
Get the component in the top left of the panel.
 o getTopPercentage()
Get the percentage that the top half of the panel occupies.
 o getTopRightComp()
Get the component in the top right of the panel.
 o handleEvent(Event)
 o insets()
 o setLeftPercentage(float)
Set the percentage that the left side of the panel occupies.
 o setTopPercentage(float)
Set the percentage that the top half of the panel occupies.

Variables

 o PANEL_RESIZED
 public static final int PANEL_RESIZED
Row resized event.

Constructors

 o JDPSplitPanel
 public JDPSplitPanel(JDPUser user)
Constructs a new Scroll Panel.

 o JDPSplitPanel
 public JDPSplitPanel(JDPUser user,
                      int hgap,
                      int vgap)
Constructs a new Scroll Panel with the specified horizontal and vertical gaps between panels.

Parameters:
hgap - the number of horizontal pixels between panels.
vgap - the number of vertical pixels between panels.

Methods

 o setLeftPercentage
 public void setLeftPercentage(float percent)
Set the percentage that the left side of the panel occupies.

Parameters:
percent - the percentage that the left side of the panel occupies.
 o setTopPercentage
 public void setTopPercentage(float percent)
Set the percentage that the top half of the panel occupies.

Parameters:
percent - the percentage that the top half of the panel occupies.
 o getLeftPercentage
 public float getLeftPercentage()
Get the percentage that the left side of the panel occupies.

Returns:
percent the percentage that the left side of the panel occupies.
 o getTopPercentage
 public float getTopPercentage()
Get the percentage that the top half of the panel occupies.

Returns:
percent the percentage that the top half of the panel occupies.
 o insets
 public Insets insets()
Overrides:
insets in class Container
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o getTopLeftComp
 public Component getTopLeftComp()
Get the component in the top left of the panel.

Returns:
the handle to the required component.
 o getTopRightComp
 public Component getTopRightComp()
Get the component in the top right of the panel.

Returns:
the handle to the required component.
 o getBottomLeftComp
 public Component getBottomLeftComp()
Get the component in the bottom left of the panel.

Returns:
the handle to the required component.
 o getBottomRightComp
 public Component getBottomRightComp()
Get the component in the bottom right of the panel.

Returns:
the handle to the required component.