shell.html
来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 479 行 · 第 1/2 页
HTML
479 行
<!-- ========= 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="Shell(Component)"><!-- --></A><H3>Shell</H3><PRE> <B>Shell</B>(<A HREF="../../widsets/api/Component.html" title="class in ">Component</A> child)</PRE><DL><DD>Creates a new Shell with specified component as content.<P><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - Content of shell</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="focused()"><!-- --></A><H3>focused</H3><PRE> <A HREF="../../widsets/api/Component.html" title="class in ">Component</A> <B>focused</B>()</PRE><DL><DD>Returns the currently focused component on shell. Only single component on component tree can receive focus.<P><DD><DL><DT><B>Returns:</B><DD>focused component, or <code>null</code> if no components are currently focused</DL></DD></DL><HR><A NAME="setFocused(Component)"><!-- --></A><H3>setFocused</H3><PRE> void <B>setFocused</B>(<A HREF="../../widsets/api/Component.html" title="class in ">Component</A> focused)</PRE><DL><DD>Sets the focused component. Only single component on component tree can receive focus.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>focused</CODE> - Component to receive focus</DL></DD></DL><HR><A NAME="computeLayout()"><!-- --></A><H3>computeLayout</H3><PRE> void <B>computeLayout</B>()</PRE><DL><DD>Computes the actual position and dimensions of every component on the screen. Layout computation occurs automatically prior the Shell is painted to screen. <p>Sometimes it is necessary to know the position or dimensions of Components before the Shell is made visible and this method is provided to serve that purpose. Computation is potentionally a slow operation and it should only be done when absolutely necessary.<P><DD><DL></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>Sets the action callback for this Shell. 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><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="setMenuHandler(MenuCallback)"><!-- --></A><H3>setMenuHandler</H3><PRE> void <B>setMenuHandler</B>(<A HREF="../../widsets/api/MenuCallback.html" title="interface in ">MenuCallback</A> callback)</PRE><DL><DD>Sets the menu callback for this Shell. Callback is used instead of generic <A HREF="../../widsets/api/Script.html#getMenu(Shell, Component)"><CODE>Script.getMenu(Shell, Component)</CODE></A>.<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="setSoftKeyHandler(SoftKeyCallback)"><!-- --></A><H3>setSoftKeyHandler</H3><PRE> void <B>setSoftKeyHandler</B>(<A HREF="../../widsets/api/SoftKeyCallback.html" title="interface in ">SoftKeyCallback</A> callback)</PRE><DL><DD>Sets the soft key callback for this Shell. Callback is used instead of generic <A HREF="../../widsets/api/Script.html#getSoftKey(Shell, Component, int)"><CODE>Script.getSoftKey(Shell, Component, int)</CODE></A>.<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="setKeyHandler(KeyCallback)"><!-- --></A><H3>setKeyHandler</H3><PRE> void <B>setKeyHandler</B>(<A HREF="../../widsets/api/KeyCallback.html" title="interface in ">KeyCallback</A> callback)</PRE><DL><DD>Sets the key callback for this Shell. Callback is used instead of generic <A HREF="../../widsets/api/Script.html#keyAction(Component, int, int)"><CODE>Script.keyAction(Component, int, int)</CODE></A>.<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="updateMenu()"><!-- --></A><H3>updateMenu</H3><PRE> void <B>updateMenu</B>()</PRE><DL><DD>Updates <code>SOFTKEY_OK</code>, <code>SOFTKEY_MIDDLE</code> and <code>SOFTKEY_BACK</code> assosiations. The <A HREF="../../widsets/api/Script.html#getSoftKey(Shell, Component, int)"><CODE>Script.getSoftKey(Shell, Component, int)</CODE></A> callback is used to obtain the MenuItems. <p>This method does not call the <A HREF="../../widsets/api/API.html#flushScreen(boolean)"><CODE>flushScreen(boolean)</CODE></A> automatically so it might be necessary to call that function as well.</p> <p>Key associations are assigned when Shell is pushed on screen, but this method is provided in case the they need to be changed on the fly.</p><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/ServiceCallback.html" title="interface in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/SoftKeyCallback.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/Shell.html" target="_top"><B>FRAMES</B></A> <A HREF="Shell.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 + -
显示快捷键?