Class ValueNewPageFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueNewPageFactory(NewPage newPage) Create the factory for returning the given newPage instance.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onCreateNewPage(@NonNull() NewPageFactory.OnNewPageReadyListener callback) This method is called every time the factory should create a NewPage instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueNewPageFactory

        ValueNewPageFactory(NewPage newPage)
        Create the factory for returning the given newPage instance.
        Parameters:
        newPage - NewPage instance that should be returned by this factory.
    • Method Detail

      • onCreateNewPage

         void onCreateNewPage(@NonNull() NewPageFactory.OnNewPageReadyListener callback)

        This method is called every time the factory should create a NewPage instance. Since creation of the new page can be a longer running asynchronous operation (for example via a page configuration dialog shown to the user) this method receives a callback that the factory can call once the new page is ready.

        Parameters:
        callback - OnNewPageReadyListener for notifying the editor once the new page is ready.