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 SummaryFields Modifier and Type Field Description static StringPRESENTATION_ADAPTER_ID_PROPERTY
 - 
Constructor SummaryConstructors Constructor Description PresentationAdapterProvider()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail- 
PRESENTATION_ADAPTER_ID_PROPERTYpublic static final String PRESENTATION_ADAPTER_ID_PROPERTY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPresentationAdapterpublic 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.
 
 - 
registerAdapterpublic static void registerAdapter(IPresentationAdapter adapter, String id) Registers the presentation adapter with the given id.- Parameters:
- id- The unique identifier of the adapter. Cannot be- null.
- adapter- The adapter instance to register. Cannot be- null.
 
 
- 
 
-