java.lang.Object
org.praxislive.code.SharedCodeProperty
- All Implemented Interfaces:
Control
A property control for shared code classes. A SharedCodeProperty can be added
to a container (eg. Root). The
SharedCodeContext should be added to
the container's lookup where it can be found and used by contained code
components.-
Constructor Summary
ConstructorsConstructorDescriptionSharedCodeProperty(Lookup.Provider lookupContext, Consumer<LogBuilder> logHandler) Create a shared code property. -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(Call call, PacketRouter router) Get the add control linked to this property.Get the merge control linked to this property.The shared code context, which should be added to the container's lookup.getValue()Access the current value as a map.
-
Constructor Details
-
SharedCodeProperty
Create a shared code property.- Parameters:
lookupContext- lookup provider, eg. the containerlogHandler- a consumer for logs
-
-
Method Details
-
call
-
getAddControl
Get the add control linked to this property. See.invalid reference
#ADD_INFO- Returns:
- add control
-
getMergeControl
Get the merge control linked to this property. See.invalid reference
#MERGE_INFO- Returns:
- merge control
-
getValue
Access the current value as a map.- Returns:
- current value
-