|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.extensions.awt.script.ComponentReference
Encapsulate as much information as is available to identify a GUI component.
Fields inherited from interface junit.extensions.awt.script.Tags |
TAG_ACTION, TAG_ARGS, TAG_ASSERT, TAG_AWTTESTSCRIPT, TAG_CLASS, TAG_COMPONENT, TAG_COUNT, TAG_DESC, TAG_EVENT, TAG_FILENAME, TAG_ID, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARENT, TAG_POLL_INTERVAL, TAG_SCRIPT, TAG_SEQUENCE, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_WAIT, TAG_WINDOW, TAG_X, TAG_Y |
Constructor Summary | |
ComponentReference(Resolver resolver,
ComponentFinder finder,
java.awt.Component comp)
Create a reference based on the given component. |
|
ComponentReference(Resolver resolver,
ComponentFinder finder,
org.w3c.dom.Element el)
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
Any two component references are equivalent if they have the same XML. |
void |
fromXML(java.lang.String xml)
|
java.lang.String |
getID()
Unique identifier for this component. |
java.awt.Point |
getInvocationLocation()
|
java.lang.String |
getInvoker()
Invoker of a JPopupMenu. |
java.lang.String |
getName()
This component's name, null if no name was set. |
java.lang.String |
getParentID()
Reference ID of this component's parent (optional). |
ComponentReference |
getParentReference()
Return a reference to this reference's parent, if available. |
java.lang.Class |
getRefClass()
This component's class. |
java.lang.String |
getTag()
Returns a component class-specific tag used to match this reference to a real component. |
java.lang.String |
getTitle()
Title string of this component's parent frame (optional). |
java.lang.String |
getWindowID()
Reference ID of this component's parent window (optional). |
ComponentReference |
getWindowReference()
Return a reference to this reference's window, if available. |
int |
hashCode()
Hash off of the XML representation rather than the objects themselves. |
boolean |
matches(java.awt.Component comp)
|
java.awt.Component |
resolve()
|
java.lang.String |
toString()
|
java.lang.String |
toXML()
Provide an XML representation of the object. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ComponentReference(Resolver resolver, ComponentFinder finder, org.w3c.dom.Element el) throws java.lang.IllegalArgumentException
public ComponentReference(Resolver resolver, ComponentFinder finder, java.awt.Component comp)
Method Detail |
public java.lang.String getID()
public java.lang.String getName()
public java.lang.Class getRefClass()
public java.lang.String getParentID()
public java.lang.String getWindowID()
public java.lang.String getTitle()
public java.lang.String getInvoker()
public java.awt.Point getInvocationLocation()
public java.lang.String getTag()
public void fromXML(java.lang.String xml)
public ComponentReference getWindowReference()
public ComponentReference getParentReference()
public java.awt.Component resolve() throws ComponentNotFoundException
public java.lang.String toXML()
XMLifiable
toXML
in interface XMLifiable
public int hashCode()
hashCode
in class java.lang.Object
public boolean matches(java.awt.Component comp)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |