|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabbot.tester.ComponentLocation
abbot.tester.ListLocation
public class ListLocation
Provides encapsulation of the location of a row on a List (a coordinate, item index or value).
| Field Summary |
|---|
| Fields inherited from class abbot.tester.ComponentLocation |
|---|
CENTER |
| Constructor Summary | |
|---|---|
ListLocation()
|
|
ListLocation(int row)
|
|
ListLocation(Point where)
|
|
ListLocation(String value)
|
|
| Method Summary | |
|---|---|
protected String |
badFormat(String encoded)
|
boolean |
equals(Object o)
Returns whether the given object is an equivalent ComponentLocation. |
Rectangle |
getBounds(Component c)
Convert the abstract location into a concrete area, relative to the given Component. |
int |
getIndex(List list)
|
Point |
getPoint(Component c)
Return a concrete point for the abstract location. |
ComponentLocation |
parse(String encoded)
Convert the given encoding into the proper location. |
String |
toString()
|
| Methods inherited from class abbot.tester.ComponentLocation |
|---|
encodeIndex, encodeValue, isIndex, isValue, parseIndex, parseValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListLocation()
public ListLocation(String value)
public ListLocation(int row)
public ListLocation(Point where)
| Method Detail |
|---|
protected String badFormat(String encoded)
badFormat in class ComponentLocationpublic int getIndex(List list)
public Point getPoint(Component c)
getPoint in class ComponentLocationpublic Rectangle getBounds(Component c)
ComponentLocationComponent. If a point has
been specified, returns a 1x1 rectangle, otherwise returns the
a rectangle at (0, 0) of the Component's size.
getBounds in class ComponentLocationpublic boolean equals(Object o)
ComponentLocationComponentLocation.
equals in class ComponentLocationpublic String toString()
toString in class ComponentLocationpublic ComponentLocation parse(String encoded)
ComponentLocation
parse in class ComponentLocation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||