Package com._1c.g5.aef2.scenes
Interface IScene
-
- All Superinterfaces:
IServiceEventTracker
- All Known Implementing Classes:
Scene
public interface IScene extends IServiceEventTracker
Scene manages the component tree.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSceneListener(ISceneListener listener)Adds this scene listener.IStateclearState(IComponent<?> component)Clears state for the givencomponent.voidcommit(IComponent<?> component)Commits the model for the given component.voiddispose()Disposes this scene.IComponent<?>getComponent()Returns the root component of this scene.IEnginegetEngine()IRenderer<?>getRenderer()IStategetState(IComponent<?> component)Returns the current state for the givencomponent.voidhandleComponentEvent(IComponent<?> component, IEvent event)Notifies the scene that a component-specific event has happened.IStateputState(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 Detail
-
getEngine
IEngine getEngine()
- Returns:
- the engine this scene belongs to.
-
getRenderer
IRenderer<?> getRenderer()
- Returns:
- this scene renderer.
-
setComponent
void setComponent(IComponent<?> component)
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
void setRenderer(IRenderer<?> renderer)
Sets this scene renderer.- Parameters:
renderer- the renderer to set.
-
refresh
void refresh()
Refreshes this scene presentation completely.
-
refresh
void refresh(IComponent<?> component)
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
void commit(IComponent<?> component)
Commits the model for the given component.- Parameters:
component- the component to perform commit for.- See Also:
IComponent.commit(),IComponent.areChildCommitsEnabled(),IModel.commit()
-
addSceneListener
void addSceneListener(ISceneListener listener)
Adds this scene listener.- Parameters:
listener- the listener to add.
-
removeSceneListener
void removeSceneListener(ISceneListener listener)
Removes this scene listener.- Parameters:
listener- the listener to remove.
-
dispose
void dispose()
Disposes this scene.
-
registerServiceConsumer
void registerServiceConsumer(IServiceConsumer<?> serviceConsumer)
Registers a given service consumer instance.- Parameters:
serviceConsumer- a service consumer.- See Also:
IServiceConsumer,IServiceEventTracker
-
registerSearchProvider
void registerSearchProvider(IComponentSearchProvider searchProvider)
Registers a provider to be used by the scene for searching components.- Parameters:
searchProvider- The search provider
-
unregisterSearchProvider
void unregisterSearchProvider(IComponentSearchProvider searchProvider)
Unregisters a provider used by the scene for searching components.- Parameters:
delegate- The identifying delegate
-
queueEvent
void queueEvent(Object query, IClientEvent event)
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:
registerSearchProvider(IComponentSearchProvider)
-
handleComponentEvent
void handleComponentEvent(IComponent<?> component, IEvent event)
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
IState putState(IComponent<?> component, IState state)
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
IState clearState(IComponent<?> component)
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
IState getState(IComponent<?> component)
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.
-
-