📄 propertymessageresources.html
字号:
</TABLE>
<A NAME="methods_inherited_from_class_net.sf.navigator.util.MessageResources"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class net.sf.navigator.util.<A HREF="../../../../net/sf/navigator/util/MessageResources.html" title="class in net.sf.navigator.util">MessageResources</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../net/sf/navigator/util/MessageResources.html#escape(java.lang.String)">escape</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getConfig()">getConfig</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getFactory()">getFactory</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object[])">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object[])">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)">getMessage</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessageResources(java.lang.String)">getMessageResources</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#getReturnNull()">getReturnNull</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#isPresent(java.util.Locale, java.lang.String)">isPresent</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#isPresent(java.lang.String)">isPresent</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#localeKey(java.util.Locale)">localeKey</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#log(java.lang.String)">log</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#log(java.lang.String, java.lang.Throwable)">log</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#messageKey(java.util.Locale, java.lang.String)">messageKey</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#messageKey(java.lang.String, java.lang.String)">messageKey</A>, <A HREF="../../../../net/sf/navigator/util/MessageResources.html#setReturnNull(boolean)">setReturnNull</A></CODE></TD>
</TR>
</TABLE>
<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">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="locales"><!-- --></A><H3>
locales</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/HashMap.html" title="class or interface in java.util">HashMap</A> <B>locales</B></PRE>
<DL>
<DD>The set of locale keys for which we have already loaded messages, keyed by the value calculated in <code>localeKey()</code>.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
protected static final org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>The <code>Log</code> instance for this class.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="messages"><!-- --></A><H3>
messages</H3>
<PRE>
protected <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/HashMap.html" title="class or interface in java.util">HashMap</A> <B>messages</B></PRE>
<DL>
<DD>The cache of messages we have accumulated over time, keyed by the value calculated in <code>messageKey()</code>.
<P>
<DL>
</DL>
</DL>
<!-- ========= 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="PropertyMessageResources(net.sf.navigator.util.MessageResourcesFactory, java.lang.String)"><!-- --></A><H3>
PropertyMessageResources</H3>
<PRE>
public <B>PropertyMessageResources</B>(<A HREF="../../../../net/sf/navigator/util/MessageResourcesFactory.html" title="class in net.sf.navigator.util">MessageResourcesFactory</A> factory,
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> config)</PRE>
<DL>
<DD>Construct a new PropertyMessageResources according to the specified parameters.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>factory</CODE> - The MessageResourcesFactory that created us<DD><CODE>config</CODE> - The configuration parameter for this MessageResources</DL>
</DL>
<HR>
<A NAME="PropertyMessageResources(net.sf.navigator.util.MessageResourcesFactory, java.lang.String, boolean)"><!-- --></A><H3>
PropertyMessageResources</H3>
<PRE>
public <B>PropertyMessageResources</B>(<A HREF="../../../../net/sf/navigator/util/MessageResourcesFactory.html" title="class in net.sf.navigator.util">MessageResourcesFactory</A> factory,
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> config,
boolean returnNull)</PRE>
<DL>
<DD>Construct a new PropertyMessageResources according to the specified parameters.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>factory</CODE> - The MessageResourcesFactory that created us<DD><CODE>config</CODE> - The configuration parameter for this MessageResources<DD><CODE>returnNull</CODE> - The returnNull property we should initialize with</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="getMessage(java.util.Locale, java.lang.String)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getMessage</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale,
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key)</PRE>
<DL>
<DD>Returns a text message for the specified key, for the default Locale. A null string result will be returned by this method if no relevant message resource is found for this key or Locale, if the <code>returnNull</code> property is set. Otherwise, an appropriate error message will be returned. <p> This method must be implemented by a concrete subclass.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/sf/navigator/util/MessageResources.html#getMessage(java.util.Locale, java.lang.String)">getMessage</A></CODE> in class <CODE><A HREF="../../../../net/sf/navigator/util/MessageResources.html" title="class in net.sf.navigator.util">MessageResources</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>locale</CODE> - The requested message Locale, or <code>null</code> for the system default Locale<DD><CODE>key</CODE> - The message key to look up
<DT><B>Returns:</B><DD>text message for the specified key and locale</DL>
</DD>
</DL>
<HR>
<A NAME="loadLocale(java.lang.String)"><!-- --></A><H3>
loadLocale</H3>
<PRE>
protected void <B>loadLocale</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> localeKey)</PRE>
<DL>
<DD>Load the messages associated with the specified Locale key. For this implementation, the <code>config</code> property should contain a fully qualified package and resource name, separated by periods, of a series of property resources to be loaded from the class loader that created this PropertyMessageResources instance. This is exactly the same name format you would use when utilizing the <code>java.util.PropertyResourceBundle</code> class.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>localeKey</CODE> - Locale key for the messages to be retrieved</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="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="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="class-use/PropertyMessageResources.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../../net/sf/navigator/util/MessageResourcesFactory.html" title="class in net.sf.navigator.util"><B>PREV CLASS</B></A>
<A HREF="../../../../net/sf/navigator/util/PropertyMessageResourcesFactory.html" title="class in net.sf.navigator.util"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?net/sf/navigator/util/PropertyMessageResources.html" target="_top"><B>FRAMES</B></A>
<A HREF="PropertyMessageResources.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="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>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2003-2007 SourceForge. All Rights Reserved.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -