com.opera.core.systems.scope
Enum SystemInputCommand
java.lang.Object
java.lang.Enum<SystemInputCommand>
com.opera.core.systems.scope.SystemInputCommand
- All Implemented Interfaces:
- ICommand, Serializable, Comparable<SystemInputCommand>
public enum SystemInputCommand
- extends Enum<SystemInputCommand>
- implements ICommand
CLICK
public static final SystemInputCommand CLICK
KEYPRESS
public static final SystemInputCommand KEYPRESS
KEYUP
public static final SystemInputCommand KEYUP
KEYDOWN
public static final SystemInputCommand KEYDOWN
MOUSEDOWN
public static final SystemInputCommand MOUSEDOWN
MOUSEUP
public static final SystemInputCommand MOUSEUP
MOUSEMOVE
public static final SystemInputCommand MOUSEMOVE
DEFAULT
public static final SystemInputCommand DEFAULT
values
public static SystemInputCommand[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SystemInputCommand c : SystemInputCommand.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SystemInputCommand valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getCommandID
public int getCommandID()
- Description copied from interface:
ICommand
- Get command id to execute on host, service definitions are available on Scope Interface
- Specified by:
getCommandID in interface ICommand
- Returns:
- The id associated with the command
getServiceName
public String getServiceName()
- Description copied from interface:
ICommand
- Associates a command id with a service name
- Specified by:
getServiceName in interface ICommand
- Returns:
- Name of the service the command belongs to
get
public static SystemInputCommand get(int code)
Copyright © 2012. All Rights Reserved.