|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabbot.tester.ComponentLocation
abbot.tester.JListLocation
Provides encapsulation of the location of a row on a JList (a coordinate, item index or value).
| Constructor Summary | |
JListLocation()
|
|
JListLocation(int row)
|
|
JListLocation(Point where)
|
|
JListLocation(String value)
|
|
| Method Summary | |
protected String |
badFormat(String encoded)
|
boolean |
equals(Object o)
|
Rectangle |
getBounds(Component c)
Convert the abstract location into a concrete area. |
int |
getIndex(JList list)
|
Point |
getPoint(Component c)
Return a concrete point for the abstract location. |
protected Point |
indexToPoint(JList list,
int index)
Convert the given index into a coordinate. |
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 JListLocation()
public JListLocation(String value)
public JListLocation(int row)
public JListLocation(Point where)
| Method Detail |
protected String badFormat(String encoded)
badFormat in class ComponentLocation
protected Point indexToPoint(JList list,
int index)
public int getIndex(JList list)
public Point getPoint(Component c)
getPoint in class ComponentLocationpublic Rectangle getBounds(Component c)
ComponentLocation
getBounds in class ComponentLocationpublic boolean equals(Object o)
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 | |||||||||