public class I18nMenuItem extends MenuItem implements I18nable
I18nable wrapper around an AWT MenuItem that can also use an
Action to be performed when it is selected. This should not be used
for “normal” Swing applications!MenuItem.AccessibleAWTMenuItemMenuComponent.AccessibleAWTMenuComponent| Constructor and Description |
|---|
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
I18nAction i18nAction)
Creates a new i18nable menu item that used the properties of the given
I18nAction. |
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename)
Creates a new i18nable menu item.
|
I18nMenuItem(I18n i18n,
I18n.RemovalReference removalReference,
String i18nBasename,
Action action)
Creates a new i18nable menu item that will perform the given action when
selected.
|
I18nMenuItem(I18n i18n,
I18nAction i18nAction)
Creates a new i18nable menu item that used the properties of the given
I18nAction. |
I18nMenuItem(I18n i18n,
String i18nBasename)
Creates a new i18nable menu item.
|
I18nMenuItem(I18n i18n,
String i18nBasename,
Action action)
Creates a new i18nable menu item that will perform the given action when
selected.
|
| Modifier and Type | Method and Description |
|---|---|
void |
updateI18n()
Notifies the object that the language in
I18n was changed. |
addActionListener, addNotify, deleteShortcut, disable, disableEvents, enable, enable, enableEvents, getAccessibleContext, getActionCommand, getActionListeners, getLabel, getListeners, getShortcut, isEnabled, paramString, processActionEvent, processEvent, removeActionListener, setActionCommand, setEnabled, setLabel, setShortcutdispatchEvent, getFont, getName, getParent, getPeer, getTreeLock, postEvent, removeNotify, setFont, setName, toStringpublic I18nMenuItem(I18n i18n, String i18nBasename)
i18n - The i18n handleri18nBasename - The i18n basename of the menu itempublic I18nMenuItem(I18n i18n, I18n.RemovalReference removalReference, String i18nBasename)
i18n - The i18n handlerremovalReference - Removal reference (optional)i18nBasename - The i18n basename of the menu itempublic I18nMenuItem(I18n i18n, String i18nBasename, Action action)
i18n - The i18n handleri18nBasename - The i18n base name of the menu itemaction - The action to perform when selectedpublic I18nMenuItem(I18n i18n, I18n.RemovalReference removalReference, String i18nBasename, Action action)
i18n - The i18n handlerremovalReference - Removal reference (optional)i18nBasename - The i18n base name of the menu itemaction - The action to perform when selectedpublic I18nMenuItem(I18n i18n, I18nAction i18nAction)
I18nAction.i18n - The i18n handleri18nAction - The action to copypublic I18nMenuItem(I18n i18n, I18n.RemovalReference removalReference, I18nAction i18nAction)
I18nAction.i18n - The i18n handlerremovalReference - Removal reference (optional)i18nAction - The action to copypublic void updateI18n()
I18n was changed.updateI18n in interface I18nableCopyright © 2026. All rights reserved.