public class CommandEvent extends EventObject
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_VARIABLE_EVENT
Predefined action code which indicates that a global variable was created.
|
static String |
KEY_EVENT
Predefined action code for a key event.
|
static String |
LOCAL_VARIABLE_EVENT
Predefined action code which indicates that a local variable was created.
|
static String |
LOG_EVENT
Predefined action code for a log entry gets generated.
|
static String |
OUTPUT_CHANGED_EVENT
Predefined action code for an event when a new output like screenshot,
warning or comment was generated.
|
static String |
POINTER_EVENT
Predefined action code for a pointer event.
|
static String |
SUPPRESS_ERRORS
Predefined action code to set on/off error hints in the status bar.
|
Constructor and Description |
---|
CommandEvent(Object source,
ScriptingContext context,
String actionCode) |
CommandEvent(Object source,
ScriptingContext context,
String actionCode,
Object customObject) |
Modifier and Type | Method and Description |
---|---|
String |
getActionCode()
Get action code.
|
ScriptingContext |
getContext()
Get context associated with this event.
|
Object |
getCustomObject()
Get custom object.
|
boolean |
isConsumed()
Find out whether the even is consumed or not.
|
void |
setConsumed(boolean consumed)
Consume the event.
|
getSource, toString
public static final String POINTER_EVENT
public static final String KEY_EVENT
public static final String OUTPUT_CHANGED_EVENT
public static final String LOG_EVENT
public static final String GLOBAL_VARIABLE_EVENT
public static final String LOCAL_VARIABLE_EVENT
public static final String SUPPRESS_ERRORS
public CommandEvent(Object source, ScriptingContext context, String actionCode, Object customObject)
public CommandEvent(Object source, ScriptingContext context, String actionCode)
public Object getCustomObject()
public String getActionCode()
public ScriptingContext getContext()
public boolean isConsumed()
public void setConsumed(boolean consumed)
isConsumed()
method for details.consumed
- true sets the event state to "consumed".