public interface IAction extends javax.swing.Action, HasRIcon
Action texts might have a mnemonic character indicated with the underscore ('_'
). If such indicator is detected, it will be removed from the
visible text and the character following the underscore will be set as the action's mnemonic.
If the action has a ricon, the action's large icon (Action.LARGE_ICON_KEY
) will automatically be re-scaled when the setting defining the tool bar
icon size changes.
IGuiFactory.newAction(hu.scelightapibase.gui.icon.IRIcon, String, java.awt.event.ActionListener)
,
IGuiFactory.newAction(hu.scelightapibase.gui.icon.IRIcon, String, javax.swing.JComponent, java.awt.event.ActionListener)
,
IGuiFactory.newAction(javax.swing.KeyStroke, hu.scelightapibase.gui.icon.IRIcon, String, java.awt.event.ActionListener)
,
IGuiFactory.newAction(javax.swing.KeyStroke, hu.scelightapibase.gui.icon.IRIcon, String, javax.swing.JComponent,
java.awt.event.ActionListener)
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
addToMenu(javax.swing.JMenu menu)
Adds this action to the specified menu.
|
javax.swing.JMenuItem |
addToMenu(javax.swing.JPopupMenu menu)
Adds this action to the specified popup menu.
|
java.lang.String |
getName()
Returns the action's name (the value associated with the
Action.NAME key). |
java.lang.String |
getShortDescription()
Returns the action's short description (the value associated with the
Action.SHORT_DESCRIPTION key). |
java.lang.String getName()
Action.NAME
key).Action.NAME
key)java.lang.String getShortDescription()
Action.SHORT_DESCRIPTION
key).Action.SHORT_DESCRIPTION
key)javax.swing.JMenuItem addToMenu(javax.swing.JMenu menu)
menu
- menu to add the action toaddToMenu(JPopupMenu)
javax.swing.JMenuItem addToMenu(javax.swing.JPopupMenu menu)
menu
- popup menu to add the action toaddToMenu(JMenu)
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.