static class GUIRunner.TabChangeListener extends Object implements ChangeListener
| Modifier and Type | Field and Description |
|---|---|
private static GUIRunner.Selector |
EMPTY_SELECTOR
Registered with the unselected Selector.
|
private static int |
SEL_IND1
The index of the tab selected initially.
|
private GUIRunner.Selector[] |
selectors |
private JTabbedPane |
tabbedPane |
| Constructor and Description |
|---|
TabChangeListener(JTabbedPane tabbedPane,
GUIRunner.TestCaseLister testCaseLister,
GUIRunner.HierarchyWrapper testHierarchy) |
| Modifier and Type | Method and Description |
|---|---|
private void |
setSelUnSel(int index)
Makes the tab with the given index in the foreground
and the other one in the background.
|
void |
stateChanged(ChangeEvent che) |
private static final int SEL_IND1
GUIRunner.setCenter(Actions).
It must be the one initially in the foreground.private static final GUIRunner.Selector EMPTY_SELECTOR
private final JTabbedPane tabbedPane
private final GUIRunner.Selector[] selectors
TabChangeListener(JTabbedPane tabbedPane, GUIRunner.TestCaseLister testCaseLister, GUIRunner.HierarchyWrapper testHierarchy)
private void setSelUnSel(int index)
As described
for GUIRunner.Selector.registerSelector(GUIRunner.Selector),
the tab in the foreground receives its selection events directly,
whereas the one in the background
must be registered at the one in the foreground
to receive the according selections.
For sake of unification, the one in the background also sends
selection events to the one which is registered,
but this is just EMPTY_SELECTOR.
index - the index of the tab/Selector in the foreground.
This may be either 0 or 1.public void stateChanged(ChangeEvent che)
stateChanged in interface ChangeListenerCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.