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.
-
PANEL_RESIZED
- Row resized event.
-
JDPSplitPanel(JDPUser)
- Constructs a new Scroll Panel.
-
JDPSplitPanel(JDPUser, int, int)
- Constructs a new Scroll Panel with the specified horizontal and vertical
gaps between panels.
-
getBottomLeftComp()
- Get the component in the bottom left of the panel.
-
getBottomRightComp()
- Get the component in the bottom right of the panel.
-
getLeftPercentage()
- Get the percentage that the left side of the panel occupies.
-
getTopLeftComp()
- Get the component in the top left of the panel.
-
getTopPercentage()
- Get the percentage that the top half of the panel occupies.
-
getTopRightComp()
- Get the component in the top right of the panel.
-
handleEvent(Event)
-
-
insets()
-
-
setLeftPercentage(float)
- Set the percentage that the left side of the panel occupies.
-
setTopPercentage(float)
- Set the percentage that the top half of the panel occupies.
PANEL_RESIZED
public static final int PANEL_RESIZED
- Row resized event.
JDPSplitPanel
public JDPSplitPanel(JDPUser user)
- Constructs a new Scroll Panel.
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.
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.
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.
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.
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.
insets
public Insets insets()
- Overrides:
- insets in class Container
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
getTopLeftComp
public Component getTopLeftComp()
- Get the component in the top left of the panel.
- Returns:
- the handle to the required component.
getTopRightComp
public Component getTopRightComp()
- Get the component in the top right of the panel.
- Returns:
- the handle to the required component.
getBottomLeftComp
public Component getBottomLeftComp()
- Get the component in the bottom left of the panel.
- Returns:
- the handle to the required component.
getBottomRightComp
public Component getBottomRightComp()
- Get the component in the bottom right of the panel.
- Returns:
- the handle to the required component.