Package eu.simuline.testhelpers
Interface GUIRunner.Selector
-
- All Known Implementing Classes:
GUIRunner.HierarchyWrapper,GUIRunner.TestCaseLister
- Enclosing class:
- GUIRunner
static interface GUIRunner.SelectorMinimal interface for notifying about singular selection events. Implemented byGUIRunner.HierarchyWrapper, byGUIRunner.TestCaseListerand byGUIRunner.TabChangeListener.EMPTY_SELECTOR.- See Also:
GUIRunner.TabChangeListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearSelection()Clears the selection.voidregisterSelector(GUIRunner.Selector sel)Acquaints this selector with another one which is notified of the selection events of thisSelector.voidsetSelection(int index)Sets selection ofindexth item and clears other selections.
-
-
-
Method Detail
-
setSelection
void setSelection(int index)
Sets selection ofindexth item and clears other selections.- Parameters:
index- a non-negativeintvalue 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_SELECTORwhich takes no actions.- Parameters:
sel- anotherSelector.- Throws:
java.lang.IllegalStateException- only forGUIRunner.TabChangeListener.EMPTY_SELECTOR.- See Also:
GUIRunner.TabChangeListener.setSelUnSel(int)
-
-