JComponentPack 1.5.0

com.zfqjava.swing
Class ResourceManager

java.lang.Object
  extended by com.zfqjava.swing.ResourceManager

public class ResourceManager
extends Object

ResourceManager provides a resurce manager for application.

See Also:
ValueAction

Constructor Summary
ResourceManager()
          Constructs a ResourceManager.
ResourceManager(String name)
          Constructs a ResourceManager use the specified resource name.
 
Method Summary
 void addBundle(String name)
          Adds a resource bundle use the specified resource name.
 Action getAction(String key)
          Returns a Action for the key from this resource manager.
 Icon getIcon(String key)
          Returns a icon for the key from this resource manager.
 ImageIcon getImageIcon(String key)
          Returns a image icon for the key from this resource manager.
 KeyStroke getKeyStroke(String key)
          Returns a key stroke for the key from this resource manager.
 Integer getMnemonic(String key)
          Returns a mnemonic for the key from this resource manager.
 URL getResource(String key)
           
 String getString(String key)
          Returns a value for the key from this resource manager.
 void removeBundle(String name)
          Removes a resource bundle use the specified resource name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

public ResourceManager()
Constructs a ResourceManager.


ResourceManager

public ResourceManager(String name)
Constructs a ResourceManager use the specified resource name.

Parameters:
name - the bundle name
Method Detail

addBundle

public void addBundle(String name)
Adds a resource bundle use the specified resource name.

Parameters:
name - the resource bundle name
See Also:
removeBundle(java.lang.String)

removeBundle

public void removeBundle(String name)
Removes a resource bundle use the specified resource name.

Parameters:
name - the resource bundle name
See Also:
addBundle(java.lang.String)

getMnemonic

public Integer getMnemonic(String key)
Returns a mnemonic for the key from this resource manager.

Parameters:
key - the key
Returns:
the mnemonic

getIcon

public Icon getIcon(String key)
Returns a icon for the key from this resource manager.

Parameters:
key - the key
Returns:
the icon

getImageIcon

public ImageIcon getImageIcon(String key)
Returns a image icon for the key from this resource manager.

Parameters:
key - the key
Returns:
the image icon
Since:
JDataGrid 2.0

getKeyStroke

public KeyStroke getKeyStroke(String key)
Returns a key stroke for the key from this resource manager.

Parameters:
key - the key
Returns:
the key stroke

getResource

public URL getResource(String key)

getString

public String getString(String key)
Returns a value for the key from this resource manager.

Parameters:
key - the key
Returns:
the value

getAction

public Action getAction(String key)
Returns a Action for the key from this resource manager.

Parameters:
key - the key
Returns:
the Action

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.