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
-
COMPONENT_VERTICAL_SPACING
- A resource <name>.componentVerticalSpacing is an
integer that gives the vertical space (in points) to put
between the components.
-
LABEL_VERTICAL_SPACING
- A resource <name>.labelVerticalSpacing is an
integer that gives the vertical space (in points) to put
between labels and their components.
-
OneColumnPanel(ResourceStack)
- A constructor that takes a ResourceStack.
-
OneColumnPanel(ResourceStack, String)
- A constructor that takes a ResourceStack and a name.
-
addComponent(Component)
- Adds a component without a label to the panel.
-
addComponent(Component, Component)
- Adds a component and a label to the panel.
-
addComponent(Component, String)
- Adds a component and a label to the panel.
-
removeComponent(Component)
- Removes a component and any label associated with it.
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.
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.
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
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
addComponent
public void addComponent(Component component)
- Adds a component without a label to the panel.
- Parameters:
- component - The component to add
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.
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
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