All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.LinkPageLayout

java.lang.Object
   |
   +----com.sgi.sysadm.ui.LinkPageLayout

public class LinkPageLayout
extends Object
implements LayoutManager2
LinkPageLayout is a layout manager intended for conainers that want to display a hierarchical list of objects, including links that have an associated icon, text, separators, and a container title. Objects are added using one of the pre-defined constraints.


Variable Index

 o EXTRA_VERTICAL_SPACE
The extra-vertical-space layout constraint.
 o ICON
The icon layout constraint.
 o ICON_SPACING
The property LinkPageLayout.iconSpacing is the amount of space, in points, that is placed in between an icon and its link.
 o INDENT
The indent layout constraint.
 o INDENT_SPACING
The property LinkPageLayout.indentSpacing is the amount of space, in points, that the components are indented each time the INDENT layout constraint is used.
 o LINK
The link layout constraint.
 o MINIMUM_HEIGHT
The property LinkPageLayout.minimumHeight is the minimum height, in points, of the container being laid out.
 o MINIMUM_WIDTH
The property LinkPageLayout.minimumWidth is the minimum width, in points, of the container being laid out.
 o OUTDENT
The outdent layout constraint.
 o SEPARATOR
The separator layout constraint.
 o TEXT
The text layout constraint.
 o TITLE
The title layout constraint.
 o VERTICAL_SPACING
The property LinkPageLayout.verticalSpacing controls the amount of space, in points, that is added between each component.

Constructor Index

 o LinkPageLayout(Container, ResourceStack)
Constructor.

Method Index

 o addLayoutComponent(Component, Object)
 o addLayoutComponent(String, Component)
 o getLayoutAlignmentX(Container)
 o getLayoutAlignmentY(Container)
 o invalidateLayout(Container)
 o layoutContainer(Container)
 o maximumLayoutSize(Container)
 o minimumLayoutSize(Container)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)
This method has an empty implementation.

Variables

 o TITLE
 public static final String TITLE
The title layout constraint. Indicates that the component should be centered at the top of the container. The container may have only one title. If multiple TITLE components are added, the last one added will be displayed at the top of the container.

 o TEXT
 public static final String TEXT
The text layout constraint. Indicates that the component should be placed at the current indent level and stretch to the full width of the container.

 o ICON
 public static final String ICON
The icon layout constraint. Indicates that the next add will be of a link that will be displayed to the right of this icon.

 o LINK
 public static final String LINK
The link layout constraint. Indicates that an icon was just added and this link should be displayed to the right of that icon.

 o SEPARATOR
 public static final String SEPARATOR
The separator layout constraint. Indicates that the component should stretch the width of the container.

 o INDENT
 public static final String INDENT
The indent layout constraint. Increases the indent level by INDENT_SPACING for all subsequent components added.

 o OUTDENT
 public static final String OUTDENT
The outdent layout constraint. Reduces the indent spacing by INDENT_SPACING for all subsequent components added.

 o EXTRA_VERTICAL_SPACE
 public static final String EXTRA_VERTICAL_SPACE
The extra-vertical-space layout constraint. While all components have a small amount of space in between them (see VERTICAL_SPACING) the layout client may wish to insert additional space before or after a component. The extra-vertical-space constraint adds blank vertical space that is the height of the added component. For example:
 Component extraSpace = new JComponent();
 extraSpace.setSize(width, height);
 linkPage.add(extraSpace, LinkPageLayout.EXTRA_VERTICAL_SPACE);
 
If the client wishes to add the same amount of extra vertical space in multiple locations in the container, the same component can be added multiple times. However, any change in size of the component will appear in all of the places the component was added.

 o VERTICAL_SPACING
 public static final String VERTICAL_SPACING
The property LinkPageLayout.verticalSpacing controls the amount of space, in points, that is added between each component.

 o ICON_SPACING
 public static final String ICON_SPACING
The property LinkPageLayout.iconSpacing is the amount of space, in points, that is placed in between an icon and its link.

 o INDENT_SPACING
 public static final String INDENT_SPACING
The property LinkPageLayout.indentSpacing is the amount of space, in points, that the components are indented each time the INDENT layout constraint is used.

 o MINIMUM_WIDTH
 public static final String MINIMUM_WIDTH
The property LinkPageLayout.minimumWidth is the minimum width, in points, of the container being laid out.

 o MINIMUM_HEIGHT
 public static final String MINIMUM_HEIGHT
The property LinkPageLayout.minimumHeight is the minimum height, in points, of the container being laid out.

Constructors

 o LinkPageLayout
 public LinkPageLayout(Container parent,
                       ResourceStack rs)
Constructor.

Parameters:
parent - The container being laid out.
ResourceStack - The ResourceStack that contains the LinkPageLayout properties.

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
See Also:
addLayoutComponent
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
This method has an empty implementation. LinkPageLayout does not support removal of components at this time.

See Also:
removeLayoutComponent
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
See Also:
preferredLayoutSize
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
See Also:
minimumLayoutSize
 o layoutContainer
 public void layoutContainer(Container parent)
See Also:
layoutContainer
 o addLayoutComponent
 public void addLayoutComponent(Component comp,
                                Object constraints)
See Also:
addLayoutComponent
 o maximumLayoutSize
 public Dimension maximumLayoutSize(Container parent)
See Also:
maximumLayoutSize
 o getLayoutAlignmentX
 public float getLayoutAlignmentX(Container parent)
Returns:
java.awt.Component.CENTER_ALIGNMENT
See Also:
getLayoutAlignmentX
 o getLayoutAlignmentY
 public float getLayoutAlignmentY(Container parent)
Returns:
java.awt.Component.CENTER_ALIGNMENT
See Also:
getLayoutAlignmentY
 o invalidateLayout
 public void invalidateLayout(Container parent)
See Also:
invalidateLayout

All Packages  Class Hierarchy  This Package  Previous  Next  Index