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

📄 api.html

📁 维信SDK文档。源码要求为至少5个C或Java源码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#abs(long)">abs</A></B>(long&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the absolute value of an <code>long</code> value.</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="../../widsets/api/API.html#call(Object, String, String, Value)">call</A></B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;state,     <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;service,     <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;action,     <A HREF="../../widsets/api/Value.html" title="class in ">Value</A>&nbsp;argument)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calls a server side service.</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="../../widsets/api/API.html#call(Object, String, String, Value, SuccessCallback, FailureCallback)">call</A></B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;state,     <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;service,     <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;action,     <A HREF="../../widsets/api/Value.html" title="class in ">Value</A>&nbsp;argument,     <A HREF="../../widsets/api/SuccessCallback.html" title="interface in ">SuccessCallback</A>&nbsp;onSuccess,     <A HREF="../../widsets/api/FailureCallback.html" title="interface in ">FailureCallback</A>&nbsp;onFailure)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calls a server side service.</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="../../widsets/api/API.html#call(Object, String, Value, SuccessCallback, FailureCallback)">call</A></B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;state,     <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;serviceVersionAction,     <A HREF="../../widsets/api/Value.html" title="class in ">Value</A>&nbsp;argument,     <A HREF="../../widsets/api/SuccessCallback.html" title="interface in ">SuccessCallback</A>&nbsp;onSuccess,     <A HREF="../../widsets/api/FailureCallback.html" title="interface in ">FailureCallback</A>&nbsp;onFailure)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calls a server side service anonymously.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#cos(int)">cos</A></B>(int&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the trigonometric cosine of an angle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/View.html" title="class in ">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#createMaximizedView(String, Object)">createMaximizedView</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,                    <A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../widsets/api/API.html#createView(String, Object)"><CODE>createView(String, Object)</CODE></A> instead</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/View.html" title="class in ">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#createMinimizedView(String, Object)">createMinimizedView</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,                    <A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;context)</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;<A HREF="../../widsets/api/View.html" title="class in ">View</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#createView(String, Object)">createView</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name,           <A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;context)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a view according to view specification on  <code>widget.xml</code> file of this widget.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#currentTimeMillis()">currentTimeMillis</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current time in milliseconds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#decodeHex(String)">decodeHex</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;string)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Decodes specified string into ByteArray, assuming it contains hexadecimal notation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/String.html" title="class in ">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#decodeString(ByteArray, String)">decodeString</A></B>(<A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A>&nbsp;array,             <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;encoding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new String by converting the specified array of bytes  using the specified character encoding.</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="../../widsets/api/API.html#dumpTree(Component)">dumpTree</A></B>(<A HREF="../../widsets/api/Component.html" title="class in ">Component</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints component-tree of given component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/String.html" title="class in ">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#encodeHex(ByteArray)">encodeHex</A></B>(<A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A>&nbsp;array)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes specified array into hexadecimal notation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#encodeString(String, String)">encodeString</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;string,             <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;encoding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the specified String into bytes according to the specified  character encoding, storing the result into a new byte array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/String.html" title="class in ">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#encodeURL(String)">encodeURL</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;string)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Encodes the specified string using url encoding.</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="../../widsets/api/API.html#flushScreen(boolean)">flushScreen</A></B>(boolean&nbsp;repaintAll)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Repaints whole UI or selected components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/String.html" title="class in ">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#format$(String)">format$</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a formatted string according to C-style %conventions.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/List.html" title="class in ">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getAvailableTimeZones()">getAvailableTimeZones</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets all the available IDs supported.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Config.html" title="class in ">Config</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getConfig()">getConfig</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns widget's config.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/TimeZone.html" title="class in ">TimeZone</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getDefaultTimeZone()">getDefaultTimeZone</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the default TimeZone for this host.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;  int,&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getDisplaySize()">getDisplaySize</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns total size of display, including menu-button area.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Font.html" title="class in ">Font</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getFont(int, int, int)">getFont</A></B>(int&nbsp;face,        int&nbsp;style,        int&nbsp;size)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the font object according to given parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Image.html" title="class in ">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getImage(ByteArray)">getImage</A></B>(<A HREF="../../widsets/api/ByteArray.html" title="class in ">ByteArray</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an image from supplied <code>.png</code> encoded data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Image.html" title="class in ">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getImage(Store, String)">getImage</A></B>(<A HREF="../../widsets/api/Store.html" title="class in ">Store</A>&nbsp;store,         <A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an image from <code>.png</code> encoded data stored under given name at Store.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Image.html" title="class in ">Image</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getImage(String)">getImage</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an image according the <code>.png</code> stored on  client <code>.jar</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;  long,&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getMemoryUsage()">getMemoryUsage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current memory usage of system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Flow.html" title="class in ">Flow</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getMinimizedView()">getMinimizedView</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current minimized view of this widget.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/String.html" title="class in ">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getParameter(String)">getParameter</A></B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current value of given parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Map.html" title="class in ">Map</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../widsets/api/API.html#getParameters()">getParameters</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a map containing all parameters for this widget.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../widsets/api/Picture.html" title="class in ">Pictu

⌨️ 快捷键说明

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