GUI Commands User GuideVersion 2.1 |
||
ParametersParameters allow you to customise the execution of a command on a case by case basis. They can be specified a number of ways, but are always cleared after every execution. Parameters can be specified in the following manner:
Default ParametersCommands executed as a result of a a button or menu click predefine a number of parameters for you, these are as follows:
Creating Parameterised ButtonsActionCommands also allow you to create buttons that will always invoke a command with a particular set of parameters.
ActionCommand command = ...'
HashMap parameters = new HashMap();
parameters.put("parameter-one", "value-one");
parameters.put("parameter-two", "value-two");
AbstractButton button = command.createButton(parameters);
|
||