01: package org.osbl.agent.gui.action;
02:
03: import org.osbl.agent.model.action.SetCurrentTimeAction;
04:
05: /**
06: * The class SetCurrentTimeActionController models the SetCurrentTimeAction.
07: * It offers no UI parameters as none is needed.
08: *
09: * @author Sebastian Nozzi.
10: */
11: public class SetCurrentTimeActionController extends
12: SetValueActionController {
13:
14: /**
15: * Instantiates a new set current time action controller.
16: */
17: public SetCurrentTimeActionController() {
18: super ();
19:
20: // "now" will be a pre-defined variable in the Ognl evaluation context
21: // when the Action is run... context variables are accessed with "#"
22: inputField.setText("#" + SetCurrentTimeAction.predefinedNow);
23: }
24:
25: }
|