Package com._1c.g5.v8.dt.metadata
Class PresentationAdapterProvider
java.lang.Object
com._1c.g5.v8.dt.metadata.PresentationAdapterProvider
Provider of
IPresentationAdapter.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IPresentationAdaptergetPresentationAdapter(IBmObject target) Gets the presentation adapter associated with the target.static voidregisterAdapter(IPresentationAdapter adapter, String id) Registers the presentation adapter with the given id.
-
Field Details
-
PRESENTATION_ADAPTER_ID_PROPERTY
- See Also:
-
-
Constructor Details
-
PresentationAdapterProvider
public PresentationAdapterProvider()
-
-
Method Details
-
getPresentationAdapter
Gets the presentation adapter associated with the target.- Parameters:
target- Target object, could be null for the convenience.- Returns:
- The corresponding adapter (if registered); null if no adapter was associated with the object earlier.
-
registerAdapter
Registers the presentation adapter with the given id.- Parameters:
id- The unique identifier of the adapter. Cannot benull.adapter- The adapter instance to register. Cannot benull.
-