dialog.html.svn-base
来自「j2me设计的界面包」· SVN-BASE 代码 · 共 1,004 行 · 第 1/5 页
SVN-BASE
1,004 行
<BR>
Constructs a Dialog with a title</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</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/Dialog.html#actionCommand(com.sun.lwuit.Command)">actionCommand</A></B>(<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A> cmd)</CODE>
<BR>
Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances</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/Dialog.html#animate()">animate</A></B>()</CODE>
<BR>
Allows the animation to reduce "repaint" calls when it returns false.</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/Dialog.html#dispose()">dispose</A></B>()</CODE>
<BR>
Closes the current form and returns to the previous form, releasing the EDT in the process</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#getDialogStyle()">getDialogStyle</A></B>()</CODE>
<BR>
Simple getter to get the Dialog 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/Dialog.html#refreshTheme()">refreshTheme</A></B>()</CODE>
<BR>
Makes sure the component is up to date with the current 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/Dialog.html#setDialogStyle(com.sun.lwuit.plaf.Style)">setDialogStyle</A></B>(<A HREF="../../../com/sun/lwuit/plaf/Style.html" title="class in com.sun.lwuit.plaf">Style</A> style)</CODE>
<BR>
Simple setter to set the Dialog 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/Dialog.html#setTimeout(long)">setTimeout</A></B>(long time)</CODE>
<BR>
Indicates the time (in milliseconds) afterwhich the dialog will be disposed implicitly</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/Dialog.html#show()">show</A></B>()</CODE>
<BR>
The default version of show modal shows the dialog occupying the center portion of the screen.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(int, int, int, int, boolean)">show</A></B>(int top,
int bottom,
int left,
int right,
boolean includeTitle)</CODE>
<BR>
This method shows the form as a modal alert allowing us to produce a behavior of an alert/dialog box.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, com.sun.lwuit.Component, com.sun.lwuit.Command[])">show</A></B>(java.lang.String title,
<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> body,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds)</CODE>
<BR>
Shows a modal dialog with the given component as its "body" placed in the center.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, com.sun.lwuit.Component, com.sun.lwuit.Command[], int, com.sun.lwuit.Image)">show</A></B>(java.lang.String title,
<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> body,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon)</CODE>
<BR>
Shows a modal dialog with the given component as its "body" placed in the center.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, com.sun.lwuit.Component, com.sun.lwuit.Command[], int, com.sun.lwuit.Image, long)">show</A></B>(java.lang.String title,
<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> body,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
long timeout)</CODE>
<BR>
Shows a modal dialog with the given component as its "body" placed in the center.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, com.sun.lwuit.Component, com.sun.lwuit.Command[], int, com.sun.lwuit.Image, long, com.sun.lwuit.animations.Transition)">show</A></B>(java.lang.String title,
<A HREF="../../../com/sun/lwuit/Component.html" title="class in com.sun.lwuit">Component</A> body,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
long timeout,
<A HREF="../../../com/sun/lwuit/animations/Transition.html" title="class in com.sun.lwuit.animations">Transition</A> transition)</CODE>
<BR>
Shows a modal dialog with the given component as its "body" placed in the center.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, java.lang.String, com.sun.lwuit.Command[], int, com.sun.lwuit.Image, long)">show</A></B>(java.lang.String title,
java.lang.String text,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
long timeout)</CODE>
<BR>
Shows a modal prompt dialog with the given title and text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, java.lang.String, com.sun.lwuit.Command[], int, com.sun.lwuit.Image, long, com.sun.lwuit.animations.Transition)">show</A></B>(java.lang.String title,
java.lang.String text,
<A HREF="../../../com/sun/lwuit/Command.html" title="class in com.sun.lwuit">Command</A>[] cmds,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
long timeout,
<A HREF="../../../com/sun/lwuit/animations/Transition.html" title="class in com.sun.lwuit.animations">Transition</A> transition)</CODE>
<BR>
Shows a modal prompt dialog with the given title and text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, java.lang.String, int, com.sun.lwuit.Image, java.lang.String, java.lang.String)">show</A></B>(java.lang.String title,
java.lang.String text,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
java.lang.String okText,
java.lang.String cancelText)</CODE>
<BR>
Shows a modal prompt dialog with the given title and text.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/lwuit/Dialog.html#show(java.lang.String, java.lang.String, int, com.sun.lwuit.Image, java.lang.String, java.lang.String, long)">show</A></B>(java.lang.String title,
java.lang.String text,
int type,
<A HREF="../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> icon,
java.lang.String okText,
java.lang.String cancelText,
long timeout)</CODE>
<BR>
Shows a modal prompt dialog with the given title and text.</TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?