Package com._1c.g5.aef2.scenes
Class Scene
java.lang.Object
com._1c.g5.aef2.scenes.Scene
- All Implemented Interfaces:
IServiceEventTracker,IScene
Default
IScene implementation.-
Constructor Summary
Constructors -
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.final 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.voidtrackEvent(IServiceEvent event) Tracks the given event.voidunregisterSearchProvider(IComponentSearchProvider searchProvider) Unregisters a provider used by the scene for searching components.
-
Constructor Details
-
Scene
Instantiates a new scene.- Parameters:
engine- the engine to construct a scene for.
-
-
Method Details
-
getEngine
-
getRenderer
- Specified by:
getRendererin interfaceIScene- Returns:
- this scene renderer.
-
setComponent
Description copied from interface:ISceneSets the root component of this scene.- Specified by:
setComponentin interfaceIScene- Parameters:
component- the component to set as the root.
-
getComponent
Description copied from interface:ISceneReturns the root component of this scene.- Specified by:
getComponentin interfaceIScene- Returns:
- the root component of this scene.
-
setRenderer
Description copied from interface:ISceneSets this scene renderer.- Specified by:
setRendererin interfaceIScene- Parameters:
renderer- the renderer to set.
-
refresh
public void refresh()Description copied from interface:ISceneRefreshes this scene presentation completely. -
relayout
public void relayout()Description copied from interface:ISceneTriggers this scene's layout processing. -
refresh
Description copied from interface:ISceneRefreshes this scene's subtree presentation starting at the given component. -
commit
Description copied from interface:ISceneCommits the model for the given component. -
addSceneListener
Description copied from interface:ISceneAdds this scene listener.- Specified by:
addSceneListenerin interfaceIScene- Parameters:
listener- the listener to add.
-
removeSceneListener
Description copied from interface:ISceneRemoves this scene listener.- Specified by:
removeSceneListenerin interfaceIScene- Parameters:
listener- the listener to remove.
-
dispose
public void dispose()Description copied from interface:ISceneDisposes this scene. -
registerServiceConsumer
Description copied from interface:ISceneRegisters a given service consumer instance.- Specified by:
registerServiceConsumerin interfaceIScene- Parameters:
serviceConsumer- a service consumer.- See Also:
-
trackEvent
Description copied from interface:IServiceEventTrackerTracks the given event.- Specified by:
trackEventin interfaceIServiceEventTracker- Parameters:
event- the service event.
-
registerSearchProvider
Description copied from interface:ISceneRegisters a provider to be used by the scene for searching components.- Specified by:
registerSearchProviderin interfaceIScene- Parameters:
searchProvider- The search provider
-
unregisterSearchProvider
Description copied from interface:ISceneUnregisters a provider used by the scene for searching components.- Specified by:
unregisterSearchProviderin interfaceIScene
-
queueEvent
Description copied from interface:ISceneFinds a component by a query using the registered search providers and queues an event for it.- Specified by:
queueEventin interfaceIScene- Parameters:
query- The query for identifying the component to queue the event toevent- The event to be queued- See Also:
-
handleComponentEvent
Description copied from interface:ISceneNotifies the scene that a component-specific event has happened.- Specified by:
handleComponentEventin interfaceIScene- Parameters:
component- The component from which originates the eventevent- The event that has happened with the component
-
putState
Description copied from interface:IScenePuts the specifiedstatefor the givencomponent. -
clearState
Description copied from interface:ISceneClears state for the givencomponent.- Specified by:
clearStatein interfaceIScene- Parameters:
component- the component, cannot benull.- Returns:
- the previous stored state, can be
nullif there are no state for the specifiedcomponent.
-
getState
Description copied from interface:ISceneReturns the current state for the givencomponent.
-