|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.ui.ResourceHelper
public class ResourceHelper
Helps parse resource strings (containing text and optional mnemonics and accelerators) for GUI widgets.
Constructor Summary | |
---|---|
ResourceHelper()
|
Method Summary | |
---|---|
static void |
addTab(JTabbedPane tabbedPane,
String resourceKey,
JComponent comp)
add a tab to a tabbed pane and its text and pnemonic |
static void |
setText(AbstractButton button,
String resourceKey)
set the text and pnemonic for a button |
static void |
setText(JLabel label,
String resourceKey)
set the text and pnemonic for a label |
static void |
setText(JMenuItem mnuitm,
String resourceKey)
set the text and pnemonic for a JMenuItem |
static void |
setText(JMenu mnu,
String resourceKey)
set the text and pnemonic for a JMenu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceHelper()
Method Detail |
---|
public static void setText(JMenu mnu, String resourceKey)
mnu
- the menuresourceKey
- the resource string with optional pnemonic datapublic static void setText(JMenuItem mnuitm, String resourceKey)
mnuitm
- the JMenuItemresourceKey
- the resource string with optional pnemonic datapublic static void setText(AbstractButton button, String resourceKey)
button
- the buttonresourceKey
- the resource string with optional pnemonic datapublic static void setText(JLabel label, String resourceKey)
label
- the labelresourceKey
- the resource string with optional pnemonic datapublic static void addTab(JTabbedPane tabbedPane, String resourceKey, JComponent comp)
tabbedPane
- the tabbed paneresourceKey
- the resource string with optional pnemonic datacomp
- the component to add as a tab
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |