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 TypeMethodDescriptionvoid
addSceneListener
(ISceneListener listener) Adds this scene listener.clearState
(IComponent<?> component) Clears state for the givencomponent
.void
commit
(IComponent<?> component) Commits the model for the given component.void
dispose()
Disposes this scene.IComponent<?>
Returns the root component of this scene.IRenderer<?>
getState
(IComponent<?> component) Returns the current state for the givencomponent
.void
handleComponentEvent
(IComponent<?> component, IEvent event) Notifies the scene that a component-specific event has happened.putState
(IComponent<?> component, IState state) Puts the specifiedstate
for the givencomponent
.void
queueEvent
(Object query, IClientEvent event) Finds a component by a query using the registered search providers and queues an event for it.void
refresh()
Refreshes this scene presentation completely.void
refresh
(IComponent<?> component) Refreshes this scene's subtree presentation starting at the given component.void
registerSearchProvider
(IComponentSearchProvider searchProvider) Registers a provider to be used by the scene for searching components.void
registerServiceConsumer
(IServiceConsumer<?> serviceConsumer) Registers a given service consumer instance.void
relayout()
Triggers this scene's layout processing.void
removeSceneListener
(ISceneListener listener) Removes this scene listener.void
setComponent
(IComponent<?> component) Sets the root component of this scene.void
setRenderer
(IRenderer<?> renderer) Sets this scene renderer.void
unregisterSearchProvider
(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 specifiedstate
for the givencomponent
.- Parameters:
component
- the component, cannot benull
.state
- the state, can benull
if 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
null
if 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
null
if there are no state for the specifiedcomponent
.
-