|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.layouts.GroupLayout.Group com.sun.lwuit.layouts.GroupLayout.SequentialGroup
public class GroupLayout.SequentialGroup
A Group
that lays out its elements sequentially, one
after another. This class has no public constructor, use the
createSequentialGroup
method to create one.
GroupLayout.createSequentialGroup()
Method Summary | |
---|---|
GroupLayout.SequentialGroup |
add(boolean useAsBaseline,
Component component)
Adds a Component to this Group . |
GroupLayout.SequentialGroup |
add(boolean useAsBaseline,
Component component,
int min,
int pref,
int max)
Adds a Component to this Group
with the specified size. |
GroupLayout.SequentialGroup |
add(boolean useAsBaseline,
GroupLayout.Group group)
Adds a Group to this Group . |
GroupLayout.SequentialGroup |
add(Component component)
Adds the specified Component. |
GroupLayout.SequentialGroup |
add(Component component,
int min,
int pref,
int max)
Adds the specified Component . |
GroupLayout.SequentialGroup |
add(GroupLayout.Group group)
Adds the specified Group to this
SequentialGroup |
GroupLayout.SequentialGroup |
add(int pref)
Adds a rigid gap. |
GroupLayout.SequentialGroup |
add(int min,
int pref,
int max)
Adds a gap with the specified size. |
GroupLayout.SequentialGroup |
addContainerGap()
Adds an element representing the preferred gap between one edge of the container and the next/previous Component. |
GroupLayout.SequentialGroup |
addContainerGap(int pref,
int max)
Adds an element representing the preferred gap between one edge of the container and the next/previous Component. |
GroupLayout.SequentialGroup |
addPreferredGap(Component comp1,
Component comp2,
int type)
Adds an element representing the preferred gap between the two components. |
GroupLayout.SequentialGroup |
addPreferredGap(Component comp1,
Component comp2,
int type,
boolean canGrow)
Adds an element representing the preferred gap between the two components. |
GroupLayout.SequentialGroup |
addPreferredGap(int type)
Adds an element representing the preferred gap between the nearest components. |
GroupLayout.SequentialGroup |
addPreferredGap(int type,
int pref,
int max)
Adds an element for the preferred gap between the nearest components. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public GroupLayout.SequentialGroup add(GroupLayout.Group group)
Group
to this
SequentialGroup
group
- the Group to add
public GroupLayout.SequentialGroup add(boolean useAsBaseline, GroupLayout.Group group)
Group
to this Group
.
group
- the Group
to adduseAsBaseline
- whether the specified Group
should
be used to calculate the baseline for this Group
Group
public GroupLayout.SequentialGroup add(Component component)
component
- the Component to add
SequentialGroup
public GroupLayout.SequentialGroup add(boolean useAsBaseline, Component component)
Component
to this Group
.
useAsBaseline
- whether the specified Component
should
be used to calculate the baseline for this Group
component
- the Component
to add
Group
public GroupLayout.SequentialGroup add(Component component, int min, int pref, int max)
Component
. Min, pref and max
can be absolute values, or they can be one of
DEFAULT_SIZE
or PREFERRED_SIZE
. For
example, the following:
add(component, PREFERRED_SIZE, PREFERRED_SIZE, 1000);Forces a max of 1000, with the min and preferred equalling that of the preferred size of
component
.
component
- the Component to addmin
- the minimum sizepref
- the preferred sizemax
- the maximum size
SequentialGroup
java.lang.IllegalArgumentException
- if min, pref or max are
not positive and not one of PREFERRED_SIZE or DEFAULT_SIZEpublic GroupLayout.SequentialGroup add(boolean useAsBaseline, Component component, int min, int pref, int max)
Component
to this Group
with the specified size.
useAsBaseline
- whether the specified Component
should
be used to calculate the baseline for this Group
component
- the Component
to addmin
- the minimum size or one of DEFAULT_SIZE
or
PREFERRED_SIZE
pref
- the preferred size or one of DEFAULT_SIZE
or
PREFERRED_SIZE
max
- the maximum size or one of DEFAULT_SIZE
or
PREFERRED_SIZE
Group
public GroupLayout.SequentialGroup add(int pref)
pref
- the size of the gap
SequentialGroup
java.lang.IllegalArgumentException
- if min < 0 or pref < 0 or max < 0
or the following is not meant min <= pref <= maxpublic GroupLayout.SequentialGroup add(int min, int pref, int max)
min
- the minimum size of the gap, or PREFERRED_SIZEpref
- the preferred size of the gapmax
- the maximum size of the gap, or PREFERRED_SIZE
SequentialGroup
java.lang.IllegalArgumentException
- if min < 0 or pref < 0 or max < 0
or the following is not meant min <= pref <= maxpublic GroupLayout.SequentialGroup addPreferredGap(Component comp1, Component comp2, int type)
comp1
- the first componentcomp2
- the second componenttype
- the type of gap; one of the constants defined by
LayoutStyle
SequentialGroup
java.lang.IllegalArgumentException
- if type
is not a
valid LayoutStyle constantLayoutStyle
public GroupLayout.SequentialGroup addPreferredGap(Component comp1, Component comp2, int type, boolean canGrow)
comp1
- the first componentcomp2
- the second componenttype
- the type of gap; one of the constants defined by
LayoutStylecanGrow
- true if the gap can grow if more
space is available
SequentialGroup
java.lang.IllegalArgumentException
- if type
is not a
valid LayoutStyle constantLayoutStyle
public GroupLayout.SequentialGroup addPreferredGap(int type)
type
- the type of gap; one of the LayoutStyle constants
java.lang.IllegalArgumentException
- if type is not one of
LayoutStyle.RELATED
or
LayoutStyle.UNRELATED
LayoutStyle
public GroupLayout.SequentialGroup addPreferredGap(int type, int pref, int max)
pref
and max
arguments. These can either be a
value >= 0, in which case the preferred or max is the max
of the argument and the preferred gap, of DEFAULT_VALUE in
which case the value is the same as the preferred gap.
type
- the type of gap; one of LayoutStyle.RELATED or
LayoutStyle.UNRELATEDpref
- the preferred size; one of DEFAULT_SIZE or a value > 0max
- the maximum size; one of DEFAULT_SIZE, PREFERRED_SIZE
or a value > 0
java.lang.IllegalArgumentException
- if type is not one of
LayoutStyle.RELATED
or
LayoutStyle.UNRELATED
or pref/max is
!= DEFAULT_SIZE and < 0, or pref > maxLayoutStyle
public GroupLayout.SequentialGroup addContainerGap()
SequentialGroup
.public GroupLayout.SequentialGroup addContainerGap(int pref, int max)
pref
- the preferred size; one of DEFAULT_SIZE or a value > 0max
- the maximum size; one of DEFAULT_SIZE, PREFERRED_SIZE
or a value > 0.
SequentialGroup
java.lang.IllegalArgumentException
- if pref/max is
!= DEFAULT_SIZE and < 0, or pref > max
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |