Package totalcross.unit
Class UIRobotEvent
- java.lang.Object
-
- totalcross.ui.event.Event
-
- totalcross.unit.UIRobotEvent
-
public class UIRobotEvent extends Event
Event sent when a Robot runs. The target is always the MainWindow's instance.
-
-
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
-
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.
-
-