Class AbstractRefresher
java.lang.Object
com._1c.g5.aef2.standard.definitions.refresher.AbstractRefresher
- All Implemented Interfaces:
IRefresher
- Direct Known Subclasses:
AbstractBmRefresher
,MdAdoptedPropertyChangeRefresher
,ModelDrivenRefresher
The abstract implementation of
IRefresher
. It doesn't listen any service, so it never triggers the
refresh(boolean)
. Override this behavior.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the refresher instance.protected IManagingComponent<?>
Returns the component the refresher is initialized by ornull
.void
initialize
(IManagingComponent<?> component) Initializes the refresher by theIManagingComponent
.void
refresh
(boolean forced) Performs the refresh.
The refresh can beforced
or not.
-
Constructor Details
-
AbstractRefresher
public AbstractRefresher()
-
-
Method Details
-
initialize
Description copied from interface:IRefresher
Initializes the refresher by theIManagingComponent
.- Specified by:
initialize
in interfaceIRefresher
- Parameters:
component
- the component, cannot benull
.
-
refresh
public void refresh(boolean forced) Description copied from interface:IRefresher
Performs the refresh.
The refresh can beforced
or not. The forced refresh means that the receiving component shouldn't decide whether to refresh the scene entirely or not. It just rebuilds itself, so the existing components will be destroyed (disposed) and the new ones will be created.
On the other hand the force-less refresh means that the receiving component choices to refresh the scene or just update the separate components (or even does nothing) in accordance with its knowledge about the 'context'.- Specified by:
refresh
in interfaceIRefresher
- Parameters:
forced
- the flag indicating whether use forced refresh or not.
-
dispose
public void dispose()Description copied from interface:IRefresher
Disposes the refresher instance.- Specified by:
dispose
in interfaceIRefresher
-
getComponent
Returns the component the refresher is initialized by ornull
.- Returns:
- the component the refresher is initialized by or
null
. - See Also:
-