Package com._1c.g5.aef2.engines
Interface IEngine
- All Superinterfaces:
IRunnableQueue
- All Known Implementing Classes:
Engine
Defines the contract of AEF engine. The engine is the key object to all
the AEF parts. Engine creates and manages a scene, the scene creates and
manages a component tree, the component tree creates and manages a
view model tree, renderer assigned by the engine renders the view model
tree.
- See Also:
-
Field Summary
Fields inherited from interface com._1c.g5.aef2.engines.IRunnableQueue
IMMEDIATE -
Method Summary
Modifier and TypeMethodDescriptioncreateScene(IComponent<?> component, IRenderingParameters parameters) Creates the scene.voiddispose()Disposes the engine including all the scenes.voidFlushes the runnables queue forcing the all queued runnables to execute.org.eclipse.core.databinding.observable.RealmgetRealm()Returns the defaultRealmfor data binding support.booleanReturnstrueif the engine is disposed.<P extends IRenderingParameters>
voidregisterRenderer(Class<? extends IRenderer<P>> renderer, Class<P> parameters) Registers the renderer.voidResumes the runnables queue processing.voidsetDialogRenderer(Class<? extends IRenderer<?>> renderer) Sets the renderer used by this engine to display the dialogs.showDialog(IComponent<M> component, M model) Shows a dialog.voidSuspends the runnables queue processing, effectively this disables the event processing done by the engine for components.Methods inherited from interface com._1c.g5.aef2.engines.IRunnableQueue
queueAndWaitRunnable, queueRunnable
-
Method Details
-
createScene
Creates the scene.- Parameters:
component- the root scene component.parameters- the renderer parameters, actual renderer will be resolved by the parameters runtime class.- Returns:
- the scene created.
-
registerRenderer
<P extends IRenderingParameters> void registerRenderer(Class<? extends IRenderer<P>> renderer, Class<P> parameters) Registers the renderer.- Parameters:
renderer- the renderer class to register.parameters- the renderer parameters class, parameters class is mapped to the renderer class in one-to-many way. In other words, the mapping from parameters to renderer should be unique.
-
setDialogRenderer
Sets the renderer used by this engine to display the dialogs.- Parameters:
renderer- renderer to set.
-
showDialog
Shows a dialog.- Parameters:
component- the root component of the dialog.model- the model of the root component.- Returns:
-
suspendRunnableQueueProcessing
void suspendRunnableQueueProcessing()Suspends the runnables queue processing, effectively this disables the event processing done by the engine for components. -
resumeRunnableQueueProcessing
void resumeRunnableQueueProcessing()Resumes the runnables queue processing. -
flushRunnableQueue
void flushRunnableQueue()Flushes the runnables queue forcing the all queued runnables to execute. -
dispose
void dispose()Disposes the engine including all the scenes. -
isDisposed
boolean isDisposed()Returnstrueif the engine is disposed.- Returns:
trueif the engine is disposed.
-
getRealm
org.eclipse.core.databinding.observable.Realm getRealm()Returns the defaultRealmfor data binding support.- Returns:
Realm
-