hypertext.html
来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 435 行 · 第 1/2 页
HTML
435 行
<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="HyperText(Style)"><!-- --></A><H3>HyperText</H3><PRE> <B>HyperText</B>(<A HREF="../../widsets/api/Style.html" title="class in ">Style</A> style)</PRE><DL><DD>Creates a new HyperText.<P><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - Style for this hyper text</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="clear()"><!-- --></A><H3>clear</H3><PRE> void <B>clear</B>()</PRE><DL><DD>Clears the contents of this hyper text component.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../widsets/api/Component.html#clear()">clear</A></CODE> in class <CODE><A HREF="../../widsets/api/Component.html" title="class in ">Component</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="appendText(Style, String)"><!-- --></A><H3>appendText</H3><PRE> void <B>appendText</B>(<A HREF="../../widsets/api/Style.html" title="class in ">Style</A> style, <A HREF="../../widsets/api/String.html" title="class in ">String</A> text)</PRE><DL><DD>Adds a new text span into this hyper text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - Text style<DD><CODE>text</CODE> - Text to append</DL></DD></DL><HR><A NAME="appendLink(Style, String, Object)"><!-- --></A><H3>appendLink</H3><PRE> void <B>appendLink</B>(<A HREF="../../widsets/api/Style.html" title="class in ">Style</A> style, <A HREF="../../widsets/api/String.html" title="class in ">String</A> text, <A HREF="../../widsets/api/Object.html" title="class in ">Object</A> data)</PRE><DL><DD>Adds a new link span into this hyper text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>style</CODE> - Text style. Focused variant is used when link is focused.<DD><CODE>text</CODE> - Text to append<DD><CODE>data</CODE> - Non-null data attachment. When link is "opened" the <A HREF="../../widsets/api/API.html#OPEN_LINK"><CODE>OPEN_LINK</CODE></A> action is sent to <A HREF="../../widsets/api/Script.html#actionPerformed(Shell, Component, int)"><CODE>Script.actionPerformed(Shell, Component, int)</CODE></A> or <A HREF="../../widsets/api/ActionCallback.html" title="interface in "><CODE>ActionCallback</CODE></A> along with <A HREF="../../widsets/api/Component.html" title="class in "><CODE>Component</CODE></A> that contains the specified data.</DL></DD></DL><HR><A NAME="appendMarkup(Map, String)"><!-- --></A><H3>appendMarkup</H3><PRE> void <B>appendMarkup</B>(<A HREF="../../widsets/api/Map.html" title="class in ">Map</A> styles, <A HREF="../../widsets/api/String.html" title="class in ">String</A> markup)</PRE><DL><DD><p>Appends more text into this hyper text using tagged format. Only simple tags may appear on markup (no support for attributes). All text outside tags is ignored. </p> <p>Example text: <pre> <h1>Title</h1> <p> Quick brown <b>fox</b> jumps over lazy <a DOG1>dog</a>! </p> </pre> </p> <p>Any tag will become a link if the name of tag is followed by space character, in which case the rest of tag body is considered as link id string. This id string can be retrieved from source <A HREF="../../widsets/api/Component.html" title="class in "><CODE>Component</CODE></A> using <A HREF="../../widsets/api/Component.html#getData()"><CODE>Component.getData()</CODE></A> at <A HREF="../../widsets/api/Script.html#actionPerformed(Shell, Component, int)"><CODE>Script.actionPerformed(Shell, Component, int)</CODE></A> or <A HREF="../../widsets/api/ActionCallback.html" title="interface in "><CODE>ActionCallback</CODE></A> callbacks. The action id of notifying link "opening" is <A HREF="../../widsets/api/API.html#OPEN_LINK"><CODE>OPEN_LINK</CODE></A>. </p> <p> Links on this HyperText appear child <A HREF="../../widsets/api/Component.html" title="class in "><CODE>Component</CODE></A>s; <A HREF="../../widsets/api/Component.html#get(int)"><CODE>Component.get(int)</CODE></A> and <A HREF="../../widsets/api/Component.html#size()"><CODE>Component.size()</CODE></A> can be used to access them. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>styles</CODE> - Collection of text styles (<A HREF="../../widsets/api/String.html" title="class in "><CODE>String</CODE></A> to <A HREF="../../widsets/api/Style.html" title="class in "><CODE>Style</CODE></A> mappings). Mappings must match the tags used on markup, for instance, in above example there must be <code>"h1"</code>, <code>"p"</code>, <code>"a"</code> and <code>"b"</code> tags.<DD><CODE>markup</CODE> - Content to add in tagged format.<DT><B>See Also:</B><DD><A HREF="../../widsets/api/HyperText.html#appendMarkup(String, String)"><CODE>appendMarkup(String, String)</CODE></A></DL></DD></DL><HR><A NAME="appendMarkup(String, String)"><!-- --></A><H3>appendMarkup</H3><PRE> void <B>appendMarkup</B>(<A HREF="../../widsets/api/String.html" title="class in ">String</A> stylePrefix, <A HREF="../../widsets/api/String.html" title="class in ">String</A> markup)</PRE><DL><DD><p>Appends more text into this hyper text using tagged format. Only simple tags may appear on markup (no support for attributes). All text outside tags is ignored. Styles are taken directly from widget stylesheet, optionally prefixed with specified string. </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>stylePrefix</CODE> - Optional prefix fo append to tags to form name of style<DD><CODE>markup</CODE> - Content to add in tagged format.<DT><B>See Also:</B><DD><A HREF="../../widsets/api/HyperText.html#appendMarkup(Map, String)"><CODE>appendMarkup(Map, String)</CODE></A></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/Graphics.html" title="class in "><B>PREV CLASS</B></A> <A HREF="../../widsets/api/Image.html" title="class in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?widsets/api/HyperText.html" target="_top"><B>FRAMES</B></A> <A HREF="HyperText.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 + -
显示快捷键?