Class PresentationAdapterProvider

java.lang.Object
com._1c.g5.v8.dt.metadata.PresentationAdapterProvider

public class PresentationAdapterProvider extends Object
  • Field Details

  • Constructor Details

    • PresentationAdapterProvider

      public PresentationAdapterProvider()
  • Method Details

    • 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 be null.
      adapter - The adapter instance to register. Cannot be null.