|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.common.Resource
public class Resource
Common logic for dealing with Resource Bundles. Resource strings are stored in a standard resource bundle, but may have extra keyboard shortcut information added which defines the keyboard shortcuts for manu items and buttons.
| Nested Class Summary | |
|---|---|
static class |
Resource.ComponentParms
ComponentParms contains the text and keyboard shortcut info for a resource string. |
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
static String |
getResourceString(String resourceKey)
Get a resource string from the borg resource bundle. |
static String |
getVersion()
Gets the borg version, which is stored in its own properties file |
static Resource.ComponentParms |
parseParms(String resourceKey)
get a resource string and parse out the various parts - the text and the keyboard shortcut into |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resource()
| Method Detail |
|---|
public static String getResourceString(String resourceKey)
resourceKey - the resource key
public static String getVersion()
public static Resource.ComponentParms parseParms(String resourceKey)
resourceKey - the resource key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||