public class JTabbedPaneLocation extends Object
JTabbedPane
(notably a tab).Constructor and Description |
---|
JTabbedPaneLocation() |
Modifier and Type | Method and Description |
---|---|
int |
indexOf(JTabbedPane tabbedPane,
String title)
Returns the index of the first tab that matches the given
String . |
int |
indexOf(JTabbedPane tabbedPane,
TextMatcher matcher)
Returns the index of the first tab whose title matches the value in the given
. |
Point |
pointAt(JTabbedPane tabbedPane,
int index)
Returns the coordinates of the tab under the given index.
|
@RunsInCurrentThread public int indexOf(JTabbedPane tabbedPane, String title)
String
.
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.
tabbedPane
- the target JTabbedPane
.title
- the title to match.String
.LocationUnavailableException
- if a tab matching the given title could not be found.@RunsInCurrentThread public int indexOf(JTabbedPane tabbedPane, 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.
tabbedPane
- the target JTabbedPane
.matcher
- indicates if the text of the JTabbedPane
matches the value we are looking for.String
.LocationUnavailableException
- if a tab matching the given title could not be found.@RunsInCurrentThread public Point pointAt(JTabbedPane tabbedPane, 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.
tabbedPane
- the target JTabbedPane
.index
- the given index.IndexOutOfBoundsException
- if the given index is negative or out of bounds.LocationUnavailableException
- if the tab under the given index is not visible.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.