Package com._1c.g5.v8.dt.metadata
Class PresentationAdapterProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.metadata.PresentationAdapterProvider
-
public class PresentationAdapterProvider extends Object
Provider ofIPresentationAdapter
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PRESENTATION_ADAPTER_ID_PROPERTY
-
Constructor Summary
Constructors Constructor Description PresentationAdapterProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPresentationAdapter
getPresentationAdapter(IBmObject target)
Gets the presentation adapter associated with the target.static void
registerAdapter(IPresentationAdapter adapter, String id)
Registers the presentation adapter with the given id.
-
-
-
Field Detail
-
PRESENTATION_ADAPTER_ID_PROPERTY
public static final String PRESENTATION_ADAPTER_ID_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPresentationAdapter
public static IPresentationAdapter getPresentationAdapter(IBmObject target)
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
public static void registerAdapter(IPresentationAdapter adapter, String id)
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
.
-
-