abbot.tester
Class ListLocation

java.lang.Object
  extended byabbot.tester.ComponentLocation
      extended byabbot.tester.ListLocation

public class ListLocation
extends ComponentLocation

Provides encapsulation of the location of a row on a List (a coordinate, item index or value).


Constructor Summary
ListLocation()
           
ListLocation(int row)
           
ListLocation(Point where)
           
ListLocation(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(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 java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListLocation

public ListLocation()

ListLocation

public ListLocation(String value)

ListLocation

public ListLocation(int row)

ListLocation

public ListLocation(Point where)
Method Detail

badFormat

protected String badFormat(String encoded)
Overrides:
badFormat in class ComponentLocation

getIndex

public int getIndex(List list)

getPoint

public Point getPoint(Component c)
Return a concrete point for the abstract location.

Overrides:
getPoint in class ComponentLocation

getBounds

public Rectangle getBounds(Component c)
Description copied from class: ComponentLocation
Convert the abstract location into a concrete area. If a point has been specified, returns a 1x1 rectangle, otherwise returns the a rectangle at (0, 0) of the Component's size.

Overrides:
getBounds in class ComponentLocation

equals

public boolean equals(Object o)
Overrides:
equals in class ComponentLocation

toString

public String toString()
Overrides:
toString in class ComponentLocation

parse

public ComponentLocation parse(String encoded)
Description copied from class: ComponentLocation
Convert the given encoding into the proper location. Allowed formats: (x, y)

Overrides:
parse in class ComponentLocation


Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge