java.lang.Object
org.praxislive.code.Descriptor<ResourceProperty.Descriptor>
org.praxislive.code.ControlDescriptor<ResourceProperty.Descriptor>
org.praxislive.code.ResourceProperty.Descriptor
- Enclosing class:
ResourceProperty<V>
public static class ResourceProperty.Descriptor
extends ControlDescriptor<ResourceProperty.Descriptor>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.ControlDescriptor
ControlDescriptor.Category -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(CodeContext<?> context, ResourceProperty.Descriptor previous) Attach the descriptor to the provided context.control()Get the wrapped control.Get the control info for this control.static ResourceProperty.Descriptorcreate(CodeConnector<?> connector, P ann, Field field, ResourceProperty.Loader<?> loader) voidwrite(TreeWriter writer) Write properties or annotations as part of serialization of the component.Methods inherited from class org.praxislive.code.ControlDescriptor
category, index
-
Method Details
-
controlInfo
Description copied from class:ControlDescriptorGet the control info for this control.- Specified by:
controlInfoin classControlDescriptor<ResourceProperty.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<ResourceProperty.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<ResourceProperty.Descriptor>- Returns:
- control
-
write
Description copied from class:DescriptorWrite properties or annotations as part of serialization of the component. The default implementation does nothing.- Overrides:
writein classDescriptor<ResourceProperty.Descriptor>- Parameters:
writer- component tree writer
-
createPortDescriptor
-
create
public static ResourceProperty.Descriptor create(CodeConnector<?> connector, P ann, Field field, ResourceProperty.Loader<?> loader)
-