<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.ListResourceBundle
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.Hashtable.html#_top_">Previous</a>  <a href="java.util.Locale.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.ListResourceBundle
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.util.ResourceBundle.html#_top_">java.util.ResourceBundle</a>
           |
           +----java.util.ListResourceBundle
</pre>
<hr>
<dl>
  <dt> public abstract class <b>ListResourceBundle</b>
  <dt> extends <a href="java.util.ResourceBundle.html#_top_">ResourceBundle</a>
</dl>
<code>ListResourceBundle</code> is a abstract subclass of
 <code>ResourceBundle</code> that manages resources for a locale
 in a convenient and easy to use list. See <code>ResourceBundle</code> for
 more information about resource bundles in general.
 <P>
 Subclasses must override <code>getContents</code> and provide an array,
 where each item in the array is a pair of objects.
 The first element of each pair is a <code>String</code> key, and the second
 is the value associated with that key.
 <p>
 In the following example, the keys are of the form "s1"... The actual
 keys are entirely up to your choice, so long as they are the same as
 the keys you use in your program to retrieve the objects from the bundle.
 Keys are case-sensitive. <code>MyResource</code> is the default version
 of the bundle family, and <code>MyResource_fr</code> is the french version:
 <blockquote>
 <pre>
 //====================
 class MyResource extends ListResourceBundle {
  public Object[][] getContents() {
      return contents;
  }
  static final Object[][] contents = {
  // LOCALIZE THIS
      {"s1", "3"},        // starting value in choice field
      {"s2", "MyDisk"},    // starting value in string field
      {"s3", "3 Mar 96"}, // starting value in date field
      {"s4", "The disk '{1}' contained {0} on {2}."}, // initial pattern
      {"s5", "0"},        // first choice number
      {"s6", "no files"}, // first choice value
      {"s7", "1"},        // second choice number
      {"s8", "one file"}, // second choice value
      {"s9", "2"},        // third choice number
      {"s10", "{0}|3 files"}, // third choice value
      {"s11", "format threw an exception: {0}"},  // generic exception message
      {"s12", "ERROR"},   // what to show in field in case of error
      {"s14", "Result"},  // label for formatted stuff
      {"s13", "Dialog"},  // standard font
      {"s15", "Pattern"}, // label for standard pattern
      {"s16", new Dimension(1,5)} // real object, not just string
  // END OF MATERIAL TO LOCALIZE
  };
 }
 //====================
 class MyResource_fr  extends ListResourceBundle {
  public Object[][] getContents() {
      return contents;
}
  static final Object[][] contents = {
  // LOCALIZE THIS
      {"s1", "3"},        // starting value in choice field
      {"s2", "MonDisk"},  // starting value in string field
      {"s3", "3 Mar 96"}, // starting value in date field
      {"s4", "Le disk '{1}' a {0} a {2}."},   // initial pattern
      {"s5", "0"},        // first choice number
      {"s6", "pas de files"}, // first choice value
      {"s7", "1"},        // second choice number
      {"s8", "une file"}, // second choice value
      {"s9", "2"},        // third choice number
      {"s10", "{0}|3 files"}, // third choice value
      {"s11", "Le format a jete une exception: {0}"}, // generic exception message
      {"s12", "ERROR"},   // what to show in field in case of error
      {"s14", "Resulte"}, // label for formatted stuff
      {"s13", "Dialogue"},    // standard font
      {"s15", "Pattern"}, // label for standard pattern
      {"s16", new Dimension(1,3)} // real object, not just string
  // END OF MATERIAL TO LOCALIZE
  };
 }
 </pre>
 </blockquote>
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.ResourceBundle.html#_top_">ResourceBundle</a>, <a href="java.util.PropertyResourceBundle.html#_top_">PropertyResourceBundle</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ListResourceBundle()"><b>ListResourceBundle</b></a>()
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getContents()"><b>getContents</b></a>()
  <dd>  See class description.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getKeys()"><b>getKeys</b></a>()
  <dd>  Implementation of ResourceBundle.getKeys.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#handleGetObject(java.lang.String)"><b>handleGetObject</b></a>(String)
  <dd>  Override of ResourceBundle, same semantics

</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ListResourceBundle"></a>
<a name="ListResourceBundle()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ListResourceBundle</b>
<pre>
 public ListResourceBundle()
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="handleGetObject(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="handleGetObject"><b>handleGetObject</b></a>
<pre>
 public final <a href="java.lang.Object.html#_top_">Object</a> handleGetObject(<a href="java.lang.String.html#_top_">String</a> key)
</pre>
<dl>
  <dd> Override of ResourceBundle, same semantics
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.ResourceBundle.html#handleGetObject(java.lang.String)">handleGetObject</a> in class <a href="java.util.ResourceBundle.html#_top_">ResourceBundle</a>
  </dl></dd>
</dl>
<a name="getKeys()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getKeys"><b>getKeys</b></a>
<pre>
 public <a href="java.util.Enumeration.html#_top_">Enumeration</a> getKeys()
</pre>
<dl>
  <dd> Implementation of ResourceBundle.getKeys.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.util.ResourceBundle.html#getKeys()">getKeys</a> in class <a href="java.util.ResourceBundle.html#_top_">ResourceBundle</a>
  </dl></dd>
</dl>
<a name="getContents()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getContents"><b>getContents</b></a>
<pre>
 protected abstract <a href="java.lang.Object.html#_top_">Object</a>[][] getContents()
</pre>
<dl>
  <dd> See class description.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="java.util.Hashtable.html#_top_">Previous</a>  <a href="java.util.Locale.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
