📄 component.html.svn-base
字号:
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setNextFocusDown(com.sun.lwuit.Component)">setNextFocusDown</A></B>(<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> nextFocusDown)</CODE>
<BR>
Allows us to determine which component will receive focus next when travering with the down key</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setNextFocusRight(com.sun.lwuit.Component)">setNextFocusRight</A></B>(<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> nextFocusRight)</CODE>
<BR>
Allows us to determine which component will receive focus next when travering with the right key</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setPreferredH(int)">setPreferredH</A></B>(int preferredH)</CODE>
<BR>
Helper method to set the preferred height of the component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setPreferredSize(com.sun.lwuit.geom.Dimension)">setPreferredSize</A></B>(<A HREF="../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> d)</CODE>
<BR>
Sets the Component Preferred Size, there is no garuntee the Component will be sized at its Preferred Size.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setPreferredW(int)">setPreferredW</A></B>(int preferredW)</CODE>
<BR>
Helper method to set the preferred width of the component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setScrollAnimationSpeed(int)">setScrollAnimationSpeed</A></B>(int animationSpeed)</CODE>
<BR>
Scroll animation speed in milliseconds allowing a developer to slow down or accelerate the smooth animation mode</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setScrollX(int)">setScrollX</A></B>(int scrollX)</CODE>
<BR>
Indicates the X position of the scrolling, this number is relative to the component position and so a position of 0 would indicate the x position of the component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setScrollY(int)">setScrollY</A></B>(int scrollY)</CODE>
<BR>
Indicates the X position of the scrolling, this number is relative to the component position and so a position of 0 would indicate the x position of the component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setShouldCalcPreferredSize(boolean)">setShouldCalcPreferredSize</A></B>(boolean shouldCalcPreferredSize)</CODE>
<BR>
Indicates the values within the component have changed and preferred size should be recalculated</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setSize(com.sun.lwuit.geom.Dimension)">setSize</A></B>(<A HREF="../../../com/sun/lwuit/geom/Dimension.html" title="class in com.sun.lwuit.geom">Dimension</A> d)</CODE>
<BR>
Sets the Component size, this method is exposed for the purpose of external layout managers and should not be invoked directly.<br> If a user wishes to effect the component size setPreferredSize should be used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setSmoothScrolling(boolean)">setSmoothScrolling</A></B>(boolean smoothScrolling)</CODE>
<BR>
Indicates that scrolling through the component should work as an animation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setStyle(com.sun.lwuit.plaf.Style)">setStyle</A></B>(<A HREF="../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> style)</CODE>
<BR>
Changes the Component Style by replacing the Component Style with the given Style</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setWidth(int)">setWidth</A></B>(int width)</CODE>
<BR>
Sets the Component width, this method is exposed for the purpose of external layout managers and should not be invoked directly.<br> If a user wishes to effect the component size setPreferredSize should be used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setX(int)">setX</A></B>(int x)</CODE>
<BR>
Sets the Component x location relative to the parent container, this method is exposed for the purpose of external layout managers and should not be invoked directly.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#setY(int)">setY</A></B>(int y)</CODE>
<BR>
Sets the Component y location relative to the parent container, this method is exposed for the purpose of external layout managers and should not be invoked directly.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#styleChanged(java.lang.String, com.sun.lwuit.plaf.Style)">styleChanged</A></B>(java.lang.String propertyName,
<A HREF="../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> source)</CODE>
<BR>
Invoked to indicate a change in a propertyName of a Style</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Component.html#toString()">toString</A></B>()</CODE>
<BR>
Overriden to return a useful value for debugging purposes</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="BRB_CONSTANT_ASCENT"><!-- --></A><H3>
BRB_CONSTANT_ASCENT</H3>
<PRE>
public static final int <B>BRB_CONSTANT_ASCENT</B></PRE>
<DL>
<DD>Baseline resize behavior constant used to properly align components. Indicates as the size of the component changes the baseline remains a fixed distance from the top of the component.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/Component.html#getBaselineResizeBehavior()"><CODE>getBaselineResizeBehavior()</CODE></A>,
<A HREF="../../../constant-values.html#com.sun.lwuit.Component.BRB_CONSTANT_ASCENT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BRB_CONSTANT_DESCENT"><!-- --></A><H3>
BRB_CONSTANT_DESCENT</H3>
<PRE>
public static final int <B>BRB_CONSTANT_DESCENT</B></PRE>
<DL>
<DD>Baseline resize behavior constant used to properly align components. Indicates as the size of the component changes the baseline remains a fixed distance from the bottom of the component.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/Component.html#getBaselineResizeBehavior()"><CODE>getBaselineResizeBehavior()</CODE></A>,
<A HREF="../../../constant-values.html#com.sun.lwuit.Component.BRB_CONSTANT_DESCENT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BRB_CENTER_OFFSET"><!-- --></A><H3>
BRB_CENTER_OFFSET</H3>
<PRE>
public static final int <B>BRB_CENTER_OFFSET</B></PRE>
<DL>
<DD>Baseline resize behavior constant used to properly align components. Indicates as the size of the component changes the baseline remains a fixed distance from the center of the component.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/Component.html#getBaselineResizeBehavior()"><CODE>getBaselineResizeBehavior()</CODE></A>,
<A HREF="../../../constant-values.html#com.sun.lwuit.Component.BRB_CENTER_OFFSET">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BRB_OTHER"><!-- --></A><H3>
BRB_OTHER</H3>
<PRE>
public static final int <B>BRB_OTHER</B></PRE>
<DL>
<DD>Baseline resize behavior constant used to properly align components. Indicates as the size of the component changes the baseline can not be determined using one of the other constants.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../com/sun/lwuit/Component.html#getBaselineResizeBehavior()"><CODE>getBaselineResizeBehavior()</CODE></A>,
<A HREF="../../../constant-values.html#com.sun.lwuit.Component.BRB_OTHER">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>Indicates a Component center alignment
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.sun.lwuit.Component.CENTER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TOP"><!-- --></A><H3>
TOP</H3>
<PRE>
public static final int <B>TOP</B></PRE>
<DL>
<DD>Box-orientation constant used to specify the top of a box.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.sun.lwuit.Component.TOP">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="LEFT"><!-- --></A><H3>
LEFT</H3>
<PRE>
public static final int <B>LEFT</B></PRE>
<DL>
<DD>Box-orientation constant used to specify the left side of a box.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.sun.lwuit.Component.LEFT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BOTTOM"><!-- --></A><H3>
BOTTOM</H3>
<PRE>
public static final int <B>BOTTOM</B></PRE>
<DL>
<DD>Box-orientation constant used to specify the bottom of a box.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.sun.lwuit.Component.BOTTOM">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="RIGHT"><!-- --></A><H3>
RIGHT</H3>
<PRE>
public static final int <B>RIGHT</B></PRE>
<DL>
<DD>Box-orientation constant used to specify the right side of a box.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -