All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.OneColumnPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----com.sgi.sysadm.ui.RPanel
                                           |
                                           +----com.sgi.sysadm.ui.OneColumnPanel

public class OneColumnPanel
extends RPanel
A Panel for laying out labels and components in one column. The layout for this panel is identical to the layout one would get by using a LabelComponentPanel and laying out all the components in the vertical direction.

See Also:
LabelComponentPanel

Variable Index

 o COMPONENT_VERTICAL_SPACING
A resource <name>.componentVerticalSpacing is an integer that gives the vertical space (in points) to put between the components.
 o LABEL_VERTICAL_SPACING
A resource <name>.labelVerticalSpacing is an integer that gives the vertical space (in points) to put between labels and their components.

Constructor Index

 o OneColumnPanel(ResourceStack)
A constructor that takes a ResourceStack.
 o OneColumnPanel(ResourceStack, String)
A constructor that takes a ResourceStack and a name.

Method Index

 o addComponent(Component)
Adds a component without a label to the panel.
 o addComponent(Component, Component)
Adds a component and a label to the panel.
 o addComponent(Component, String)
Adds a component and a label to the panel.
 o removeComponent(Component)
Removes a component and any label associated with it.

Variables

 o LABEL_VERTICAL_SPACING
 public static final String LABEL_VERTICAL_SPACING
A resource <name>.labelVerticalSpacing is an integer that gives the vertical space (in points) to put between labels and their components. <name> is the name passed to the constructor. If name is not set, or if <name>.labelVerticalSpacing is not found, OneColumnLayoutManager.labelVerticalSpacing will be used.

 o COMPONENT_VERTICAL_SPACING
 public static final String COMPONENT_VERTICAL_SPACING
A resource <name>.componentVerticalSpacing is an integer that gives the vertical space (in points) to put between the components. <name> is the name passed to the constructor. If name is not set, or if <name>.componentVerticalSpacing is not found, OneColumnLayoutManager.componentVerticalSpacing will be used.

Constructors

 o OneColumnPanel
 public OneColumnPanel(ResourceStack rs)
A constructor that takes a ResourceStack. Since no name is provided, all resource lookups will be prepended with "OneColumnPanel"

Parameters:
rs - The ResourceStack to use for lookups
 o OneColumnPanel
 public OneColumnPanel(ResourceStack rs,
                       String name)
A constructor that takes a ResourceStack and a name. Since a name is provided, all resource lookups will be prepended with the name that is passed in. If that lookup fails, the class will try again, this time prepending "OneColumnPanel".

Parameters:
rs - The ResourceStack to use for lookups
name - The name of this TwoColumnPanel

Methods

 o addComponent
 public void addComponent(Component component)
Adds a component without a label to the panel.

Parameters:
component - The component to add
 o addComponent
 public void addComponent(Component component,
                          String label)
Adds a component and a label to the panel.

Parameters:
component - The component to add
label - The label that describes this component. A JLabel will be created with the label, and that JLabel will be added to the panel as the label for component.
 o addComponent
 public void addComponent(Component component,
                          Component label)
Adds a component and a label to the panel.

Parameters:
component - The component to add
label - The label that describes this component
 o removeComponent
 public void removeComponent(Component component)
Removes a component and any label associated with it.

Parameters:
component - The component to remove

All Packages  Class Hierarchy  This Package  Previous  Next  Index