|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.6.0
javax.swing
|
|||||||||||||||||||||||||||||||||
| Method Summary | |
|---|---|
GroupLayout.SequentialGroup |
addComponent(boolean useAsBaseline,
Component component)
Adds a Component to this Group. |
GroupLayout.SequentialGroup |
addComponent(boolean useAsBaseline,
Component component,
int min,
int pref,
int max)
Adds a Component to this Group
with the specified size. |
GroupLayout.SequentialGroup |
addComponent(Component component)
Adds a Component to this Group. |
GroupLayout.SequentialGroup |
addComponent(Component component,
int min,
int pref,
int max)
Adds a Component to this Group
with the specified size. |
GroupLayout.SequentialGroup |
addContainerGap()
Adds an element representing the preferred gap between an edge the container and components that touch the border of the container. |
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. |
GroupLayout.SequentialGroup |
addGap(int size)
Adds a rigid gap to this Group. |
GroupLayout.SequentialGroup |
addGap(int min,
int pref,
int max)
Adds a gap to this Group with the specified size. |
GroupLayout.SequentialGroup |
addGroup(boolean useAsBaseline,
GroupLayout.Group group)
Adds a Group to this Group. |
GroupLayout.SequentialGroup |
addGroup(GroupLayout.Group group)
Adds a Group to this Group. |
GroupLayout.SequentialGroup |
addPreferredGap(JComponent comp1,
JComponent comp2,
LayoutStyle.ComponentPlacement type)
Adds an element representing the preferred gap between two components. |
GroupLayout.SequentialGroup |
addPreferredGap(JComponent comp1,
JComponent comp2,
LayoutStyle.ComponentPlacement type,
int pref,
int max)
Adds an element representing the preferred gap between two components. |
GroupLayout.SequentialGroup |
addPreferredGap(LayoutStyle.ComponentPlacement type)
Adds an element representing the preferred gap between the nearest components. |
GroupLayout.SequentialGroup |
addPreferredGap(LayoutStyle.ComponentPlacement type,
int pref,
int max)
Adds an element representing the preferred gap between the nearest components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public GroupLayout.SequentialGroup addGroup(GroupLayout.Group group)
Group to this Group.
addGroup in class GroupLayout.Groupgroup - the Group to add
Grouppublic GroupLayout.SequentialGroup addGroup(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
Grouppublic GroupLayout.SequentialGroup addComponent(Component component)
Component to this Group.
addComponent in class GroupLayout.Groupcomponent - the Component to add
Grouppublic GroupLayout.SequentialGroup addComponent(boolean useAsBaseline, Component component)
Component to this Group.
useAsBaseline - whether the specified Component should
be used to calculate the baseline for this Groupcomponent - the Component to add
Grouppublic GroupLayout.SequentialGroup addComponent(Component component, int min, int pref, int max)
Component to this Group
with the specified size.
addComponent in class GroupLayout.Groupcomponent - the Component to addmin - the minimum size or one of DEFAULT_SIZE or
PREFERRED_SIZEpref - the preferred size or one of DEFAULT_SIZE or
PREFERRED_SIZEmax - the maximum size or one of DEFAULT_SIZE or
PREFERRED_SIZE
Grouppublic GroupLayout.SequentialGroup addComponent(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 Groupcomponent - the Component to addmin - the minimum size or one of DEFAULT_SIZE or
PREFERRED_SIZEpref - the preferred size or one of DEFAULT_SIZE or
PREFERRED_SIZEmax - the maximum size or one of DEFAULT_SIZE or
PREFERRED_SIZE
Grouppublic GroupLayout.SequentialGroup addGap(int size)
Group.
addGap in class GroupLayout.Groupsize - the size of the gap
Grouppublic GroupLayout.SequentialGroup addGap(int min, int pref, int max)
Group with the specified size.
addGap in class GroupLayout.Groupmin - the minimum size of the gappref - the preferred size of the gapmax - the maximum size of the gap
Grouppublic GroupLayout.SequentialGroup addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type)
comp1 - the first componentcomp2 - the second componenttype - the type of gap; one of the constants defined by
LayoutStyle
SequentialGroup
IllegalArgumentException - if type, comp1 or
comp2 is nullLayoutStylepublic GroupLayout.SequentialGroup addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type, int pref, int max)
comp1 - the first componentcomp2 - the second componenttype - the type of gappref - the preferred size of the grap; one of
DEFAULT_SIZE or a value >= 0max - the maximum size of the gap; one of
DEFAULT_SIZE, PREFERRED_SIZE
or a value >= 0
SequentialGroup
IllegalArgumentException - if type, comp1 or
comp2 is nullLayoutStylepublic GroupLayout.SequentialGroup addPreferredGap(LayoutStyle.ComponentPlacement type)
0.
The element created to represent the gap is not resizable.
type - the type of gap; one of
LayoutStyle.ComponentPlacement.RELATED or
LayoutStyle.ComponentPlacement.UNRELATED
SequentialGroup
IllegalArgumentException - if type is not one of
LayoutStyle.ComponentPlacement.RELATED or
LayoutStyle.ComponentPlacement.UNRELATEDLayoutStylepublic GroupLayout.SequentialGroup addPreferredGap(LayoutStyle.ComponentPlacement type, int pref, int max)
type - the type of gap; one of
LayoutStyle.ComponentPlacement.RELATED or
LayoutStyle.ComponentPlacement.UNRELATEDpref - the preferred size of the grap; one of
DEFAULT_SIZE or a value >= 0max - the maximum size of the gap; one of
DEFAULT_SIZE, PREFERRED_SIZE
or a value >= 0
SequentialGroup
IllegalArgumentException - if type is not one of
LayoutStyle.ComponentPlacement.RELATED or
LayoutStyle.ComponentPlacement.UNRELATEDLayoutStylepublic GroupLayout.SequentialGroup addContainerGap()
The element created to represent the gap is not resizable.
SequentialGrouppublic GroupLayout.SequentialGroup addContainerGap(int pref, int max)
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.
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