lookandfeel.html.svn-base

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

SVN-BASE
1,363
字号
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setDefaultFormTransitionOut(com.sun.lwuit.animations.Transition)">setDefaultFormTransitionOut</A></B>(<A HREF="../../../../com/sun/lwuit/animations/Transition.html" title="class in com.sun.lwuit.animations">Transition</A>&nbsp;defaultFormTransitionOut)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows us to define a default animation that will draw the transition for exiting a form</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setDefaultSmoothScrolling(boolean)">setDefaultSmoothScrolling</A></B>(boolean&nbsp;defaultSmoothScrolling)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates whether lists and containers should have smooth scrolling by default</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setDefaultSmoothScrollingSpeed(int)">setDefaultSmoothScrollingSpeed</A></B>(int&nbsp;defaultSmoothScrollingSpeed)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the default speed for smooth scrolling</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setDisableColor(int)">setDisableColor</A></B>(int&nbsp;disableColor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple setter to diable color</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setFG(com.sun.lwuit.Graphics, com.sun.lwuit.Component)">setFG</A></B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
      <A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the foreground color and font for a generic component, reuse-able by most component drawing code</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#setReverseSoftButtons(boolean)">setReverseSoftButtons</A></B>(boolean&nbsp;reverseSoftButtons)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates whether softbuttons should be reversed from their default orientation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#uninstall()">uninstall</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked when a look and feel is removed, allows a look and feel to release  resources related to binding components.</TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<P>

<!-- ========= 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="LookAndFeel()"><!-- --></A><H3>
LookAndFeel</H3>
<PRE>
public <B>LookAndFeel</B>()</PRE>
<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="bind(com.sun.lwuit.Component)"><!-- --></A><H3>
bind</H3>
<PRE>
public void <B>bind</B>(<A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A>&nbsp;cmp)</PRE>
<DL>
<DD>Every component binds itself to the look and feel thus allowing the look  and feel to customize the component.  Binding occurs at the end of the constructor when the component is in a valid state and ready to be used. Notice that a component might be bound twice or more and it is the  responsibility of the LookAndFeel to protect against that.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cmp</CODE> - component instance that may be customized by the look and feel</DL>
</DD>
</DL>
<HR>

<A NAME="uninstall()"><!-- --></A><H3>
uninstall</H3>
<PRE>
public void <B>uninstall</B>()</PRE>
<DL>
<DD>Invoked when a look and feel is removed, allows a look and feel to release  resources related to binding components.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/sun/lwuit/plaf/LookAndFeel.html#bind(com.sun.lwuit.Component)"><CODE>bind(Component)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="drawButton(com.sun.lwuit.Graphics, com.sun.lwuit.Button)"><!-- --></A><H3>
drawButton</H3>
<PRE>
public abstract void <B>drawButton</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                <A HREF="../../../../com/sun/lwuit/Button.html" title="class in com.sun.lwuit">Button</A>&nbsp;b)</PRE>
<DL>
<DD>Invoked for drawing a button widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawCheckBox(com.sun.lwuit.Graphics, com.sun.lwuit.CheckBox)"><!-- --></A><H3>
drawCheckBox</H3>
<PRE>
public abstract void <B>drawCheckBox</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                  <A HREF="../../../../com/sun/lwuit/CheckBox.html" title="class in com.sun.lwuit">CheckBox</A>&nbsp;cb)</PRE>
<DL>
<DD>Invoked for drawing a checkbox widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawComboBox(com.sun.lwuit.Graphics, com.sun.lwuit.ComboBox)"><!-- --></A><H3>
drawComboBox</H3>
<PRE>
public abstract void <B>drawComboBox</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                  <A HREF="../../../../com/sun/lwuit/ComboBox.html" title="class in com.sun.lwuit">ComboBox</A>&nbsp;cb)</PRE>
<DL>
<DD>Invoked for drawing a combo box widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawLabel(com.sun.lwuit.Graphics, com.sun.lwuit.Label)"><!-- --></A><H3>
drawLabel</H3>
<PRE>
public abstract void <B>drawLabel</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                               <A HREF="../../../../com/sun/lwuit/Label.html" title="class in com.sun.lwuit">Label</A>&nbsp;l)</PRE>
<DL>
<DD>Invoked for drawing a label widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawList(com.sun.lwuit.Graphics, com.sun.lwuit.List)"><!-- --></A><H3>
drawList</H3>
<PRE>
public abstract void <B>drawList</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                              <A HREF="../../../../com/sun/lwuit/List.html" title="class in com.sun.lwuit">List</A>&nbsp;l)</PRE>
<DL>
<DD>Invoked for drawing a list widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawMonthView(com.sun.lwuit.Graphics, com.sun.lwuit.Calendar, com.sun.lwuit.Component)"><!-- --></A><H3>
drawMonthView</H3>
<PRE>
public abstract void <B>drawMonthView</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                   <A HREF="../../../../com/sun/lwuit/Calendar.html" title="class in com.sun.lwuit">Calendar</A>&nbsp;cal,
                                   <A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A>&nbsp;mv)</PRE>
<DL>
<DD>Invoked for drawing a month view widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="findDayAt(int, int, com.sun.lwuit.Calendar, com.sun.lwuit.Component)"><!-- --></A><H3>
findDayAt</H3>
<PRE>
public abstract long <B>findDayAt</B>(int&nbsp;x,
                               int&nbsp;y,
                               <A HREF="../../../../com/sun/lwuit/Calendar.html" title="class in com.sun.lwuit">Calendar</A>&nbsp;cal,
                               <A HREF="../../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A>&nbsp;mv)</PRE>
<DL>
<DD>Returns the day of the month in the month view at the given relative component X/Y offsets. This is important for touch screen interaction
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawRadioButton(com.sun.lwuit.Graphics, com.sun.lwuit.RadioButton)"><!-- --></A><H3>
drawRadioButton</H3>
<PRE>
public abstract void <B>drawRadioButton</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                     <A HREF="../../../../com/sun/lwuit/RadioButton.html" title="class in com.sun.lwuit">RadioButton</A>&nbsp;rb)</PRE>
<DL>
<DD>Invoked for drawing the radio button widget
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawTextArea(com.sun.lwuit.Graphics, com.sun.lwuit.TextArea)"><!-- --></A><H3>
drawTextArea</H3>
<PRE>
public abstract void <B>drawTextArea</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                  <A HREF="../../../../com/sun/lwuit/TextArea.html" title="class in com.sun.lwuit">TextArea</A>&nbsp;ta)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawTextField(com.sun.lwuit.Graphics, com.sun.lwuit.TextField)"><!-- --></A><H3>
drawTextField</H3>
<PRE>
public abstract void <B>drawTextField</B>(<A HREF="../../../../com/sun/lwuit/Graphics.html" title="class in com.sun.lwuit">Graphics</A>&nbsp;g,
                                   <A HREF="../../../../com/sun/lwuit/TextField.html" title="class in com.sun.lwuit">TextField</A>&nbsp;ta)</PRE>
<DL>
<DD>Draws the text field without its cursor which is drawn in a separate method input mode indication can also be drawn using this method.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="drawTextFieldCursor(com.sun.lwuit.Graphics, com.sun.lwuit.TextField)"><!-- --></A><H3>
drawTextFieldCursor</H3>

⌨️ 快捷键说明

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