Package org.fest.swing.query
Class JTableColumnByIdentifierQuery
java.lang.Object
org.fest.swing.query.JTableColumnByIdentifierQuery
Understands an action that returns the index of a column in a
JTable
whose identifier matches
the given one.
Note: Methods in this class are not executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
columnIndexByIdentifier
(JTable table, Object identifier) Returns the index of a column in a
whose identifier matches the given one.JTable
-
Constructor Details
-
JTableColumnByIdentifierQuery
private JTableColumnByIdentifierQuery()
-
-
Method Details
-
columnIndexByIdentifier
Returns the index of a column in a
whose identifier matches the given one.JTable
- Parameters:
table
- the givenJTable
.identifier
- the column identifier.- Returns:
- the index of a column with a matching identifier. Otherwise it returns -1.
-