style.html.svn-base
来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,435 行 · 第 1/4 页
SVN-BASE
1,435 行
<BR>
Returns the Margin</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/Style.html#getPadding(int)">getPadding</A></B>(int orientation)</CODE>
<BR>
Returns the Padding</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/Style.html#isModified()">isModified</A></B>()</CODE>
<BR>
Returns true if the style was modified manually after it was created by the look and feel.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/Style.html#isScaleImage()">isScaleImage</A></B>()</CODE>
<BR>
</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/plaf/Style.html#merge(com.sun.lwuit.plaf.Style)">merge</A></B>(<A HREF="../../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> style)</CODE>
<BR>
Merges the new style with the current style without changing the elements that were modified.</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/plaf/Style.html#removeStyleListener(com.sun.lwuit.events.StyleListener)">removeStyleListener</A></B>(<A HREF="../../../../com/sun/lwuit/events/StyleListener.html" title="interface in com.sun.lwuit.events">StyleListener</A> l)</CODE>
<BR>
Removes a Style Listener from the Style Object.</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/plaf/Style.html#setBgColor(int)">setBgColor</A></B>(int bgColor)</CODE>
<BR>
Sets the background color for 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/plaf/Style.html#setBgColor(int, boolean)">setBgColor</A></B>(int bgColor,
boolean override)</CODE>
<BR>
Sets the background color for 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/plaf/Style.html#setBgImage(com.sun.lwuit.Image)">setBgImage</A></B>(<A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> bgImage)</CODE>
<BR>
Sets the background image for 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/plaf/Style.html#setBgImage(com.sun.lwuit.Image, boolean)">setBgImage</A></B>(<A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> bgImage,
boolean override)</CODE>
<BR>
Sets the background image for 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/plaf/Style.html#setBgPainter(com.sun.lwuit.Painter)">setBgPainter</A></B>(<A HREF="../../../../com/sun/lwuit/Painter.html" title="interface in com.sun.lwuit">Painter</A> bgPainter)</CODE>
<BR>
Defines the background painter for this style, normally this would be the internal image/color painter but can be user defined</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/plaf/Style.html#setBgSelectionColor(int)">setBgSelectionColor</A></B>(int bgSelectionColor)</CODE>
<BR>
Sets the background selection color for 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/plaf/Style.html#setBgSelectionColor(int, boolean)">setBgSelectionColor</A></B>(int bgSelectionColor,
boolean override)</CODE>
<BR>
Sets the background selection color for 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/plaf/Style.html#setBgTransparency(byte)">setBgTransparency</A></B>(byte transparency)</CODE>
<BR>
Sets the Component transparency level.</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/plaf/Style.html#setBgTransparency(int)">setBgTransparency</A></B>(int transparency)</CODE>
<BR>
Sets the Component transparency level.</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/plaf/Style.html#setBgTransparency(int, boolean)">setBgTransparency</A></B>(int transparency,
boolean override)</CODE>
<BR>
Sets the Component transparency level.</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/plaf/Style.html#setFgColor(int)">setFgColor</A></B>(int fgColor)</CODE>
<BR>
Sets the foreground color for 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/plaf/Style.html#setFgColor(int, boolean)">setFgColor</A></B>(int fgColor,
boolean override)</CODE>
<BR>
Sets the foreground color for 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/plaf/Style.html#setFgSelectionColor(int)">setFgSelectionColor</A></B>(int fgSelectionColor)</CODE>
<BR>
Sets the foreground selection color for 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/plaf/Style.html#setFgSelectionColor(int, boolean)">setFgSelectionColor</A></B>(int fgSelectionColor,
boolean override)</CODE>
<BR>
Sets the foreground selection color for 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/plaf/Style.html#setFont(com.sun.lwuit.Font)">setFont</A></B>(<A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A> font)</CODE>
<BR>
Sets the font for 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/plaf/Style.html#setFont(com.sun.lwuit.Font, boolean)">setFont</A></B>(<A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A> font,
boolean override)</CODE>
<BR>
Sets the font for 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/plaf/Style.html#setMargin(int, int)">setMargin</A></B>(int orientation,
int gap)</CODE>
<BR>
Sets the Style Margin</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/plaf/Style.html#setMargin(int, int, boolean)">setMargin</A></B>(int orientation,
int gap,
boolean override)</CODE>
<BR>
Sets the Style Margin</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/plaf/Style.html#setMargin(int, int, int, int)">setMargin</A></B>(int top,
int bottom,
int left,
int right)</CODE>
<BR>
Sets the Style Margin</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/plaf/Style.html#setPadding(int, int)">setPadding</A></B>(int orientation,
int gap)</CODE>
<BR>
Sets the Style Padding</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/plaf/Style.html#setPadding(int, int, boolean)">setPadding</A></B>(int orientation,
int gap,
boolean override)</CODE>
<BR>
Sets the Style Padding</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/plaf/Style.html#setPadding(int, int, int, int)">setPadding</A></B>(int top,
int bottom,
int left,
int right)</CODE>
<BR>
Sets the Style Padding</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/plaf/Style.html#setScaleImage(boolean)">setScaleImage</A></B>(boolean scaleImage)</CODE>
<BR>
Set to true if the image in the background is scalled, false if it is tiled</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/plaf/Style.html#setScaleImage(boolean, boolean)">setScaleImage</A></B>(boolean scaleImage,
boolean override)</CODE>
<BR>
Set to true if the image in the background is scalled, false if it is tiled</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, toString, 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="BG_COLOR"><!-- --></A><H3>
BG_COLOR</H3>
<PRE>
public static final java.lang.String <B>BG_COLOR</B></PRE>
<DL>
<DD>Background color attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.BG_COLOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FG_COLOR"><!-- --></A><H3>
FG_COLOR</H3>
<PRE>
public static final java.lang.String <B>FG_COLOR</B></PRE>
<DL>
<DD>Foreground color attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.FG_COLOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BG_IMAGE"><!-- --></A><H3>
BG_IMAGE</H3>
<PRE>
public static final java.lang.String <B>BG_IMAGE</B></PRE>
<DL>
<DD>Background image attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.BG_IMAGE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BG_SELECTION_COLOR"><!-- --></A><H3>
BG_SELECTION_COLOR</H3>
<PRE>
public static final java.lang.String <B>BG_SELECTION_COLOR</B></PRE>
<DL>
<DD>Background selection color attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.BG_SELECTION_COLOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FG_SELECTION_COLOR"><!-- --></A><H3>
FG_SELECTION_COLOR</H3>
<PRE>
public static final java.lang.String <B>FG_SELECTION_COLOR</B></PRE>
<DL>
<DD>Foreground color attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.FG_SELECTION_COLOR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FONT"><!-- --></A><H3>
FONT</H3>
<PRE>
public static final java.lang.String <B>FONT</B></PRE>
<DL>
<DD>Font attribute name for the theme hashtable
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.sun.lwuit.plaf.Style.FONT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SCALED_IMAGE"><!-- --></A><H3>
SCALED_IMAGE</H3>
<PRE>
public static final java.lang.String <B>SCALED_IMAGE</B></PRE>
<DL>
<DD>Scaled image attribute name for the theme hashtable
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?