de.kosi.gui.util
Class CResourceBundle

java.lang.Object
  |
  +--de.kosi.gui.util.CResourceBundle

public class CResourceBundle
extends java.lang.Object

Although this class isn't derived from java.util.ResourceBundle it has nearly the same semantics.


Method Summary
 void addResourceBundleChangeListener(ResourceBundleChangeListener listener)
          Adds a ResourceBundleChangeListener to resourceBundleChangeListeners.
 boolean containsKey(java.lang.String key)
           
 java.awt.Color getBackground(java.lang.String key)
           
static CResourceBundle getBundle(java.lang.String baseName)
           
 java.awt.Color getColor(java.lang.String key)
           
 java.awt.Color getForeground(java.lang.String key)
           
 javax.swing.Icon getIcon(java.lang.String key)
          Gets an icon from this ResourceBundle.
 java.awt.Image getImage(java.lang.String key)
          Gets an image from this ResourceBundle.
 java.util.Locale getLocale()
          Returns the locale for this resource bundle.
 java.lang.Object getObject(java.lang.String key)
          Gets an object from this resource bundle.
 java.lang.String getString(java.lang.String key)
          Gets a string from this resource bundle.
 java.lang.String[] getStringArray(java.lang.String key)
          Gets an array of string from this resource bundle.
 void removeResourceBundleChangeListener(ResourceBundleChangeListener listener)
          Removes a ResourceBundleChangeListener from resourceBundleChangeListeners.
 void setLocale(java.util.Locale locale)
          Loads the ResourceBundle for the given locale.
 void setResources(javax.swing.AbstractButton button)
          Sets the resources of the given dialog.
 void setResources(CAction action)
          Sets the resources of the given action.
 void setResources(CTabbedPane tabbedPane)
          Sets the resources of the given tabbed pane.
 void setResources(javax.swing.JDialog dialog)
          Sets the resources of the given dialog.
 void setResources(javax.swing.JFrame frame)
          Sets the resources of the given dialog.
 void setResources(javax.swing.JInternalFrame internalFrame)
          Sets the resources of the given internal frame.
 void setResources(javax.swing.JLabel label)
          Sets the resources of the given label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLocale

public void setLocale(java.util.Locale locale)
Loads the ResourceBundle for the given locale.
Parameters:
locale - the new locale.

containsKey

public boolean containsKey(java.lang.String key)

getLocale

public java.util.Locale getLocale()
Returns the locale for this resource bundle.

getString

public java.lang.String getString(java.lang.String key)
Gets a string from this resource bundle.
Parameters:
key - see class description.

getStringArray

public java.lang.String[] getStringArray(java.lang.String key)
Gets an array of string from this resource bundle.
Parameters:
key - see class description.

getObject

public java.lang.Object getObject(java.lang.String key)
Gets an object from this resource bundle.
Parameters:
key - see class description.

getIcon

public javax.swing.Icon getIcon(java.lang.String key)
Gets an icon from this ResourceBundle.

getImage

public java.awt.Image getImage(java.lang.String key)
Gets an image from this ResourceBundle.

getBackground

public java.awt.Color getBackground(java.lang.String key)

getForeground

public java.awt.Color getForeground(java.lang.String key)

getColor

public java.awt.Color getColor(java.lang.String key)

addResourceBundleChangeListener

public void addResourceBundleChangeListener(ResourceBundleChangeListener listener)
Adds a ResourceBundleChangeListener to resourceBundleChangeListeners.
Parameters:
listener - the listener to remove.
See Also:
#resourceBundleChangeListeners

removeResourceBundleChangeListener

public void removeResourceBundleChangeListener(ResourceBundleChangeListener listener)
Removes a ResourceBundleChangeListener from resourceBundleChangeListeners.
Parameters:
listener - the listener to remove.
See Also:
#resourceBundleChangeListeners

setResources

public void setResources(javax.swing.AbstractButton button)
Sets the resources of the given dialog.
Parameters:
button - the object which resources should be set.

setResources

public void setResources(javax.swing.JFrame frame)
Sets the resources of the given dialog.
Parameters:
frame - the object which resources should be set.

setResources

public void setResources(javax.swing.JDialog dialog)
Sets the resources of the given dialog.
Parameters:
dialog - the object which resources should be set.

setResources

public void setResources(javax.swing.JLabel label)
Sets the resources of the given label.
Parameters:
label - the object which resources should be set.

setResources

public void setResources(CAction action)
Sets the resources of the given action.
Parameters:
action - the object which resources should be set.

setResources

public void setResources(javax.swing.JInternalFrame internalFrame)
Sets the resources of the given internal frame.
Parameters:
internalFrame - the object which resources should be set.

setResources

public void setResources(CTabbedPane tabbedPane)
Sets the resources of the given tabbed pane.
Parameters:
tabbedPane - the object which resources should be set.

getBundle

public static CResourceBundle getBundle(java.lang.String baseName)