java.lang.Object
org.praxislive.code.Descriptor<PropertyControl.Descriptor>
org.praxislive.code.ControlDescriptor<PropertyControl.Descriptor>
org.praxislive.code.PropertyControl.Descriptor
- Enclosing class:
PropertyControl
public static class PropertyControl.Descriptor
extends ControlDescriptor<PropertyControl.Descriptor>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.ControlDescriptor
ControlDescriptor.Category -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(CodeContext<?> context, PropertyControl.Descriptor previous) Attach the descriptor to the provided context.control()Get the wrapped control.Get the control info for this control.static PropertyControl.Descriptorcreate(CodeConnector<?> connector, P ann, Field field) voiddispose()Hook called when the descriptor is disposed, when the code context is changing or the component is being removed.voidonReset()Hook called when the code context becomes inactive, including on context swap, or if anything else triggers a reset while active.voidonStop()Hook called when the code context becomes inactive due to the execution context state changing.voidwrite(TreeWriter writer) Write properties or annotations as part of serialization of the component.Methods inherited from class org.praxislive.code.ControlDescriptor
category, indexMethods inherited from class org.praxislive.code.Descriptor
id, onInit, onStart
-
Method Details
-
controlInfo
Description copied from class:ControlDescriptorGet the control info for this control.- Specified by:
controlInfoin classControlDescriptor<PropertyControl.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<PropertyControl.Descriptor>- Parameters:
context- code contextprevious- previous descriptor or null
-
control
Description copied from class:ControlDescriptorGet the wrapped control. Should only be called when attached - behaviour is otherwise undefined.- Specified by:
controlin classControlDescriptor<PropertyControl.Descriptor>- Returns:
- control
-
createPortDescriptor
-
dispose
public void dispose()Description copied from class:DescriptorHook called when the descriptor is disposed, when the code context is changing or the component is being removed. This hook is not called by default when a descriptor is passed in as the previous instance inDescriptor.attach(org.praxislive.code.CodeContext, org.praxislive.code.Descriptor). The default implementation does nothing.- Overrides:
disposein classDescriptor<PropertyControl.Descriptor>
-
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<PropertyControl.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<PropertyControl.Descriptor>
-
write
Description copied from class:DescriptorWrite properties or annotations as part of serialization of the component. The default implementation does nothing.- Overrides:
writein classDescriptor<PropertyControl.Descriptor>- Parameters:
writer- component tree writer
-
create
-