Interface HardwareBindingSource<HardwareBindingType extends HardwareBinding>
- All Known Subinterfaces:
AbsoluteHardwareControl,AbsoluteHardwareKnob,ContinuousHardwareControl<HardwareBindingType>,HardwareAction,HardwareSlider,RelativeHardwareControl,RelativeHardwareKnob
public interface HardwareBindingSource<HardwareBindingType extends HardwareBinding>
Represents the source of a
HardwareBinding.- Since:
- API version 10
-
Method Summary
Modifier and TypeMethodDescriptionaddBinding(HardwareBindable target) Binds this source to the supplied target and returns the created binding.booleanChecks if it is possible to make a binding from this source to the supplied target object.voidClears all bindings from this source to its targets.setBinding(HardwareBindable target) Ensures there is a single binding to the supplied target.
-
Method Details
-
canBindTo
Checks if it is possible to make a binding from this source to the supplied target object. -
addBinding
Binds this source to the supplied target and returns the created binding. This can only be called if thecanBindTo(Object)returns true. -
clearBindings
void clearBindings()Clears all bindings from this source to its targets. -
setBinding
Ensures there is a single binding to the supplied target. This is a convenience method that is equivalent to callingclearBindings()and theaddBinding(HardwareBindable)
-