public class JTableHeaderLocation extends Object
JTableHeader
(a coordinate, column index or value.)Constructor and Description |
---|
JTableHeaderLocation() |
Modifier and Type | Method and Description |
---|---|
int |
indexOf(JTableHeader tableHeader,
TextMatcher matcher)
Returns the index of the column which name matches the value in the given
, or -1
if a matching column was not found. |
Point |
pointAt(JTableHeader tableHeader,
int index)
Returns the coordinates of the column under the given index.
|
Pair<Integer,Point> |
pointAt(JTableHeader tableHeader,
TextMatcher matcher)
Returns the index and the coordinates of the column which name matches the value in the given
. |
@RunsInCurrentThread public Pair<Integer,Point> pointAt(JTableHeader tableHeader, TextMatcher matcher)
TextMatcher
.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
tableHeader
- the target JTableHeader
.matcher
- indicates which is the matching column name.LocationUnavailableException
- if a column with a matching value cannot be found.@RunsInCurrentThread public Point pointAt(JTableHeader tableHeader, int index)
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
tableHeader
- the target JTableHeader
.index
- the given index.IndexOutOfBoundsException
- if the index is out of bounds.@RunsInCurrentThread public int indexOf(JTableHeader tableHeader, TextMatcher matcher)
TextMatcher
, or -1
if a matching column was not found.
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
tableHeader
- the target JTableHeader
.matcher
- indicates which is the matching column name.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.