Class JDPScrollPanel

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

public class JDPScrollPanel
extends Panel
Class JDPScrollPanel represents a class for laying out labels and fields while maintaining aligment of the Fields on the right hand of the panel. Scrollbars also appear if the components on this panel do not fit in the allocated space.


Constructor Index

 o JDPScrollPanel()
Constructs a new Scroll Panel.
 o JDPScrollPanel(boolean)
Constructs a new Scroll Panel.

Method Index

 o getLeftComp(int)
Get the component in the left side of the panel and the requested position.
 o getLineCount()
Get the number of lines on this scroll panel.
 o getRightComp(int)
Get the component in the right side of the panel and the requested position.
 o handleEvent(Event)
 o insets()
 o reDrawPanel()
Redraw this panel from scratch

Constructors

 o JDPScrollPanel
 public JDPScrollPanel()
Constructs a new Scroll Panel.

 o JDPScrollPanel
 public JDPScrollPanel(boolean staticLayout)
Constructs a new Scroll Panel.

Parameters:
staticLayout - set to true to allow a component to be removed and then put back in the same position

Methods

 o insets
 public Insets insets()
Overrides:
insets in class Container
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o reDrawPanel
 public void reDrawPanel()
Redraw this panel from scratch

Parameters:
target - the target panel where this one presently resides
 o getLeftComp
 public Component getLeftComp(int comp)
Get the component in the left side of the panel and the requested position.

Parameters:
the - position of the required component.
Returns:
the handle to the required component.
 o getRightComp
 public Component getRightComp(int comp)
Get the component in the right side of the panel and the requested position.

Parameters:
the - position of the required component.
Returns:
the handle to the required component.
 o getLineCount
 public int getLineCount()
Get the number of lines on this scroll panel.

Returns:
the number of lines on this scroll panel.