⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 startmidlet.html

📁 一个手机客户端例子。需jdk1.4和wtk2.2以上环境
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</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="../jmc/StartMidlet.html#commandActionRosterDetails(Command)">commandActionRosterDetails</A></B>(Command&nbsp;id)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../jmc/StartMidlet.html#commandActionSubscription(Command)">commandActionSubscription</A></B>(Command&nbsp;id)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../jmc/StartMidlet.html#commandActionWaitConnect(Command)">commandActionWaitConnect</A></B>(Command&nbsp;id)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../jmc/StartMidlet.html#destroyApp(boolean)">destroyApp</A></B>(boolean&nbsp;unconditional)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Form</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiChoose(java.lang.String)">getGuiChoose</A></B>(java.lang.String&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the form to accept or deny a subscription request from another contact or a multichat invitation</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiConversation()">getGuiConversation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the gui for a chat</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Alert</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiIntroScreen()">getGuiIntroScreen</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the intro logo and author info</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Form</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiJudMenu()">getGuiJudMenu</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the gui for jud management</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiOfflineMenu()">getGuiOfflineMenu</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the first menu (offline)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiOnlineMenu()">getGuiOnlineMenu</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the main menu (online)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Form</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiOtherOptions()">getGuiOtherOptions</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show other options of the online menu</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiParams()">getGuiParams</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the form to insert user jid information</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiRoomList()">getGuiRoomList</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display existing conversations and the form to join in a new chat room</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiRosterDetails()">getGuiRosterDetails</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change a current roster info or create a new one</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiRosterItem()">getGuiRosterItem</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Show the details of a selected roster item</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;Displayable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#getGuiWaitConnect()">getGuiWaitConnect</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wait for connecting</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../jmc/StartMidlet.html#handlePushActivation()">handlePushActivation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determine if activated due to inbound connection and  if so dispatch a PushProcessor to handle incoming  connection(s).</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="../jmc/StartMidlet.html#pauseApp()">pauseApp</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../jmc/StartMidlet.html#setCurrentDisplay()">setCurrentDisplay</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method to set the display</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="../jmc/StartMidlet.html#startApp()">startApp</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="cm"><!-- --></A><H3>
cm</H3>
<PRE>
public <A HREF="../jmc/connection/CommunicationManager.html" title="class in jmc.connection">CommunicationManager</A> <B>cm</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="contacts"><!-- --></A><H3>
contacts</H3>
<PRE>
java.util.Enumeration <B>contacts</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="contacts_list"><!-- --></A><H3>
contacts_list</H3>
<PRE>
ChoiceGroup <B>contacts_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="conv_list"><!-- --></A><H3>
conv_list</H3>
<PRE>
ChoiceGroup <B>conv_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="CONVERSATION"><!-- --></A><H3>
CONVERSATION</H3>
<PRE>
public static final int <B>CONVERSATION</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.CONVERSATION">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="currentConversation"><!-- --></A><H3>
currentConversation</H3>
<PRE>
<A HREF="../jabber/conversation/Conversation.html" title="class in jabber.conversation">Conversation</A> <B>currentConversation</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="currentjid"><!-- --></A><H3>
currentjid</H3>
<PRE>
<A HREF="../jabber/roster/Jid.html" title="class in jabber.roster">Jid</A> <B>currentjid</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="display"><!-- --></A><H3>
display</H3>
<PRE>
public Display <B>display</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="font"><!-- --></A><H3>
font</H3>
<PRE>
private Font <B>font</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="history"><!-- --></A><H3>
history</H3>
<PRE>
boolean <B>history</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="infopool"><!-- --></A><H3>
infopool</H3>
<PRE>
java.util.Hashtable <B>infopool</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="internal_state"><!-- --></A><H3>
internal_state</H3>
<PRE>
public int <B>internal_state</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="INVITATION"><!-- --></A><H3>
INVITATION</H3>
<PRE>
public static final int <B>INVITATION</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.INVITATION">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="JUD"><!-- --></A><H3>
JUD</H3>
<PRE>
public static final int <B>JUD</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.JUD">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="jud_list"><!-- --></A><H3>
jud_list</H3>
<PRE>
ChoiceGroup <B>jud_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="listener"><!-- --></A><H3>
listener</H3>
<PRE>
private <A HREF="../jmc/MidletEventListener.html" title="class in jmc">MidletEventListener</A> <B>listener</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="MULTI_CHAT"><!-- --></A><H3>
MULTI_CHAT</H3>
<PRE>
public static final int <B>MULTI_CHAT</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.MULTI_CHAT">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="OFFLINE"><!-- --></A><H3>
OFFLINE</H3>
<PRE>
public static final int <B>OFFLINE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.OFFLINE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="offLineMenu"><!-- --></A><H3>
offLineMenu</H3>
<PRE>
ChoiceGroup <B>offLineMenu</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="ONLINE"><!-- --></A><H3>
ONLINE</H3>
<PRE>
public static final int <B>ONLINE</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.ONLINE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="openrooms"><!-- --></A><H3>
openrooms</H3>
<PRE>
ChoiceGroup <B>openrooms</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="OPTIONS"><!-- --></A><H3>
OPTIONS</H3>
<PRE>
public static final int <B>OPTIONS</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.OPTIONS">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="options_list"><!-- --></A><H3>
options_list</H3>
<PRE>
ChoiceGroup <B>options_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="PARAMS"><!-- --></A><H3>
PARAMS</H3>
<PRE>
public static final int <B>PARAMS</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.PARAMS">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="roster"><!-- --></A><H3>
roster</H3>
<PRE>
java.util.Vector <B>roster</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="ROSTER"><!-- --></A><H3>
ROSTER</H3>
<PRE>
public static final int <B>ROSTER</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.ROSTER">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="ROSTER_DETAILS"><!-- --></A><H3>
ROSTER_DETAILS</H3>
<PRE>
public static final int <B>ROSTER_DETAILS</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.ROSTER_DETAILS">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="ssl_list"><!-- --></A><H3>
ssl_list</H3>
<PRE>
ChoiceGroup <B>ssl_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="static_menu"><!-- --></A><H3>
static_menu</H3>
<PRE>
ChoiceGroup <B>static_menu</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="status_list"><!-- --></A><H3>
status_list</H3>
<PRE>
ChoiceGroup <B>status_list</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="SUBSCRIPTION"><!-- --></A><H3>
SUBSCRIPTION</H3>
<PRE>
public static final int <B>SUBSCRIPTION</B></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#jmc.StartMidlet.SUBSCRIPTION">Constant Field Values</A></DL>
</DL>
<HR>

⌨️ 快捷键说明

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