prompt.html
来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 380 行
HTML
380 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_11) on Tue Oct 23 19:38:42 EEST 2007 --><TITLE>Prompt (Widsets API)</TITLE><META NAME="keywords" CONTENT="Prompt class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="Prompt (Widsets API)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../widsets/api/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../widsets/api/Progress.html" title="class in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/Script.html" title="interface in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?widsets/api/Prompt.html" target="_top"><B>FRAMES</B></A> <A HREF="Prompt.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1"></FONT><BR>Class Prompt</H2><PRE> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../widsets/api/Object.html" title="class in ">Object</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>Prompt</B></PRE><HR><DL><DT><PRE> class <B>Prompt</B><DT>extends <A HREF="../../widsets/api/Object.html" title="class in ">Object</A></DL></PRE><P>This class represents a simple popup with text, optional image and optional progress bar.<P><P><HR><P><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_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>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../widsets/api/Prompt.html#Prompt(Image, String, MenuItem, MenuItem)">Prompt</A></B>(<A HREF="../../widsets/api/Image.html" title="class in ">Image</A> icon, <A HREF="../../widsets/api/String.html" title="class in ">String</A> message, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softOK, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softBack)</CODE><BR> Creates a new popup.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../widsets/api/Prompt.html#Prompt(Image, String, MenuItem, MenuItem, MenuItem)">Prompt</A></B>(<A HREF="../../widsets/api/Image.html" title="class in ">Image</A> icon, <A HREF="../../widsets/api/String.html" title="class in ">String</A> message, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softOK, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softMiddle, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softBack)</CODE><BR> Creates a new popup.</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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/Prompt.html#pop()">pop</A></B>()</CODE><BR> Removes this prompt from screen stack.</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="../../widsets/api/Prompt.html#push()">push</A></B>()</CODE><BR> Push this prompt on top of screen stack.</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="../../widsets/api/Prompt.html#setActionHandler(ActionCallback)">setActionHandler</A></B>(<A HREF="../../widsets/api/ActionCallback.html" title="interface in ">ActionCallback</A> callback)</CODE><BR> Sets the action callback function for this Prompt.</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="../../widsets/api/Prompt.html#setProgress(int, int)">setProgress</A></B>(int current, int max)</CODE><BR> Sets current state of progress bar.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_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 <A HREF="../../widsets/api/Object.html" title="class in ">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../widsets/api/Object.html#toString()">toString</A>, <A HREF="../../widsets/api/Object.html#equals(Object)">equals</A>, <A HREF="../../widsets/api/Object.html#hashCode()">hashCode</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from </B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <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="Prompt(Image, String, MenuItem, MenuItem)"><!-- --></A><H3>Prompt</H3><PRE> <B>Prompt</B>(<A HREF="../../widsets/api/Image.html" title="class in ">Image</A> icon, <A HREF="../../widsets/api/String.html" title="class in ">String</A> message, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softOK, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softBack)</PRE><DL><DD>Creates a new popup.<P><DL><DT><B>Parameters:</B><DD><CODE>icon</CODE> - Icon to show, may be <code>null</code><DD><CODE>message</CODE> - Message to show<DD><CODE>softOK</CODE> - Action for OK soft key, may be <code>null</code><DD><CODE>softBack</CODE> - Action for BACK soft key, may be <code>null</code></DL></DL><HR><A NAME="Prompt(Image, String, MenuItem, MenuItem, MenuItem)"><!-- --></A><H3>Prompt</H3><PRE> <B>Prompt</B>(<A HREF="../../widsets/api/Image.html" title="class in ">Image</A> icon, <A HREF="../../widsets/api/String.html" title="class in ">String</A> message, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softOK, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softMiddle, <A HREF="../../widsets/api/MenuItem.html" title="class in ">MenuItem</A> softBack)</PRE><DL><DD>Creates a new popup.<P><DL><DT><B>Parameters:</B><DD><CODE>icon</CODE> - Icon to show, may be <code>null</code><DD><CODE>message</CODE> - Message to show<DD><CODE>softOK</CODE> - Action for OK soft key, may be <code>null</code><DD><CODE>softMiddle</CODE> - Action for MIDDLE soft key, may be <code>null</code><DD><CODE>softBack</CODE> - Action for BACK soft key, may be <code>null</code></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="setProgress(int, int)"><!-- --></A><H3>setProgress</H3><PRE> void <B>setProgress</B>(int current, int max)</PRE><DL><DD><p> Sets current state of progress bar. When this method is called for the first time the progress bar is added to the prompt. </p> <p> Indefinitive, continuously running progress bar is created with <code>setProgress(0,0)</code> call. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>current</CODE> - Current progress between <code>[0..max[</code><DD><CODE>max</CODE> - Maximum progress, use zero for indefinite progress</DL></DD></DL><HR><A NAME="setActionHandler(ActionCallback)"><!-- --></A><H3>setActionHandler</H3><PRE> void <B>setActionHandler</B>(<A HREF="../../widsets/api/ActionCallback.html" title="interface in ">ActionCallback</A> callback)</PRE><DL><DD><p> Sets the action callback function for this Prompt. The callback is used instead of generic <A HREF="../../widsets/api/Script.html#actionPerformed(Shell, Component, int)"><CODE>Script.actionPerformed(Shell, Component, int)</CODE></A>. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>callback</CODE> - Callback to use or <code>null</code> to use the generic callback<DT><B>See Also:</B><DD><a href="package-summary.html#callback">Callbacks</a></DL></DD></DL><HR><A NAME="push()"><!-- --></A><H3>push</H3><PRE> void <B>push</B>()</PRE><DL><DD>Push this prompt on top of screen stack.<P><DD><DL></DL></DD></DL><HR><A NAME="pop()"><!-- --></A><H3>pop</H3><PRE> void <B>pop</B>()</PRE><DL><DD>Removes this prompt from screen stack.<P><DD><DL></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="../../widsets/api/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../widsets/api/Progress.html" title="class in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/Script.html" title="interface in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?widsets/api/Prompt.html" target="_top"><B>FRAMES</B></A> <A HREF="Prompt.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?