org.eclipse.actf.model.javapp.locate
Class SwingComponentLocator

java.lang.Object
  extended by org.eclipse.actf.model.locate.AbstractNodeLocator
      extended by org.eclipse.actf.model.javapp.locate.SwingComponentLocator
All Implemented Interfaces:
INodeLocator

public class SwingComponentLocator
extends AbstractNodeLocator

locates or distinguishes Swing components in a Java GUI for the Swing model during the validation process. All components passed to the implemented methods must be an instance of java.awt.Component.

Author:
Mike Squillace

Field Summary
 
Fields inherited from class org.eclipse.actf.model.locate.AbstractNodeLocator
CONTAINSSUBSTR_SEARCH, defaultIdPropName, EXACTMATCH_SEARCH, IGNORECASE_SEARCH, model, NODELOCATOR_VARIABLE, NODENAME_CHARCLASS, NODENAME_KEY, PREDICATEVAL_CHARCLASS, propertiesMap, REGEXP_SEARCH, ROOT_JXPATH_CONTEXT, SEGMENT_PATTERN
 
Constructor Summary
SwingComponentLocator()
          create a new SwingComponentLocator.
 
Method Summary
protected  String getChildrenMethodName()
          default children getter for Swing components is getComponents
 
Methods inherited from class org.eclipse.actf.model.locate.AbstractNodeLocator
addNodePointerFactory, describe, descriptionAsString, find, findAll, getDefaultIdPropertyName, getModel, getNodeId, invokeGetter, locate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingComponentLocator

public SwingComponentLocator()
create a new SwingComponentLocator. By default, the components that can be identified via the identify method are found in the 'swing.xml' file. The default property used is 'name'.

See Also:
"resources/swing.xml"
Method Detail

getChildrenMethodName

protected String getChildrenMethodName()
default children getter for Swing components is getComponents