public abstract class Presenter<V extends org.ctoolkit.gwt.client.view.IView<?>>
extends org.ctoolkit.gwt.client.presenter.BinderyPresenter<V>
EventBus.| Modifier and Type | Field and Description |
|---|---|
protected AppMessages |
messages |
| Constructor and Description |
|---|
Presenter(V view,
com.google.gwt.place.shared.PlaceController placeController) |
| Modifier and Type | Method and Description |
|---|---|
protected AppEventBus |
bus() |
static void |
error(String msg)
Show info message.
|
static void |
info(String msg)
Show info message.
|
static boolean |
isUserLoggedIn()
Check whether current Firebase user exist.
|
void |
setTitle(String titleText)
Set title of page.
|
static void |
success(String msg)
Show success message.
|
static void |
success(String success,
FacadeCallback.Failure failure)
Show conditional message.
|
static void |
warn(String msg)
Show warning message.
|
static void |
warn(String msg,
FacadeCallback.Failure failure)
Show warning message.
|
bind, controller, equals, getPlace, onAfterBackingObject, onBackingObject, onBeforeBackingObject, setPlace, start, viewprotected AppMessages messages
public Presenter(V view, com.google.gwt.place.shared.PlaceController placeController)
public static boolean isUserLoggedIn()
true if user is logged inpublic static void info(String msg)
Show info message.
msg - message to show in feedback panelpublic static void success(String msg)
Show success message.
msg - message to show in feedback panelpublic static void warn(String msg)
Show warning message.
msg - message to show in feedback panelpublic static void warn(String msg, FacadeCallback.Failure failure)
Show warning message.
msg - message to show in feedback panelpublic static void error(String msg)
Show info message.
msg - message to show in feedback panelpublic static void success(String success, FacadeCallback.Failure failure)
Show conditional message.
success - message to show in feedback panelprotected final AppEventBus bus()
bus in class org.ctoolkit.gwt.client.presenter.BinderyPresenter<V extends org.ctoolkit.gwt.client.view.IView<?>>public void setTitle(String titleText)
Set title of page. Call this method in BinderyPresenter.onBackingObject()
method to ensure that title will be rendered on every page correctly.
titleText - text which will be shown in the browser window titleCopyright © 2023. All rights reserved.