Class PresentationAdapterProvider

    • Constructor Detail

      • PresentationAdapterProvider

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