public class ComponentAgent extends ObjectAgent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
objectType
"Component" (Subclasses will override)
The generic object type supported by this Agent helper class.
|
alternateAncestor, alternateAncestorClassname, factory
Constructor and Description |
---|
ComponentAgent()
Constructor for ComponentAgent.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
convertCoords(java.lang.String coords)
Convert coordinates string of the formats:
"x;y"
"x,y"
"Coords=x;y"
"Coords=x,y"
into a java.awt.Point object.
|
protected java.lang.String |
validateActionCommand(TestRecordData testRecordData)
Verify testRecordData.getCommand() is not null or 0-length.
|
protected java.awt.Component |
validateComponent(java.lang.Object object)
Verify the object is an instanceof java.awt.Component.
|
getAlternateAncestor, getAlternateAncestorClassname, getAncestorAgent, getCaption, getChildCount, getChildren, getClassName, getID, getLevel, getLocalAgentFactory, getMatchingPathObject, getName, getProperty, getPropertyNames, getStringData, getSubItemAtIndex, getSuperClassNames, getText, isMatchingPath, isShowing, isValid, process, processAncestor, setAlternateAncestor, setAlternateAncestorClassname, setLocalAgentFactory
public static final java.lang.String objectType
protected java.lang.String validateActionCommand(TestRecordData testRecordData)
SAFSInvalidActionRuntimeException("Invalid
- Action") if action is null or 0-length.protected java.awt.Component validateComponent(java.lang.Object object)
SAFSObjectNotFoundRuntimeException("Invalid
- object") if component is null.SAFSInvalidComponentRuntimeException(object.getClass().getName())
- if component is not a java.awt.Component.public java.awt.Point convertCoords(java.lang.String coords)
Subclasses may override to convert alternative values, such as Row and Col values as is done in org.safs.rational.CFTable
coords,
- String x;y or x,y or Coords=x;y or Coords=x,yCopyright © SAS Institute. All Rights Reserved.