style.html.svn-base

来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,435 行 · 第 1/4 页

SVN-BASE
1,435
字号

<A NAME="setPadding(int, int, int, int)"><!-- --></A><H3>
setPadding</H3>
<PRE>
public void <B>setPadding</B>(int&nbsp;top,
                       int&nbsp;bottom,
                       int&nbsp;left,
                       int&nbsp;right)</PRE>
<DL>
<DD>Sets the Style Padding
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>top</CODE> - number of pixels to padd<DD><CODE>bottom</CODE> - number of pixels to padd<DD><CODE>left</CODE> - number of pixels to padd<DD><CODE>right</CODE> - number of pixels to padd</DL>
</DD>
</DL>
<HR>

<A NAME="setPadding(int, int)"><!-- --></A><H3>
setPadding</H3>
<PRE>
public void <B>setPadding</B>(int&nbsp;orientation,
                       int&nbsp;gap)</PRE>
<DL>
<DD>Sets the Style Padding
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT<DD><CODE>gap</CODE> - number of pixels to padd</DL>
</DD>
</DL>
<HR>

<A NAME="setMargin(int, int, int, int)"><!-- --></A><H3>
setMargin</H3>
<PRE>
public void <B>setMargin</B>(int&nbsp;top,
                      int&nbsp;bottom,
                      int&nbsp;left,
                      int&nbsp;right)</PRE>
<DL>
<DD>Sets the Style Margin
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>top</CODE> - number of margin pixels<DD><CODE>bottom</CODE> - number of margin pixels<DD><CODE>left</CODE> - number of margin pixels<DD><CODE>right</CODE> - number of margin pixels</DL>
</DD>
</DL>
<HR>

<A NAME="setMargin(int, int)"><!-- --></A><H3>
setMargin</H3>
<PRE>
public void <B>setMargin</B>(int&nbsp;orientation,
                      int&nbsp;gap)</PRE>
<DL>
<DD>Sets the Style Margin
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT<DD><CODE>gap</CODE> - number of margin pixels</DL>
</DD>
</DL>
<HR>

<A NAME="getPadding(int)"><!-- --></A><H3>
getPadding</H3>
<PRE>
public int <B>getPadding</B>(int&nbsp;orientation)</PRE>
<DL>
<DD>Returns the Padding
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT
<DT><B>Returns:</B><DD>number of padding pixels in the givven orientation</DL>
</DD>
</DL>
<HR>

<A NAME="getMargin(int)"><!-- --></A><H3>
getMargin</H3>
<PRE>
public int <B>getMargin</B>(int&nbsp;orientation)</PRE>
<DL>
<DD>Returns the Margin
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT
<DT><B>Returns:</B><DD>number of margin pixels in the givven orientation</DL>
</DD>
</DL>
<HR>

