|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.driver.JTabbedPaneLocation
public class JTabbedPaneLocation
Understands a location on a (notably a tab).
JTabbedPane
| Constructor Summary | |
|---|---|
JTabbedPaneLocation()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTabbedPaneLocation()
| Method Detail |
|---|
@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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||