| public class javax.swing GroupLayout.SequentialGroup
|
Java SE 6 |
Group that positions and sizes its elements
sequentially, one after another. This class has no public
constructor, use the createSequentialGroup method
to create one.
In order to align a SequentialGroup along the baseline
of a baseline aligned ParallelGroup you need to specify
which of the elements of the SequentialGroup is used to
determine the baseline. The element used to calculate the
baseline is specified using one of the add methods that
take a boolean. The last element added with a value of
true for useAsBaseline is used to calculate the
baseline.
| since | 1.6 |
| See also | createSequentialGroup |
| Methods | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public GroupLayout.SequentialGroup | addComponent(Component component) Adds a Component to this Group.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addComponent(boolean useAsBaseline, Component component) Adds a Component to this Group.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addComponent(Component component, int min, int pref, int max) Adds a Component to this Group
with the specified size.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addComponent(boolean useAsBaseline, Component component, int min, int pref, int max) Adds a Component to this Group
with the specified size.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addContainerGap() Adds an element representing the preferred gap between an edge the container and components that touch the border of the container. This has no effect if the added gap does not touch an edge of the parent container. The element created to represent the gap is not resizable.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addContainerGap(int pref, int max) Adds an element representing the preferred gap between one edge of the container and the next or previous Component with the specified size. This has no
effect if the next or previous element is not a Component and does not touch one edge of the parent
container.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addGap(int size) Adds a rigid gap to this Group.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addGap(int min, int pref, int max) Adds a gap to this Group with the specified size.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addGroup(GroupLayout.Group group) Adds a Group to this Group.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addGroup(boolean useAsBaseline, GroupLayout.Group group) Adds a Group to this Group.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type) Adds an element representing the preferred gap between two components. The element created to represent the gap is not resizable.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type, int pref, int max) Adds an element representing the preferred gap between two components.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addPreferredGap(LayoutStyle.ComponentPlacement type) Adds an element representing the preferred gap between the nearest components. During layout, neighboring components are found, and the size of the added gap is set based on the preferred gap between the components. If no neighboring components are found the gap has a size of 0.
The element created to represent the gap is not resizable.
| ||||||||||||||||
| public GroupLayout.SequentialGroup | addPreferredGap(LayoutStyle.ComponentPlacement type, int pref, int max) Adds an element representing the preferred gap between the nearest components. During layout, neighboring components are found, and the minimum of this gap is set based on the size of the preferred gap between the neighboring components. If no neighboring components are found the minimum size is set to 0.
| ||||||||||||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|