org.safs.abbot.jvmagent.agents
Class ComponentAgent

java.lang.Object
  extended by org.safs.jvmagent.agents.ObjectAgent
      extended by org.safs.jvmagent.agents.ComponentAgent
          extended by org.safs.abbot.jvmagent.agents.ComponentAgent
All Implemented Interfaces:
AlternateAncestorUser, LocalAgent, LocalAgentFactoryUser, LocalSubItemsAgent

public class ComponentAgent
extends ComponentAgent

Since:
Mar 30, 2005 Feb 23, 2006 (Szucs) some refactoring + adding checkForCoord() method

Field Summary
protected  abbot.tester.ComponentTester componenttester
           
 
Fields inherited from class org.safs.jvmagent.agents.ComponentAgent
objectType
 
Fields inherited from class org.safs.jvmagent.agents.ObjectAgent
alternateAncestor, alternateAncestorClassname, factory
 
Constructor Summary
ComponentAgent()
          Constructor for ComponentAgent.
 
Method Summary
protected  java.awt.Point checkForCoord(TestRecordData testRecordData)
          
Purpose: check 5th parameter for coords, x;y notation, appmap ref is not supported yet
 TestRecordData process(java.lang.Object object, TestRecordData testRecordData)
          Process the action provided in the testRecordData.
 
Methods inherited from class org.safs.jvmagent.agents.ComponentAgent
convertCoords, validateActionCommand, validateComponent
 
Methods inherited from class org.safs.jvmagent.agents.ObjectAgent
getAlternateAncestor, getAlternateAncestorClassname, getAncestorAgent, getCaption, getChildCount, getChildren, getClassName, getID, getLevel, getLocalAgentFactory, getMatchingPathObject, getName, getProperty, getPropertyNames, getStringData, getSubItemAtIndex, getSuperClassNames, getText, isMatchingPath, isShowing, isValid, processAncestor, setAlternateAncestor, setAlternateAncestorClassname, setLocalAgentFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componenttester

protected abbot.tester.ComponentTester componenttester
Constructor Detail

ComponentAgent

public ComponentAgent()
Constructor for ComponentAgent.

Method Detail

process

public TestRecordData process(java.lang.Object object,
                              TestRecordData testRecordData)
Process the action provided in the testRecordData. This class is closely linked with the server-side org.safs.abbot.CFComponent class. All action constants are generally stored there and referenced here.

An Agent may throw various types of Agent-specific RuntimeExceptions depending upon failure modes.

Specified by:
process in interface LocalAgent
Overrides:
process in class ObjectAgent
Parameters:
testRecordData - provides all the information needed by the Agent to perform the action.
Returns:
TestRecordData with necessary info, especially the modified statuscode.
Throws:
SAFSInvalidActionRuntimeException - if action is null or 0-length
SAFSInvalidComponentRuntimeException - if object is not a Component.
SAFSActionErrorRuntimeException( - x.getMessage(), x) if an abbot exception occurs.
SAFSMissingActionArgumentRuntimeException( - action +" null", x) if a required action arg is missing.
See Also:
ComponentAgent.validateActionCommand(TestRecordData), ComponentAgent.validateComponent(Object), CFComponent

checkForCoord

protected java.awt.Point checkForCoord(TestRecordData testRecordData)
                                throws SAFSActionErrorRuntimeException

Purpose: check 5th parameter for coords, x;y notation, appmap ref is not supported yet

Returns:
java.awt.Point, null if parameter hasn't another element
Throws:
SAFSActionErrorRuntimeException