📄 grouplayout.html.svn-base
字号:
the two component should share the same size along the vertical axis.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#linkSize(com.sun.lwuit.Component[], int)"><CODE>linkSize(Component[],int)</CODE></A>,
<A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.VERTICAL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="LEADING"><!-- --></A><H3>
LEADING</H3>
<PRE>
public static final int <B>LEADING</B></PRE>
<DL>
<DD>Possible alignment type. Indicates the elements should be aligned to the origin. For the horizontal axis with a left to right orientation this means aligned to the left.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#createParallelGroup(int)"><CODE>createParallelGroup(int)</CODE></A>,
<A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.LEADING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TRAILING"><!-- --></A><H3>
TRAILING</H3>
<PRE>
public static final int <B>TRAILING</B></PRE>
<DL>
<DD>Possible alignment type. Indicates the elements should be aligned to the end. For the horizontal axis with a left to right orientation this means aligned to the right.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#createParallelGroup(int)"><CODE>createParallelGroup(int)</CODE></A>,
<A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.TRAILING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CENTER"><!-- --></A><H3>
CENTER</H3>
<PRE>
public static final int <B>CENTER</B></PRE>
<DL>
<DD>Possible alignment type. Indicates the elements should centered in the spaced provided.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#createParallelGroup(int)"><CODE>createParallelGroup(int)</CODE></A>,
<A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.CENTER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BASELINE"><!-- --></A><H3>
BASELINE</H3>
<PRE>
public static final int <B>BASELINE</B></PRE>
<DL>
<DD>Possible alignment type. Indicates the elements should aligned along their baseline.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#createParallelGroup(int)"><CODE>createParallelGroup(int)</CODE></A>,
<A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.BASELINE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DEFAULT_SIZE"><!-- --></A><H3>
DEFAULT_SIZE</H3>
<PRE>
public static final int <B>DEFAULT_SIZE</B></PRE>
<DL>
<DD>Possible value for the add methods that takes a Component. Indicates the size from the component should be used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.DEFAULT_SIZE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PREFERRED_SIZE"><!-- --></A><H3>
PREFERRED_SIZE</H3>
<PRE>
public static final int <B>PREFERRED_SIZE</B></PRE>
<DL>
<DD>Possible value for the add methods that takes a Component. Indicates the preferred size should be used.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.layouts.GroupLayout.PREFERRED_SIZE">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="GroupLayout(com.sun.lwuit.Container)"><!-- --></A><H3>
GroupLayout</H3>
<PRE>
public <B>GroupLayout</B>(<A HREF="../../../../com/sun/lwuit/Container.html" title="class in com.sun.lwuit">Container</A> host)</PRE>
<DL>
<DD>Creates a GroupLayout for the specified JComponent.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the Container to layout
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if host is null</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="setHonorsVisibility(boolean)"><!-- --></A><H3>
setHonorsVisibility</H3>
<PRE>
public void <B>setHonorsVisibility</B>(boolean honorsVisibility)</PRE>
<DL>
<DD>Sets whether component visiblity is considered when sizing and positioning components. A value of <code>true</code> indicates that non-visible components should not be treated as part of the layout. A value of <code>false</code> indicates that components should be positioned and sized regardless of visibility. <p> A value of <code>false</code> is useful when the visibility of components is dynamically adjusted and you don't want surrounding components and the sizing to change. <p> The specified value is used for components that do not have an explicit visibility specified. <p> The default is <code>true</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>honorsVisibility</CODE> - whether component visiblity is considered when sizing and positioning components<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#setHonorsVisibility(com.sun.lwuit.Component, java.lang.Boolean)"><CODE>setHonorsVisibility(Component,Boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getHonorsVisibility()"><!-- --></A><H3>
getHonorsVisibility</H3>
<PRE>
public boolean <B>getHonorsVisibility</B>()</PRE>
<DL>
<DD>Returns whether component visiblity is considered when sizing and positioning components.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether component visiblity is considered when sizing and positioning components</DL>
</DD>
</DL>
<HR>
<A NAME="setHonorsVisibility(com.sun.lwuit.Component, java.lang.Boolean)"><!-- --></A><H3>
setHonorsVisibility</H3>
<PRE>
public void <B>setHonorsVisibility</B>(<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> component,
java.lang.Boolean honorsVisibility)</PRE>
<DL>
<DD>Sets whether the component's visiblity is considered for sizing and positioning. A value of <code>Boolean.TRUE</code> indicates that if <code>component</code> is not visible it should not be treated as part of the layout. A value of <code>false</code> indicates that <code>component</code> is positioned and sized regardless of it's visibility. A value of <code>null</code> indicates the value specified by the single argument method <code> setHonorsVisibility</code> should be used. <p> If <code>component</code> is not a child of the <code>Container</code> this <code>GroupLayout</code> is managing, it will be added to the <code>Container</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>component</CODE> - the component<DD><CODE>honorsVisibility</CODE> - whether <code>component</code>'s visiblity should be considered for sizing and positioning
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>component</code> is <code>null</code><DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.html#setHonorsVisibility(boolean)"><CODE>setHonorsVisibility(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a textual description of this GroupLayout. The return value is intended for debugging purposes only.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>textual description of this GroupLayout</DL>
</DD>
</DL>
<HR>
<A NAME="setAutocreateGaps(boolean)"><!-- --></A><H3>
setAutocreateGaps</H3>
<PRE>
public void <B>setAutocreateGaps</B>(boolean autocreatePadding)</PRE>
<DL>
<DD>Sets whether or not a gap between components should automatically be created. For example, if this is true and you add two components to a <code>SequentialGroup</code> a gap between the two will automatically be created. The default is false.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>autocreatePadding</CODE> - whether or not to automatically created a gap between components and the container</DL>
</DD>
</DL>
<HR>
<A NAME="getAutocreateGaps()"><!-- --></A><H3>
getAutocreateGaps</H3>
<PRE>
public boolean <B>getAutocreateGaps</B>()</PRE>
<DL>
<DD>Returns true if gaps between components are automatically be created.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if gaps between components should automatically be created</DL>
</DD>
</DL>
<HR>
<A NAME="setAutocreateContainerGaps(boolean)"><!-- --></A><H3>
setAutocreateContainerGaps</H3>
<PRE>
public void <B>setAutocreateContainerGaps</B>(boolean autocreatePadding)</PRE>
<DL>
<DD>Sets whether or not gaps between the container and the first/last components should automatically be created. The default is false.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>autocreatePadding</CODE> - whether or not to automatically create gaps between the container and first/last components.</DL>
</DD>
</DL>
<HR>
<A NAME="getAutocreateContainerGaps()"><!-- --></A><H3>
getAutocreateContainerGaps</H3>
<PRE>
public boolean <B>getAutocreateContainerGaps</B>()</PRE>
<DL>
<DD>Returns whether or not gaps between the container and the first/last components should automatically be created. The default is false.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether or not the gaps between the container and the first/last components should automatically be created</DL>
</DD>
</DL>
<HR>
<A NAME="setHorizontalGroup(com.sun.lwuit.layouts.GroupLayout.Group)"><!-- --></A><H3>
setHorizontalGroup</H3>
<PRE>
public void <B>setHorizontalGroup</B>(<A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.Group.html" title="class in com.sun.lwuit.layouts">GroupLayout.Group</A> group)</PRE>
<DL>
<DD>Sets the <code>Group</code> that is responsible for layout along the horizontal axis.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - <code>Group</code> responsible for layout along the horizontal axis
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if group is null</DL>
</DD>
</DL>
<HR>
<A NAME="getHorizontalGroup()"><!-- --></A><H3>
getHorizontalGroup</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.Group.html" title="class in com.sun.lwuit.layouts">GroupLayout.Group</A> <B>getHorizontalGroup</B>()</PRE>
<DL>
<DD>Returns the <code>Group</code> that is responsible for layout along the horizontal axis.
<P>
<DD><DL>
<DT><B>Returns:</B><DD><code>ParallelGroup</code> responsible for layout along the horizontal axis.</DL>
</DD>
</DL>
<HR>
<A NAME="setVerticalGroup(com.sun.lwuit.layouts.GroupLayout.Group)"><!-- --></A><H3>
setVerticalGroup</H3>
<PRE>
public void <B>setVerticalGroup</B>(<A HREF="../../../../com/sun/lwuit/layouts/GroupLayout.Group.html" title="class in com.sun.lwuit.layouts">GroupLayout.Group</A> group)</PRE>
<DL>
<DD>Sets the <code>Group</code> that is responsible for layout along the vertical axis.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>group</CODE> - <code>Group</code> responsible for layout along the vertical axis.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if group is null.</DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -