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.
-
EXTRA_VERTICAL_SPACE
- The extra-vertical-space layout constraint.
-
ICON
- The icon layout constraint.
-
ICON_SPACING
- The property LinkPageLayout.iconSpacing is the amount of
space, in points, that is placed in between an icon and its
link.
-
INDENT
- The indent layout constraint.
-
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.
-
LINK
- The link layout constraint.
-
MINIMUM_HEIGHT
- The property LinkPageLayout.minimumHeight is the minimum
height, in points, of the container being laid out.
-
MINIMUM_WIDTH
- The property LinkPageLayout.minimumWidth is the minimum
width, in points, of the container being laid out.
-
OUTDENT
- The outdent layout constraint.
-
SEPARATOR
- The separator layout constraint.
-
TEXT
- The text layout constraint.
-
TITLE
- The title layout constraint.
-
VERTICAL_SPACING
- The property LinkPageLayout.verticalSpacing controls the
amount of space, in points, that is added between each
component.
-
LinkPageLayout(Container, ResourceStack)
- Constructor.
-
addLayoutComponent(Component, Object)
-
-
addLayoutComponent(String, Component)
-
-
getLayoutAlignmentX(Container)
-
-
getLayoutAlignmentY(Container)
-
-
invalidateLayout(Container)
-
-
layoutContainer(Container)
-
-
maximumLayoutSize(Container)
-
-
minimumLayoutSize(Container)
-
-
preferredLayoutSize(Container)
-
-
removeLayoutComponent(Component)
- This method has an empty implementation.
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.
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.
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.
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.
SEPARATOR
public static final String SEPARATOR
- The separator layout constraint. Indicates that the component
should stretch the width of the container.
INDENT
public static final String INDENT
- The indent layout constraint. Increases the indent level by
INDENT_SPACING for all subsequent components added.
OUTDENT
public static final String OUTDENT
- The outdent layout constraint. Reduces the indent spacing by
INDENT_SPACING for all subsequent components added.
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.
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.
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.
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.
MINIMUM_WIDTH
public static final String MINIMUM_WIDTH
- The property LinkPageLayout.minimumWidth is the minimum
width, in points, of the container being laid out.
MINIMUM_HEIGHT
public static final String MINIMUM_HEIGHT
- The property LinkPageLayout.minimumHeight is the minimum
height, in points, of the container being laid out.
LinkPageLayout
public LinkPageLayout(Container parent,
ResourceStack rs)
- Constructor.
- Parameters:
- parent - The container being laid out.
- ResourceStack - The ResourceStack that contains the
LinkPageLayout properties.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- See Also:
- addLayoutComponent
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
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- See Also:
- preferredLayoutSize
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- See Also:
- minimumLayoutSize
layoutContainer
public void layoutContainer(Container parent)
- See Also:
- layoutContainer
addLayoutComponent
public void addLayoutComponent(Component comp,
Object constraints)
- See Also:
- addLayoutComponent
maximumLayoutSize
public Dimension maximumLayoutSize(Container parent)
- See Also:
- maximumLayoutSize
getLayoutAlignmentX
public float getLayoutAlignmentX(Container parent)
- Returns:
- java.awt.Component.CENTER_ALIGNMENT
- See Also:
- getLayoutAlignmentX
getLayoutAlignmentY
public float getLayoutAlignmentY(Container parent)
- Returns:
- java.awt.Component.CENTER_ALIGNMENT
- See Also:
- getLayoutAlignmentY
invalidateLayout
public void invalidateLayout(Container parent)
- See Also:
- invalidateLayout
All Packages Class Hierarchy This Package Previous Next Index