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
TextMatcher , 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
TextMatcher . |
@RunsInCurrentThread @Nonnull public Pair<Integer,Point> pointAt(@Nonnull JTableHeader tableHeader, @Nonnull TextMatcher matcher)
Returns the index and the coordinates of the column which name matches the value in the given TextMatcher
.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call 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 @Nonnull public Point pointAt(@Nonnull JTableHeader tableHeader, int index)
Returns the coordinates of the column under the given index.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call 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(@Nonnull JTableHeader tableHeader, @Nonnull TextMatcher matcher)
Returns the index of the column which name matches the value in the given TextMatcher
, or -1 if a matching
column was not found.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
tableHeader
- the target JTableHeader
.matcher
- indicates which is the matching column name.Copyright © 2014–2019 AssertJ. All rights reserved.