<A NAME="setBgColor(int, boolean)"><!-- --></A><H3>
setBgColor</H3>
<PRE>
public void <B>setBgColor</B>(int&nbsp;bgColor,
                       boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the background color for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bgColor</CODE> - RRGGBB color that ignors the alpha component<DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setBgImage(com.sun.lwuit.Image, boolean)"><!-- --></A><H3>
setBgImage</H3>
<PRE>
public void <B>setBgImage</B>(<A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A>&nbsp;bgImage,
                       boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the background image for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setFgColor(int, boolean)"><!-- --></A><H3>
setFgColor</H3>
<PRE>
public void <B>setFgColor</B>(int&nbsp;fgColor,
                       boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the foreground color for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setFont(com.sun.lwuit.Font, boolean)"><!-- --></A><H3>
setFont</H3>
<PRE>
public void <B>setFont</B>(<A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A>&nbsp;font,
                    boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the font for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setBgSelectionColor(int, boolean)"><!-- --></A><H3>
setBgSelectionColor</H3>
<PRE>
public void <B>setBgSelectionColor</B>(int&nbsp;bgSelectionColor,
                                boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the background selection color for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setFgSelectionColor(int, boolean)"><!-- --></A><H3>
setFgSelectionColor</H3>
<PRE>
public void <B>setFgSelectionColor</B>(int&nbsp;fgSelectionColor,
                                boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the foreground selection color for the component
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setScaleImage(boolean, boolean)"><!-- --></A><H3>
setScaleImage</H3>
<PRE>
public void <B>setScaleImage</B>(boolean&nbsp;scaleImage,
                          boolean&nbsp;override)</PRE>
<DL>
<DD>Set to true if the image in the background is scalled, false if it is tiled
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setBgTransparency(int, boolean)"><!-- --></A><H3>
setBgTransparency</H3>
<PRE>
public void <B>setBgTransparency</B>(int&nbsp;transparency,
                              boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the Component transparency level. Valid values should be a  number between 0-255
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>transparency</CODE> - int value between 0-255</DL>
</DD>
</DL>
<HR>

<A NAME="setPadding(int, int, boolean)"><!-- --></A><H3>
setPadding</H3>
<PRE>
public void <B>setPadding</B>(int&nbsp;orientation,
                       int&nbsp;gap,
                       boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the Style Padding
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT<DD><CODE>gap</CODE> - number of pixels to padd<DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="setMargin(int, int, boolean)"><!-- --></A><H3>
setMargin</H3>
<PRE>
public void <B>setMargin</B>(int&nbsp;orientation,
                      int&nbsp;gap,
                      boolean&nbsp;override)</PRE>
<DL>
<DD>Sets the Style Margin
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>orientation</CODE> - one of: Component.TOP, Component.BOTTOM, Component.LEFT, Component.RIGHT<DD><CODE>gap</CODE> - number of margin pixels<DD><CODE>override</CODE> - If set to true allows the look and feel/theme to override  the value in this attribute when changing a theme/look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="addStyleListener(com.sun.lwuit.events.StyleListener)"><!-- --></A><H3>
addStyleListener</H3>
<PRE>
public void <B>addStyleListener</B>(<A HREF="../../../../com/sun/lwuit/events/StyleListener.html" title="interface in com.sun.lwuit.events">StyleListener</A>&nbsp;l)</PRE>
<DL>
<DD>Adds a Style Listener to the Style Object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - a style listener</DL>
</DD>
</DL>
<HR>

<A NAME="removeStyleListener(com.sun.lwuit.events.StyleListener)"><!-- --></A><H3>
removeStyleListener</H3>
<PRE>
public void <B>removeStyleListener</B>(<A HREF="../../../../com/sun/lwuit/events/StyleListener.html" title="interface in com.sun.lwuit.events">StyleListener</A>&nbsp;l)</PRE>
<DL>
<DD>Removes a Style Listener from the Style Object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - a style listener</DL>
</DD>
</DL>
<HR>

<A NAME="getBgPainter()"><!-- --></A><H3>
getBgPainter</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/Painter.html" title="interface in com.sun.lwuit">Painter</A> <B>getBgPainter</B>()</PRE>
<DL>
<DD>Return the background painter for this style, normally this would be  the internal image/color painter but can be user defined
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBgPainter(com.sun.lwuit.Painter)"><!-- --></A><H3>
setBgPainter</H3>
<PRE>
public void <B>setBgPainter</B>(<A HREF="../../../../com/sun/lwuit/Painter.html" title="interface in com.sun.lwuit">Painter</A>&nbsp;bgPainter)</PRE>
<DL>
<DD>Defines the background painter for this style, normally this would be  the internal image/color painter but can be user defined
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>bgPainter</CODE> - new painter to install into the style</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Style.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html" title="class in com.sun.lwuit.plaf"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/sun/lwuit/plaf/UIManager.html" title="class in com.sun.lwuit.plaf"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/sun/lwuit/plaf/Style.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Style.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?