|
Jedit 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.bsu.cs.gui.JeditResources
public class JeditResources
Creates and maintains the Resources from a .properties document which is kept in the /classes directory.
Field Summary | |
---|---|
protected ResourceBundle |
bundle
The ResourceBundle that holds all of the resources. |
Constructor Summary | |
---|---|
JeditResources(String baseName)
Default Constructor. |
|
JeditResources(String baseName,
Locale locale)
Constructor that sets the Resource Bundle and Locale |
Method Summary | |
---|---|
KeyStroke |
getAccelerator(String name)
Returns the Accelerator for the Resource. |
String |
getCode(String name)
Returns the code of the resource |
Icon |
getIcon(String name)
Returns the Icon for the Resource |
String |
getIsDisabled(String name)
Returns if the given resource is a disabled |
String |
getIsSelected(String name)
Returns if the given resource is selected |
String |
getIsSubmenu(String name)
Returns if the given resource is a submenu |
String |
getIsToggle(String name)
Returns if the given resource is a toggle |
String |
getKeyName(String code)
|
String |
getLongDescription(String name)
Returns the Description for the Resource |
Integer |
getMnemonicKey(String name)
Returns the Menumonic key of the Resource Bundle. |
Icon |
getSelectedIcon(String name)
Returns the Icon for the Resource |
String |
getShortDescription(String name)
Returns the Description for the Resource |
String |
getText(String name)
|
void |
prettifyAction(Action a,
String name)
|
void |
prettifyButton(AbstractButton button,
String name)
|
void |
prettifyMenuItem(JMenuItem item,
String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResourceBundle bundle
Constructor Detail |
---|
public JeditResources(String baseName)
String
- Name of Resource Bundle.public JeditResources(String baseName, Locale locale)
String
- Name of Resource BundleLocale
- Sets the locale for the Resource Bundle.Method Detail |
---|
public Integer getMnemonicKey(String name)
String
- Name of the Resource Bundle.
public KeyStroke getAccelerator(String name)
String
- Name of the ResourceKeystroke
- The Accelerator for the Resource.public Icon getIcon(String name)
String
- Name of the Resource
public Icon getSelectedIcon(String name)
String
- Name of the Resource
public String getText(String name)
public String getShortDescription(String name)
String
- Name of the Resource
public String getLongDescription(String name)
String
- Name of the Resource
public String getIsSubmenu(String name)
String
- Name of the Resource
public String getIsDisabled(String name)
String
- Name of the Resource
public String getIsToggle(String name)
String
- Name of the Resource
public String getIsSelected(String name)
String
- Name of the Resource
public String getCode(String name)
String
- Name of the Resource
public String getKeyName(String code)
public void prettifyAction(Action a, String name)
public void prettifyButton(AbstractButton button, String name)
public void prettifyMenuItem(JMenuItem item, String name)
|
Jedit 4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |