public class ResourceComponentFactory
extends java.lang.Object
The following example describes the resources for a menubar.
Menubar=file edit debug # file Menu definition # # Each of the strings that follow form a key to be # used as the basis of a menu item definition. # # open -> First.openAction # new -> First.newAction # save -> First.saveAction # exit -> First.exitAction file=new fileOpen fileSave - exit fileLabel=Datei fileMnemonic=D fileOpenMenu=open newEditorOpenFile newEditor fileOpenLabel=Öffnen fileOpenMnemonic=Ö openLabel=Öffnen openImage=images/open.gif openMnemonic=Ö newEditorOpenFileLabel=im neuen Editor öffnen... newEditorOpenFileAction=newEditorOpenFile newEditorLabel=neuer Editor newEditorAction=newEditor newLabel=Neu newImage=images/new.gif newMnemonic=N fileSaveMenu = save save_as fileSaveLabel = Speichern saveLabel=Speichern... saveImage=images/save.gif saveAction=save save_asLabel=speichern als... exitLabel=Beenden # # edit Menu definition # # cut -> JTextComponent.cutAction # copy -> JTextComponent.copyAction # paste -> JTextComponent.pasteAction edit=cut copy paste - undo redo editLabel=Bearbeiten cutLabel=Ausschneiden cutAction=cut-to-clipboard cutImage=images/cut.gif copyLabel=Kopieren copyAction=copy-to-clipboard copyImage=images/copy.gif pasteLabel=Einfügen pasteAction=paste-from-clipboard pasteImage=images/paste.gif undoLabel=Rückgängig undoAction=Undo redoLabel=Wiederholen redoAction=Redo # # debug Menu definition # debug=dump debugLabel=Debug dumpLabel=Debugmodell auf Errorkanal ausgeben dumpAction=dump-model # # optiions Menu definition # options = lookAndFeel - toolTip # # Defines a checkbox menuitem. # toolTipToggleButton = Tooltip toolTipSelected = Ja # # Defines a radio button group # options = lookAndFeel lookAndFeelGroup=motif windows metal motifLabel=Motif windowsLabel=Windows metalLabel=Metal # toolbar definition # # Each of the strings that follow form a key to be # used as the basis of the tool definition. Actions # are of course sharable, and in this case are shared # with the menu items. Toolbar=new open save - cut copy paste newTooltip=Neue Datei anlegen openTooltip=Datei öffnen saveTooltip=Auf Datei speichern cutTooltip=Move selection to clipboard copyTooltip=Copy selection to clipboard pasteTooltip=Paste clipboard to selection
ListPropertyBundle
,
,
EnhancedPropertyBundle
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
acceleratorSuffix
Suffix applied to the key used in resource file
lookups for an accelerator.
|
static java.lang.String |
actionSuffix
Suffix applied to the key used in resource file
lookups for an action.
|
static java.lang.String |
altPrefix
Accelerator key prefix strings.
|
static java.util.Hashtable |
charKeyRelation
static Hashtable to resolve character and keystroke relation
|
static java.lang.String |
ctrlPrefix |
static java.lang.String |
groupSuffix
Suffix applied to the key used in resource file
lookups for a button group.
|
static java.lang.String |
imageSuffix
Suffix applied to the key used in resource file
lookups for an image.
|
static java.lang.String |
labelSuffix
Suffix applied to the key used in resource file
lookups for a label.
|
static java.lang.String |
menubarKeyword
Menu bar keyword.
|
static java.lang.String |
menuSuffix
Suffix applied to the key used in resource file
lookups for a submenus.
|
static java.lang.String |
metaPrefix |
static java.lang.String |
mnemonicSuffix
Suffix applied to the key used in resource file
lookups for a mnemonic.
|
static java.lang.String |
popupKeyword
Popupmenu keyword.
|
static java.lang.String |
selectSuffix
Suffix applied to the key used in resource file
lookups for the select state menu item.
|
static java.lang.String |
shiftPrefix |
static java.lang.String |
tipSuffix
Suffix applied to the key used in resource file
lookups for tooltip text.
|
static java.lang.String |
toggleSuffix
Suffix applied to the key used in resource file
lookups for toggle button menu item.
|
static java.lang.String |
toolbarKeyword
Tool bar keyword.
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.JMenuBar |
createMenubar(ResourceComponentFactoryable obj,
PropertyBundle properties)
Create the menubar for the app.
|
static javax.swing.JPopupMenu |
createPopupMenu(ResourceComponentFactoryable obj,
PropertyBundle properties)
Create the popupmenu for the app.
|
static javax.swing.JToolBar |
createToolbar(ResourceComponentFactoryable obj,
PropertyBundle properties)
Create the toolbar for the app.
|
public static java.util.Hashtable charKeyRelation
public static final java.lang.String menubarKeyword
public static final java.lang.String popupKeyword
public static final java.lang.String toolbarKeyword
public static final java.lang.String menuSuffix
public static final java.lang.String groupSuffix
public static final java.lang.String mnemonicSuffix
public static final java.lang.String acceleratorSuffix
public static final java.lang.String imageSuffix
public static final java.lang.String labelSuffix
public static final java.lang.String actionSuffix
public static final java.lang.String tipSuffix
public static final java.lang.String toggleSuffix
public static final java.lang.String selectSuffix
public static final java.lang.String altPrefix
public static final java.lang.String ctrlPrefix
public static final java.lang.String metaPrefix
public static final java.lang.String shiftPrefix
public static javax.swing.JMenuBar createMenubar(ResourceComponentFactoryable obj, PropertyBundle properties)
public static javax.swing.JPopupMenu createPopupMenu(ResourceComponentFactoryable obj, PropertyBundle properties)
public static javax.swing.JToolBar createToolbar(ResourceComponentFactoryable obj, PropertyBundle properties)