C
- An interface type that defines all shared business methods.public abstract class BaseViewWithUiHandlers<C extends com.gwtplatform.mvp.client.UiHandlers>
extends com.gwtplatform.mvp.client.ViewWithUiHandlers<C>
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<com.gwtplatform.mvp.client.ViewWithUiHandlers<C>> |
childDialogs
Child dialogs must be injected by a concrete view from its constructor.
|
protected java.util.logging.Logger |
logger
The logger
|
private com.gwtplatform.mvp.client.presenter.slots.NestedSlot |
modalContentSlot
The modal content slot
|
Constructor and Description |
---|
BaseViewWithUiHandlers()
Creates this view.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
Adds a child dialog to be managed by this view.
|
protected void |
onAttach()
Method called after the view is attached to the DOM.
|
protected void |
onDetach()
Method called after the view is detached to the DOM.
|
protected void |
removeModaDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
Removes the given child dialog from the managed child dialogs.
|
void |
setUiHandlers(C uiHandlers)
Sets the view's controller and shares it between its child dialogs.
|
protected void |
setupModaDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
Setups the given child dialog.
|
protected void |
setupModalSlot(com.gwtplatform.mvp.client.presenter.slots.NestedSlot modalContentSlot,
java.lang.Object container)
Setups the given modal slot to be used as the child dialog slot.
|
protected java.util.logging.Logger logger
private com.gwtplatform.mvp.client.presenter.slots.NestedSlot modalContentSlot
private final java.util.LinkedList<com.gwtplatform.mvp.client.ViewWithUiHandlers<C extends com.gwtplatform.mvp.client.UiHandlers>> childDialogs
protected void onAttach()
onAttach
in class com.gwtplatform.mvp.client.ViewImpl
protected void onDetach()
onDetach
in class com.gwtplatform.mvp.client.ViewImpl
protected void setupModalSlot(com.gwtplatform.mvp.client.presenter.slots.NestedSlot modalContentSlot, java.lang.Object container)
modalContentSlot
- The given modal slotcontainer
- The modal slot containerprotected void addDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
dialog
- The child dialog viewprotected void setupModaDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
dialog
- The given child dialogprotected void removeModaDialog(com.gwtplatform.mvp.client.ViewWithUiHandlers<C> dialog)
dialog
- The given child dialogpublic void setUiHandlers(C uiHandlers)
setUiHandlers
in interface com.gwtplatform.mvp.client.HasUiHandlers<C extends com.gwtplatform.mvp.client.UiHandlers>
setUiHandlers
in class com.gwtplatform.mvp.client.ViewWithUiHandlers<C extends com.gwtplatform.mvp.client.UiHandlers>
uiHandlers
- The shared controller instance