|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabbot.tester.ComponentLocation
Provides encapsulation of a visible Component-relative location. Hides the specifics location so that ComponentTester primitives (actionClick, actionShowPopup, etc) may be directed to specific elements of substructure on a Component (list rows, tree paths, table cells, substructure values, etc.). "Visible" in this context means currently accessible by the pointer (possibly via scrolling). A hidden node in a collapsed tree path would not be considered visible.
By convention, Point locations are specified with (x,y) notation. Indexed locations should use square brackets, e.g. [i] or [r,c] and value locations should use a quoted String, e.g. '"my value"'. Recorders should use the String value by default for consistency.
JListLocation
,
JTreeLocation
,
JTableLocation
Constructor Summary | |
ComponentLocation()
Create a simple location which represents the center of a component. |
|
ComponentLocation(Point where)
Create a simple location. |
Method Summary | |
protected String |
badFormat(String encoded)
|
boolean |
equals(Object o)
|
Rectangle |
getBounds(Component c)
Convert the abstract location into a concrete area. |
Point |
getPoint(Component c)
Convert the abstract location into a concrete one. |
ComponentLocation |
parse(String encoded)
Convert the given encoding into the proper location. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComponentLocation()
public ComponentLocation(Point where)
Method Detail |
public Point getPoint(Component c) throws LocationUnavailableException
LocationUnavailableException
public Rectangle getBounds(Component c) throws LocationUnavailableException
LocationUnavailableException
public boolean equals(Object o)
public String toString()
protected String badFormat(String encoded)
public ComponentLocation parse(String encoded)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |