org.sikuli.api
Class MultiStateTarget
java.lang.Object
org.sikuli.api.DefaultTarget
org.sikuli.api.MultiStateTarget
- All Implemented Interfaces:
- Target
public class MultiStateTarget
- extends DefaultTarget
- implements Target
The MultiStateTarget class defines a target that may look differently according its state.
This class can be used to identify targets whose visual appearance change frequently. Examples
include, but are not limited to, checkboxes and radio buttons.
|
Method Summary |
void |
addState(Target target,
Object state)
Adds a new state to this MultiStateTarget object as represented by the presence
of the given target. |
MultiStateTarget
public MultiStateTarget()
addState
public void addState(Target target,
Object state)
- Adds a new state to this MultiStateTarget object as represented by the presence
of the given target.
- Parameters:
target - the target whose presence indicates this state.state - the state, which can be any object.
Copyright © 2014. All rights reserved.