Interface MainScreenPresentation
-
public interface MainScreenPresentationThis interface describes all the interactions with the presentation object.- Author:
- Fabrizio Giudici (Fabrizio.Giudici@tidalwave.it)
- Stereotype:
- Presentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMainScreenPresentation.BindingsIf the presentation contains form fields, it's a good practice to group them together within a single class which exposesBoundPropertyinstances.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(MainScreenPresentation.Bindings bindings)A presentation always exposes abind()method which is invoked by the control and binds callbacks and form fields.voidnotify(it.tidalwave.util.ui.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 aUserNotificationWithFeedback.voidnotify(java.lang.String message)Simple message notifications that appear in the presentation (for instance in aLabelcan be passed as simple strings of specific methods.voidpickDirectory(it.tidalwave.role.ui.BoundProperty<java.nio.file.Path> selectedFolder, it.tidalwave.util.ui.UserNotificationWithFeedback notification)voidpickFile(it.tidalwave.role.ui.BoundProperty<java.nio.file.Path> selectedFile, it.tidalwave.util.ui.UserNotificationWithFeedback notification)voidpopulate(it.tidalwave.role.ui.PresentationModel pm1, it.tidalwave.role.ui.PresentationModel pm2, it.tidalwave.role.ui.PresentationModel pm3)A presentation also exposes somepopulateXYZ()methods which are used to fill various parts of the UI with data.voidshowUp()A presentation typically exposes ashowUp()method which brings the object into a visible state.
-
-
-
Method Detail
-
bind
void bind(@Nonnull MainScreenPresentation.Bindings bindings)A presentation always exposes abind()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.
-
showUp
void showUp()
A presentation typically exposes ashowUp()method which brings the object into a visible state. There is no requirement on the name and signature of the method.
-
populate
void populate(@Nonnull it.tidalwave.role.ui.PresentationModel pm1, @Nonnull it.tidalwave.role.ui.PresentationModel pm2, @Nonnull it.tidalwave.role.ui.PresentationModel pm3)A presentation also exposes somepopulateXYZ()methods which are used to fill various parts of the UI with data. Data structures are modelled byPresentationModels. There is no requirement on the name of the method.
-
notify
void notify(@Nonnull it.tidalwave.util.ui.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 aUserNotificationWithFeedback. There is no requirement on the name of the method.
-
notify
void notify(@Nonnull java.lang.String message)Simple message notifications that appear in the presentation (for instance in aLabelcan be passed as simple strings of specific methods.
-
pickFile
void pickFile(@Nonnull it.tidalwave.role.ui.BoundProperty<java.nio.file.Path> selectedFile, @Nonnull it.tidalwave.util.ui.UserNotificationWithFeedback notification)
-
pickDirectory
void pickDirectory(@Nonnull it.tidalwave.role.ui.BoundProperty<java.nio.file.Path> selectedFolder, @Nonnull it.tidalwave.util.ui.UserNotificationWithFeedback notification)
-
-