|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionFactory
Basic interface for the action factory.
This interface has to be implemented in the action factory.
In the system can be more than one action factory but just one instance of each.
Method Summary | |
---|---|
CommandAction |
getAction(Context context,
String key)
Default constructor using the settings of the actions.properties file. |
CommandAction |
getAction(Context context,
String key,
String name,
String commands,
String shortDescription,
String longDescription,
Icon smallIcon,
Icon largeIcon,
String actionCommandKey,
KeyStroke acceleratorKey,
int mnemonicKey,
HashMap<String,Object> otherParameters)
Settings for the icons, texts etc. |
Method Detail |
---|
CommandAction getAction(Context context, String key)
To create the commands is the default command factory used.
context
- belongs to the contextkey
- key of the commandAction
CommandAction getAction(Context context, String key, String name, String commands, String shortDescription, String longDescription, Icon smallIcon, Icon largeIcon, String actionCommandKey, KeyStroke acceleratorKey, int mnemonicKey, HashMap<String,Object> otherParameters)
To create the commands is the default command factory used.
context
- belongs to the contextkey
- key of the commandActionname
- value for Action.NAME
commands
- all commands of the commandActionshortDescription
- value for Action.SHORT_DESCRIPTION
longDescription
- value for Action.LONG_DESCRIPTION
smallIcon
- value for Action.SMALL_ICON
largeIcon
- value for Action.LARGE_ICON_KEY
actionCommandKey
- value for Action.ACTION_COMMAND_KEY
acceleratorKey
- value for Action.ACCELERATOR_KEY
mnemonicKey
- value for Action.MNEMONIC_KEY
otherParameters
- other parameters which will be added to the action (can be null)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |