-
Nested Class Summary
Nested classes/interfaces inherited from class org.praxislive.code.CodeContext
CodeContext.ClockListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(CodeComponent<AudioCodeDelegate> cmp, CodeContext<AudioCodeDelegate> oldCtxt) A hook method that will be called when the CodeContext is configured on a component.protected voidCalled when the hierarchy changes, which might be because the component hierarchy has changed (seeComponent.hierarchyChanged()), the context has been added or is being removed from the component, or for any other reason that cached information should be invalidated (eg. anything retrieved from the lookup).protected voidonInit()Hook called when the code context becomes active, either as a result of the execution context becoming active or the code context being attached to a component within an active execution context.protected voidonReset()Hook called when the context is being reset.protected voidtick(ExecutionContext source) Hook called by the clock listener on the execution context.Methods inherited from class org.praxislive.code.CodeContext
addClockListener, checkActive, controlIDs, dispose, flush, getAddress, getComponent, getControl, getControlDescriptor, getDelegate, getExecutionContext, getInfo, getLog, getLogLevel, getLookup, getPort, getPortDescriptor, getTime, invoke, invokeCallable, locateService, log, onStart, onStop, portIDs, removeClockListener, resetAndInitialize, update
-
Constructor Details
-
AudioCodeContext
-
-
Method Details
-
configure
protected void configure(CodeComponent<AudioCodeDelegate> cmp, CodeContext<AudioCodeDelegate> oldCtxt) Description copied from class:CodeContextA hook method that will be called when the CodeContext is configured on a component. It is called after controls, ports and refs have been configured. Subclasses may override this to do additional configuration. The default implementation does nothing.- Overrides:
configurein classCodeContext<AudioCodeDelegate>- Parameters:
cmp- component being attached tooldCtxt- previous context, or null if there was none
-
hierarchyChanged
protected void hierarchyChanged()Description copied from class:CodeContextCalled when the hierarchy changes, which might be because the component hierarchy has changed (seeComponent.hierarchyChanged()), the context has been added or is being removed from the component, or for any other reason that cached information should be invalidated (eg. anything retrieved from the lookup). Subclasses may override this to handle such events / invalidate lookup results. The default implementation does nothing.- Overrides:
hierarchyChangedin classCodeContext<AudioCodeDelegate>
-
onInit
protected void onInit()Description copied from class:CodeContextHook called when the code context becomes active, either as a result of the execution context becoming active or the code context being attached to a component within an active execution context.- Overrides:
onInitin classCodeContext<AudioCodeDelegate>
-
onReset
protected void onReset()Description copied from class:CodeContextHook called when the context is being reset.Code inside this hook should not invoke code on the delegate.
- Overrides:
onResetin classCodeContext<AudioCodeDelegate>
-
tick
Description copied from class:CodeContextHook called by the clock listener on the execution context. The default implementation does nothing.- Overrides:
tickin classCodeContext<AudioCodeDelegate>- Parameters:
source- execution context
-