Module interacto.java.api
Package io.github.interacto.instrument
Interface Instrument<T extends WidgetBinding<? extends Command>>
-
- All Superinterfaces:
Modifiable,Preferenciable,Reinitialisable
- All Known Implementing Classes:
InstrumentImpl
public interface Instrument<T extends WidgetBinding<? extends Command>> extends Preferenciable, Modifiable, Reinitialisable
The concept of instrument and its related services.- Author:
- Arnaud BLOUIN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearEvents()Stops the interactions of the instrument and clears all its events waiting for a process.intgetNbWidgetBindings()List<T>getWidgetBindings()booleanhasWidgetBindings()booleanisActivated()voidsetActivated(boolean activated)Activates or deactivates the instrument.voiduninstallBindings()Uninstall all the bindings of the instrument.-
Methods inherited from interface io.github.interacto.properties.Modifiable
isModified, setModified
-
Methods inherited from interface io.github.interacto.properties.Preferenciable
load, save
-
Methods inherited from interface io.github.interacto.properties.Reinitialisable
reinit
-
-
-
-
Method Detail
-
getNbWidgetBindings
int getNbWidgetBindings()
- Returns:
- The number of widget bindings that compose the instrument.
-
hasWidgetBindings
boolean hasWidgetBindings()
- Returns:
- True: the instrument has at least one widget binding. False otherwise.
-
getWidgetBindings
List<T> getWidgetBindings()
- Returns:
- The widget bindings that compose the instrument. Cannot be null.
-
clearEvents
void clearEvents()
Stops the interactions of the instrument and clears all its events waiting for a process.
-
isActivated
boolean isActivated()
- Returns:
- True if the instrument is activated.
-
setActivated
void setActivated(boolean activated)
Activates or deactivates the instrument.- Parameters:
activated- True = activation.
-
uninstallBindings
void uninstallBindings()
Uninstall all the bindings of the instrument.
-
-