JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util
Class SettableListResourceBundle

java.lang.Object
  |
  +--java.util.ResourceBundle
        |
        +--java.util.ListResourceBundle
              |
              +--com.klg.jclass.util.SettableListResourceBundle

public class SettableListResourceBundle
extends ListResourceBundle

Allow a ResourceBundle implementation to be built up programmatically from a series of name/value pairs rather than a static file. It is probably best to add all pairs before passing it off to the class or method that will be operating on it.


Field Summary
protected  Object[][] contents
          Contents array passed back to parent class.
protected  Hashtable properties
          Storage of name/value pairs in format that is easy to add to.
protected  boolean regen
          True if contents needs to be regenerated.
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
SettableListResourceBundle()
          Constructor.
 
Method Summary
 void add(String name, String value)
          Add name/value pair to resource bundle.
 Object[][] getContents()
          Get contents of this reource bundle as an array.
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contents

protected Object[][] contents
Contents array passed back to parent class.


properties

protected Hashtable properties
Storage of name/value pairs in format that is easy to add to.


regen

protected boolean regen
True if contents needs to be regenerated. False if nothing has changed.

Constructor Detail

SettableListResourceBundle

public SettableListResourceBundle()
Constructor. Nothing to do.

Method Detail

add

public void add(String name,
                String value)
Add name/value pair to resource bundle.

Parameters:
name - name part of name/value pair
value - value part of name/value pair

getContents

public Object[][] getContents()
Get contents of this reource bundle as an array. This method supplied the parent class with the information it expect.

Specified by:
getContents in class ListResourceBundle

Copyright © 2004 Quest Software Inc..
All rights reserved.