public class ActionInfo
extends java.lang.Object
MDKAbstractAction.| Constructor and Description |
|---|
ActionInfo(E enumAction,
int keyEvent,
java.util.ResourceBundle resource)
Builds a new ActionInfo considering an
Enum. |
ActionInfo(java.lang.String codeName,
int keyEvent,
java.util.ResourceBundle resource)
Builds a new ActionInfo considering a codeName as a string.
|
| Modifier and Type | Method and Description |
|---|---|
static <E extends java.lang.Enum<E>> |
enumToMethodName(E e)
Converts the name of an enum object to a Java standardized method name.
|
javax.swing.ImageIcon |
getBigIcon() |
int |
getKeyEvent() |
java.lang.String |
getLongDescription() |
java.lang.String |
getName() |
java.lang.String |
getShortDescription() |
javax.swing.ImageIcon |
getSmallIcon() |
public ActionInfo(E enumAction,
int keyEvent,
java.util.ResourceBundle resource)
Enum. If the considered enum
is from this package, it will be built automatically with values contained in
the madkit.i18n directoryenumAction - keyEvent - public ActionInfo(java.lang.String codeName,
int keyEvent,
java.util.ResourceBundle resource)
codeName - the code name of the action as a string. For instance JCONSOLE.keyEvent - resource - public int getKeyEvent()
public javax.swing.ImageIcon getBigIcon()
public javax.swing.ImageIcon getSmallIcon()
public java.lang.String getName()
public java.lang.String getShortDescription()
public java.lang.String getLongDescription()
public static <E extends java.lang.Enum<E>> java.lang.String enumToMethodName(E e)
AgentAction.LAUNCH_AGENT will return
launchAgent. This is especially used by
AbstractAgent.proceedEnumMessage(madkit.message.EnumMessage) to
reflexively call the method of an agent which corresponds to the code of such
messages.e - the enum object to convert
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019