Interface MainPanelPresentation


public interface MainPanelPresentation
This interface describes all the interactions with the presentation object.
Author:
Fabrizio Giudici
Stereotype:
Presentation
  • Method Details

    • bind

      void bind(@Nonnull MainPanelPresentation.Bindings bindings)
      A presentation always exposes a bind() method which is invoked by the control and binds callbacks and form fields. There is no requirement on the name and signature of the method.
      Parameters:
      bindings - the container of bindings
    • populate

      void populate(@Nonnull PresentationModel pmSimpleEntities, @Nonnull PresentationModel pmDciEntities, @Nonnull PresentationModel pmFileEntities)
      A presentation also exposes some populateXYZ() methods which are used to fill various parts of the UI with model. Data structures are modelled by PresentationModels. There is no requirement on the name of the method.
      Parameters:
      pmSimpleEntities - the presentation model for SimpleEntity instances
      pmDciEntities - the presentation model for SimpleDciEntity instances
      pmFileEntities - the presentation model for FileEntity instances
    • notify

      void notify(@Nonnull UserNotificationWithFeedback notification)
      When the control requires an interaction with the user in form of a dialog box with feedback (such as Ok/Cancel) a method must be exposed which accepts a UserNotificationWithFeedback. There is no requirement on the name of the method.
      Parameters:
      notification - the object managing the interaction
    • notify

      void notify(@Nonnull String message)
      Displays a notification in the presentation.
      Parameters:
      message - the text of the notification
    • pickFile

      void pickFile(@Nonnull BoundProperty<Path> selectedFile, @Nonnull UserNotificationWithFeedback notification)
      Asks the user to pick a file.
      Parameters:
      selectedFile - a property containing both the file to pre-select and later the piked file
      notification - the object managing the interaction
    • pickDirectory

      void pickDirectory(@Nonnull BoundProperty<Path> selectedFolder, @Nonnull UserNotificationWithFeedback notification)
      Asks the user to pick a directory.
      Parameters:
      selectedFolder - a property containing both the directory to pre-select and later the picked folder
      notification - the object managing the interaction