|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.Resources
org.bs.mdi.CompositeResources
Manages multiple Resources.
| Field Summary |
| Fields inherited from class org.bs.mdi.Resources |
BUTTON_ICON, CUSTOM_ICON, MENU_ICON, MESSAGEBOX_ICON, TOOLBAR_ICON |
| Constructor Summary | |
CompositeResources()
|
|
| Method Summary | |
void |
addResource(Resources res)
Adds/Registers the specified resources. |
int |
countResources()
Counts the registered resources. |
Icon |
getIcon(String key,
int size)
Returns an icon for the specified key and in the given size |
String |
getString(String key)
Returns a localized string for the given key. |
void |
loadResources()
Re-loads the resources from storage. |
void |
removeResource(Resources res)
Removes the specified resources. |
void |
setLocale(Locale locale)
Sets the locale used for getting translated/localized resources. |
| Methods inherited from class org.bs.mdi.Resources |
getLocale, getMnemonic, i18n, stripMnemonic |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompositeResources()
| Method Detail |
public void setLocale(Locale locale)
Resources
setLocale in class Resourceslocale - the locale to be usedpublic void addResource(Resources res)
res - the resources object to be addedpublic void removeResource(Resources res)
res - the resources object to be removedpublic int countResources()
public void loadResources()
ResourcesResources.getLocale()) into account.
loadResources in class Resourcespublic String getString(String key)
Resources
getString in class Resourceskey - the key
public Icon getIcon(String key,
int size)
Resources
getIcon in class Resourceskey - the keysize - the size of the icon: pre-defined values are:
CUSTOM_ICON, MENU_ICON,
BUTTON_ICON, TOOLBAR_ICON,
MESSAGEBOX_ICON.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||