📄 resourcedictionary.html
字号:
<DD>Sets the source locale. Its should always be en locale in which case the resource filename is ended without any locale name. This method does noting.<DD><DL></DL></DD></DL><HR><A NAME="setTarget(java.util.Locale)"><!-- --></A><H3>setTarget</H3><PRE>public void <B>setTarget</B>(java.util.Locale targetLocale)</PRE><DL><DD>Sets the target locale.<DD><DL></DL></DD></DL><HR><A NAME="getSource()"><!-- --></A><H3>getSource</H3><PRE>public java.util.Locale <B>getSource</B>()</PRE><DL><DD>Gets the source locale - Locale.ENGLISH.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#getSource()">getSource</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="getTarget()"><!-- --></A><H3>getTarget</H3><PRE>public java.util.Locale <B>getTarget</B>()</PRE><DL><DD>Gets the target locale.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#getTarget()">getTarget</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Tests if this dictionary has no keys (meanings).<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#isEmpty()">isEmpty</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="elements()"><!-- --></A><H3>elements</H3><PRE>public java.util.Enumeration <B>elements</B>()</PRE><DL><DD>Returns an enumeration of the meanings in this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#elements()">elements</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="keys()"><!-- --></A><H3>keys</H3><PRE>public java.util.Enumeration <B>keys</B>()</PRE><DL><DD>Returns an enumeration of the keys in this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#keys()">keys</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="instantInsert(java.lang.String, java.util.Vector, boolean)"><!-- --></A><H3>instantInsert</H3><PRE>public static boolean <B>instantInsert</B>(java.lang.String key, java.util.Vector sortedkeys, boolean sort)</PRE><DL><DD>2-divided insert.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the item to be inserted.<DD><CODE>sortedkeys</CODE> - the item is to inserted into this vector.<DD><CODE>sort</CODE> - true if sorting when insert.<DT><B>Returns:</B><DD>false, if value already exists and no insert.</DL></DD></DL><HR><A NAME="get(java.lang.String)"><!-- --></A><H3>get</H3><PRE>public java.lang.String[] <B>get</B>(java.lang.String key)</PRE><DL><DD>Looks up in the dictionary. Returns the meanings to which the key is mapped in this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#get(java.lang.String)">get</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Parameters:</B><DD><CODE>key</CODE> - any string.<DT><B>Returns:</B><DD>null if not found.</DL></DD></DL><HR><A NAME="select(java.lang.String, int)"><!-- --></A><H3>select</H3><PRE>public java.lang.String <B>select</B>(java.lang.String key, int index)</PRE><DL><DD>Returns the meaning with the index to all meanings to which the key is mapped. If index is less than zero, return the 1st meaning. If the index is larger than meaning count, return the last meaning.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#select(java.lang.String, int)">select</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Parameters:</B><DD><CODE>key</CODE> - the text which we return its meaning.<DD><CODE>index</CODE> - the number <index> meaning of the cadidates, starts from 0.<DT><B>Returns:</B><DD>null if no meaning is available.</DL></DD></DL><HR><A NAME="put(java.lang.String, java.lang.String[])"><!-- --></A><H3>put</H3><PRE>public java.lang.String[] <B>put</B>(java.lang.String key, java.lang.String[] meanings)</PRE><DL><DD>Maps the specified key to the specified meaning in this dictionary. Only valid string(not null and not blank) can be used as key. Only valid strings(not null and not blank) can be used as meanings. Will override the existing key, if any.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#put(java.lang.String, java.lang.String[])">put</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>the meanings successfully mapped, otherwise null.</DL></DD></DL><HR><A NAME="getMeaningCount(java.lang.String)"><!-- --></A><H3>getMeaningCount</H3><PRE>public int <B>getMeaningCount</B>(java.lang.String key)</PRE><DL><DD>Returns the number of meanings to which the key is mapped in this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#getMeaningCount(java.lang.String)">getMeaningCount</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>-1 if no key found.</DL></DD></DL><HR><A NAME="append(java.lang.String, java.lang.String)"><!-- --></A><H3>append</H3><PRE>public java.lang.String <B>append</B>(java.lang.String key, java.lang.String meaning)</PRE><DL><DD>Append the specified key to the specified meaning in this dictionary. Only valid string(not null and not blank) can be used as key. Only valid string(not null and not blank) can be used as meaning.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#append(java.lang.String, java.lang.String)">append</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>the meaning appended on success; otherwise return null.</DL></DD></DL><HR><A NAME="remove(java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public java.lang.String[] <B>remove</B>(java.lang.String key)</PRE><DL><DD>Removes the key (and all its meanings) from this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#remove(java.lang.String)">remove</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>the meanings removed. null if it is not updatable or on errors.</DL></DD></DL><HR><A NAME="remove(java.lang.String, java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public java.lang.String <B>remove</B>(java.lang.String key, java.lang.String meaning)</PRE><DL><DD>Removes the meaning of the key from this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#remove(java.lang.String, java.lang.String)">remove</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>the meanings removed. null if it is not updatable or on errors.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Number of keys in this dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#size()">size</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="getResources()"><!-- --></A><H3>getResources</H3><PRE>public java.util.Vector <B>getResources</B>()</PRE><DL><DD>Gets the resource files used.<DD><DL><DT><B>Returns:</B><DD>full filename string in the vector.</DL></DD></DL><HR><A NAME="setCaseSensitive(boolean)"><!-- --></A><H3>setCaseSensitive</H3><PRE>public void <B>setCaseSensitive</B>(boolean caseSense)</PRE><DL><DD>Sets case sensitive lookup or not. Method N/A for this kind of dictionary.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#setCaseSensitive(boolean)">setCaseSensitive</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="isCaseSensitive()"><!-- --></A><H3>isCaseSensitive</H3><PRE>public boolean <B>isCaseSensitive</B>()</PRE><DL><DD>Case sensitive lookup or not.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#isCaseSensitive()">isCaseSensitive</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A><DT><B>Returns:</B><DD>true, always case sensitive.</DL></DD></DL><HR><A NAME="getDictionaryInfo()"><!-- --></A><H3>getDictionaryInfo</H3><PRE>public java.util.Properties <B>getDictionaryInfo</B>()</PRE><DL><DD>Gets the dictionary's information, eg. description, etc.. May take some time to finish.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#getDictionaryInfo()">getDictionaryInfo</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Overriden should normally returns the dictionary's name.<DD><DL><DT><B>Returns:</B><DD>the name of the dictionary - "Resource Dictionary".<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Gets the dictionary name - "Resource Dictionary" by default.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html#getName()">getName</A> in interface <A HREF="../../../../../com/sun/tdc/toolkit/api/Dictionary.html">Dictionary</A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT ID="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" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/tdc/util/dictionary/En2CnDictionary.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/util/dictionary/UserDictionary.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ResourceDictionary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -