Package eu.simuline.testhelpers
Interface GUIRunner.Selector
-
- All Known Implementing Classes:
GUIRunner.HierarchyWrapper
,GUIRunner.TestCaseLister
- Enclosing class:
- GUIRunner
static interface GUIRunner.Selector
Minimal interface for notifying about singular selection events. Implemented byGUIRunner.HierarchyWrapper
, byGUIRunner.TestCaseLister
and byGUIRunner.TabChangeListener.EMPTY_SELECTOR
.- See Also:
GUIRunner.TabChangeListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearSelection()
Clears the selection.void
registerSelector(GUIRunner.Selector sel)
Acquaints this selector with another one which is notified of the selection events of thisSelector
.void
setSelection(int index)
Sets selection ofindex
th item and clears other selections.
-
-
-
Method Detail
-
setSelection
void setSelection(int index)
Sets selection ofindex
th item and clears other selections.- Parameters:
index
- a non-negativeint
value representing the index of a testcase. **** CAUTION: This presupposes that in a tree only the leaves can be selected.
-
clearSelection
void clearSelection()
Clears the selection.
-
registerSelector
void registerSelector(GUIRunner.Selector sel)
Acquaints this selector with another one which is notified of the selection events of thisSelector
. The one in the foreground is notified directly by a mouse event, whereas the one in the background is selected via registration. The one in the background in turn notifies the empty selectorGUIRunner.TabChangeListener.EMPTY_SELECTOR
which takes no actions.- Parameters:
sel
- anotherSelector
.- Throws:
java.lang.IllegalStateException
- only forGUIRunner.TabChangeListener.EMPTY_SELECTOR
.- See Also:
GUIRunner.TabChangeListener.setSelUnSel(int)
-
-