[all packages] [package ] [class hierarchy] [index]

public class ScrollableLayout

(source file: ScrollableLayout.java)
java.lang.Object
   |
   +----ScrollableLayout

The pure class interface.
public class ScrollableLayout
  implements LayoutManager
A simple layout manager for adding scrollbars to a component. This has since been superceded by AWT 1.1, but is still necessary in order to run on AWT 1.0 browsers (eg Netscape 4).

Author:
Alan Jeffrey
Version: v1.0 1998/06/02

Constuctor Index

O ScrollableLayout()

Methods

O addLayoutComponent(String, Component)
Components can be added to the centre, south or east.
O layoutContainer(Container)
Lay out the contents.
O minimumLayoutSize(Container)
Find the preferred layout size.
O preferredLayoutSize(Container)
Find the preferred layout size.
O removeLayoutComponent(Component)
A dummy method (removing components isn't implemented).

Constructors

O ScrollableLayout
public ScrollableLayout();

Methods

O addLayoutComponent
public void addLayoutComponent(String name,
                               Component comp);
Components can be added to the centre, south or east.

Parameters:
name - the location
comp - the component to add.

O removeLayoutComponent

public void removeLayoutComponent(Component comp);
A dummy method (removing components isn't implemented).

O preferredLayoutSize

public Dimension preferredLayoutSize(Container parent);
Find the preferred layout size.

Parameters:
parent - the container.
Returns:
the preferred size.

O minimumLayoutSize

public Dimension minimumLayoutSize(Container parent);
Find the preferred layout size.

Parameters:
parent - the container.
Returns:
the preferred size.

O layoutContainer

public void layoutContainer(Container parent);
Lay out the contents.

Parameters:
parent - the container.
Returns:
the preferred size.


[all packages] [package ] [class hierarchy] [index]
ScrollableLayout.html