java.lang.Object
org.praxislive.code.Descriptor<TriggerControl.Descriptor>
org.praxislive.code.ControlDescriptor<TriggerControl.Descriptor>
org.praxislive.code.TriggerControl.Descriptor
- Enclosing class:
TriggerControl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.ControlDescriptor
ControlDescriptor.Category -
Constructor Summary
ConstructorsConstructorDescriptionDescriptor(String id, int index, TriggerControl.Binding binding) Deprecated, for removal: This API element is subject to removal in a future version.Descriptor(String id, int index, TriggerControl.Binding binding, Field triggerField) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(CodeContext<?> context, TriggerControl.Descriptor previous) Attach the descriptor to the provided context.control()Get the wrapped control.Get the control info for this control.static TriggerControl.Descriptorcreate(CodeConnector<?> connector, Inject ann, Field field) static TriggerControl.Descriptorcreate(CodeConnector<?> connector, T ann, Field field) static TriggerControl.Descriptorcreate(CodeConnector<?> connector, T ann, Method method) voidonReset()Hook called when the code context becomes inactive, including on context swap, or if anything else triggers a reset while active.voidonStart()Hook called when the code context becomes active due to the execution context state changing.voidonStop()Hook called when the code context becomes inactive due to the execution context state changing.Methods inherited from class org.praxislive.code.ControlDescriptor
category, indexMethods inherited from class org.praxislive.code.Descriptor
dispose, id, onInit, write
-
Constructor Details
-
Descriptor
@Deprecated(forRemoval=true) public Descriptor(String id, int index, TriggerControl.Binding binding) Deprecated, for removal: This API element is subject to removal in a future version. -
Descriptor
@Deprecated(forRemoval=true) public Descriptor(String id, int index, TriggerControl.Binding binding, Field triggerField) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
controlInfo
Description copied from class:ControlDescriptorGet the control info for this control.- Specified by:
controlInfoin classControlDescriptor<TriggerControl.Descriptor>- Returns:
- info
-
attach
Description copied from class:DescriptorAttach the descriptor to the provided context. The previous descriptor with the same ID and type is provided, if it exists. The implementation should handle disposal of the previous descriptor if required.The
Descriptor.onInit()hook will be called after attachment if the code context is active, or when the code context becomes active.- Specified by:
attachin classDescriptor<TriggerControl.Descriptor>- Parameters:
context- code contextprevious- previous descriptor or null
-
onReset
public void onReset()Description copied from class:DescriptorHook called when the code context becomes inactive, including on context swap, or if anything else triggers a reset while active. The default implementation does nothing.- Overrides:
onResetin classDescriptor<TriggerControl.Descriptor>
-
onStart
public void onStart()Description copied from class:DescriptorHook called when the code context becomes active due to the execution context state changing. TheDescriptor.onInit()hook will have been called prior to this hook. The default implementation does nothing.- Overrides:
onStartin classDescriptor<TriggerControl.Descriptor>
-
onStop
public void onStop()Description copied from class:DescriptorHook called when the code context becomes inactive due to the execution context state changing. This hook will be called before theDescriptor.onReset()hook. The default implementation does nothing.- Overrides:
onStopin classDescriptor<TriggerControl.Descriptor>
-
control
Description copied from class:ControlDescriptorGet the wrapped control. Should only be called when attached - behaviour is otherwise undefined.- Specified by:
controlin classControlDescriptor<TriggerControl.Descriptor>- Returns:
- control
-
createPortDescriptor
-
create
-
create
-
create
-