Package com._1c.g5.aef2.scenes
Interface IScene
- All Superinterfaces:
IServiceEventTracker
- All Known Implementing Classes:
Scene
Scene manages the component tree.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSceneListener(ISceneListener listener) Adds this scene listener.clearState(IComponent<?> component) Clears state for the givencomponent.voidcommit(IComponent<?> component) Commits the model for the given component.voiddispose()Disposes this scene.IComponent<?>Returns the root component of this scene.IRenderer<?>getState(IComponent<?> component) Returns the current state for the givencomponent.voidhandleComponentEvent(IComponent<?> component, IEvent event) Notifies the scene that a component-specific event has happened.putState(IComponent<?> component, IState state) Puts the specifiedstatefor the givencomponent.voidqueueEvent(Object query, IClientEvent event) Finds a component by a query using the registered search providers and queues an event for it.voidrefresh()Refreshes this scene presentation completely.voidrefresh(IComponent<?> component) Refreshes this scene's subtree presentation starting at the given component.voidregisterSearchProvider(IComponentSearchProvider searchProvider) Registers a provider to be used by the scene for searching components.voidregisterServiceConsumer(IServiceConsumer<?> serviceConsumer) Registers a given service consumer instance.voidrelayout()Triggers this scene's layout processing.voidremoveSceneListener(ISceneListener listener) Removes this scene listener.voidsetComponent(IComponent<?> component) Sets the root component of this scene.voidsetRenderer(IRenderer<?> renderer) Sets this scene renderer.voidunregisterSearchProvider(IComponentSearchProvider searchProvider) Unregisters a provider used by the scene for searching components.Methods inherited from interface com._1c.g5.aef2.events.IServiceEventTracker
trackEvent
-
Method Details
-
getEngine
IEngine getEngine()- Returns:
- the engine this scene belongs to.
-
getRenderer
IRenderer<?> getRenderer()- Returns:
- this scene renderer.
-
setComponent
Sets the root component of this scene.- Parameters:
component- the component to set as the root.
-
getComponent
IComponent<?> getComponent()Returns the root component of this scene.- Returns:
- the root component of this scene.
-
setRenderer
Sets this scene renderer.- Parameters:
renderer- the renderer to set.
-
refresh
void refresh()Refreshes this scene presentation completely. -
refresh
Refreshes this scene's subtree presentation starting at the given component.- Parameters:
component- the component to start from.
-
relayout
void relayout()Triggers this scene's layout processing. -
commit
Commits the model for the given component.- Parameters:
component- the component to perform commit for.- See Also:
-
addSceneListener
Adds this scene listener.- Parameters:
listener- the listener to add.
-
removeSceneListener
Removes this scene listener.- Parameters:
listener- the listener to remove.
-
dispose
void dispose()Disposes this scene. -
registerServiceConsumer
Registers a given service consumer instance.- Parameters:
serviceConsumer- a service consumer.- See Also:
-
registerSearchProvider
Registers a provider to be used by the scene for searching components.- Parameters:
searchProvider- The search provider
-
unregisterSearchProvider
Unregisters a provider used by the scene for searching components.- Parameters:
delegate- The identifying delegate
-
queueEvent
Finds a component by a query using the registered search providers and queues an event for it.- Parameters:
query- The query for identifying the component to queue the event toevent- The event to be queued- See Also:
-
handleComponentEvent
Notifies the scene that a component-specific event has happened.- Parameters:
component- The component from which originates the eventevent- The event that has happened with the component
-
putState
Puts the specifiedstatefor the givencomponent.- Parameters:
component- the component, cannot benull.state- the state, can benullif there are no previous state for the specifiedcomponent- Returns:
- the previous stored state, can be
null.
-
clearState
Clears state for the givencomponent.- Parameters:
component- the component, cannot benull.- Returns:
- the previous stored state, can be
nullif there are no state for the specifiedcomponent.
-
getState
Returns the current state for the givencomponent.- Parameters:
component- the component, cannot benull.- Returns:
- the current state, can be
nullif there are no state for the specifiedcomponent.
-