Package totalcross.unit
Class UIRobotEvent
- java.lang.Object
-
- totalcross.ui.event.Event<UIRobotListener>
-
- totalcross.unit.UIRobotEvent
-
public class UIRobotEvent extends Event<UIRobotListener>
Event sent when a Robot runs. The target is always the MainWindow's instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class totalcross.ui.event.Event
Event.Type<H>
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringfailureReasonThe reason of the failure, if any.static intROBOT_FAILEDEvent indicating that the robot has failed.static intROBOT_SUCCEEDEvent indicating that the robot has succeed.java.lang.StringrobotNameThe name of the robot that was running.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(UIRobotListener listener)-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, toString, touch
-
-
-
-
Field Detail
-
ROBOT_SUCCEED
public static final int ROBOT_SUCCEED
Event indicating that the robot has succeed.- See Also:
- Constant Field Values
-
ROBOT_FAILED
public static final int ROBOT_FAILED
Event indicating that the robot has failed. Check the failureReason field for more information.- See Also:
- Constant Field Values
-
robotName
public java.lang.String robotName
The name of the robot that was running.
-
failureReason
public java.lang.String failureReason
The reason of the failure, if any.
-
-
Method Detail
-
dispatch
public void dispatch(UIRobotListener listener)
- Specified by:
dispatchin classEvent<UIRobotListener>
-
-