public class ActionInfo extends Object
MDKAbstractAction.| Constructor and Description |
|---|
ActionInfo(E enumAction,
int keyEvent,
ResourceBundle resource)
Builds a new ActionInfo considering an
Enum. |
ActionInfo(String codeName,
int keyEvent,
ResourceBundle resource)
Builds a new ActionInfo considering a codeName as a string.
|
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
enumToMethodName(E e)
Converts the name of an enum object to a Java
standardized method name.
|
ImageIcon |
getBigIcon() |
int |
getKeyEvent() |
String |
getLongDescription() |
String |
getName() |
String |
getShortDescription() |
ImageIcon |
getSmallIcon() |
public ActionInfo(E enumAction,
int keyEvent,
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(String codeName, int keyEvent, ResourceBundle resource)
codeName - the code name of the action as a string. For instance JCONSOLE.keyEvent - resource - public int getKeyEvent()
public ImageIcon getBigIcon()
public ImageIcon getSmallIcon()
public String getName()
public String getShortDescription()
public String getLongDescription()
public static <E extends Enum<E>> 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 - April 30 2015