|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.driver.JTableHeaderLocation
public class JTableHeaderLocation
Understands the location of a
(a coordinate, column index or value.)
JTableHeader
Constructor Summary | |
---|---|
JTableHeaderLocation()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JTableHeaderLocation()
Method Detail |
---|
@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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |