org.fest.swing.query
Class JTableColumnByIdentifierQuery
java.lang.Object
org.fest.swing.query.JTableColumnByIdentifierQuery
public final class JTableColumnByIdentifierQuery
- extends Object
Understands an action that returns the index of a column in a JTable whose identifier matches
the given one.
- Author:
- Alex Ruiz
- See Also:
JTable.getColumn(Object),
TableColumn.getModelIndex()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnIndexByIdentifier
@RunsInCurrentThread
public static int columnIndexByIdentifier(JTable table,
Object identifier)
- Returns the index of a column in a
JTable whose identifier matches the given one.
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.
- Parameters:
table - the given JTable.identifier - the column identifier.
- Returns:
- the index of a column with a matching identifier. Otherwise it returns -1.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.