- java.lang.Object
-
- org.praxislive.code.ControlDescriptor
-
- org.praxislive.code.TriggerControl.Descriptor
-
- Enclosing class:
- TriggerControl
public static class TriggerControl.Descriptor extends ControlDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.ControlDescriptor
ControlDescriptor.Category
-
-
Constructor Summary
Constructors Constructor Description Descriptor(String id, int index, TriggerControl.Binding binding)
Descriptor(String id, int index, TriggerControl.Binding binding, Field triggerField)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attach(CodeContext<?> context, Control previous)
Configure the control for the provided context during attachment.static TriggerControl.Descriptor
create(CodeConnector<?> connector, T ann, Field field)
static TriggerControl.Descriptor
create(CodeConnector<?> connector, T ann, Method method)
PortDescriptor
createPortDescriptor()
Control
getControl()
Get the wrapped control.ControlInfo
getInfo()
Get the control info for this control.void
reset(boolean full)
Hook called to reset during attachment / detachment, or execution context state changes.-
Methods inherited from class org.praxislive.code.ControlDescriptor
dispose, getCategory, getID, getIndex, stopping
-
-
-
-
Constructor Detail
-
Descriptor
public Descriptor(String id, int index, TriggerControl.Binding binding)
-
Descriptor
public Descriptor(String id, int index, TriggerControl.Binding binding, Field triggerField)
-
-
Method Detail
-
getInfo
public ControlInfo getInfo()
Description copied from class:ControlDescriptor
Get the control info for this control.- Specified by:
getInfo
in classControlDescriptor
- Returns:
- info
-
attach
public void attach(CodeContext<?> context, Control previous)
Description copied from class:ControlDescriptor
Configure the control for the provided context during attachment. The previous control with the same ID is provided - it may be null or of a different type.Note : any control passed in as previous will not be disposed
- Specified by:
attach
in classControlDescriptor
- Parameters:
context
- context being attached toprevious
- previous control with same ID, may be null or different type
-
reset
public void reset(boolean full)
Description copied from class:ControlDescriptor
Hook called to reset during attachment / detachment, or execution context state changes. Full reset happens on execution context changes.- Overrides:
reset
in classControlDescriptor
- Parameters:
full
- true if execution context state
-
getControl
public Control getControl()
Description copied from class:ControlDescriptor
Get the wrapped control. Should only be called when attached - behaviour is otherwise undefined.- Specified by:
getControl
in classControlDescriptor
- Returns:
- control
-
createPortDescriptor
public PortDescriptor createPortDescriptor()
-
create
public static TriggerControl.Descriptor create(CodeConnector<?> connector, T ann, Field field)
-
create
public static TriggerControl.Descriptor create(CodeConnector<?> connector, T ann, Method method)
-
-