org.sikuli.api
Class MultiStateTarget

java.lang.Object
  extended by org.sikuli.api.DefaultTarget
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sikuli.api.Target
Target.Ordering
 
Constructor Summary
MultiStateTarget()
           
 
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.
 
Methods inherited from class org.sikuli.api.DefaultTarget
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering, toImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sikuli.api.Target
doFindAll, getLimit, getMinScore, getOrdering, setLimit, setMinScore, setOrdering
 

Constructor Detail

MultiStateTarget

public MultiStateTarget()
Method Detail

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.