|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.framework.context.AbstractUIContext
public abstract class AbstractUIContext
Abstract basic implementation of UiContext
. Delegates method calls to OverlayPresenter
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.ui.api.overlay.OverlayLayer |
---|
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel |
Constructor Summary | |
---|---|
AbstractUIContext()
|
Method Summary | |
---|---|
protected abstract OverlayPresenter |
initializeOverlayPresenter()
|
void |
openAlert(MessageStyleType type,
String title,
String body,
String confirmButtonText,
AlertCallback cb)
Alert dialog is a dialog where user is given a message and confirm button no chance to cancel. |
void |
openAlert(MessageStyleType type,
View viewToShow,
String confirmButtonText,
AlertCallback cb)
Alert dialog is a dialog where user is given a message and confirm button no chance to cancel. |
void |
openConfirmation(MessageStyleType type,
String title,
String body,
String confirmButtonText,
String cancelButtonText,
boolean cancelIsDefault,
ConfirmationCallback cb)
Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel. |
void |
openConfirmation(MessageStyleType type,
View viewToShow,
String confirmButtonText,
String cancelButtonText,
boolean cancelIsDefault,
ConfirmationCallback cb)
Confirmation dialog is a dialog where user is presented a message and chance to confirm or to cancel. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title)
Notification indicator is a message banner that only shows a message to user. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title,
String linkText,
NotificationCallback cb)
Notification indicator is a message banner that only shows a message to user. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
View viewToShow)
Notification indicator is a message banner that only shows a message to user. |
OverlayCloser |
openOverlay(View view)
Open an Overlay on top of the OverlayLayer implementer. |
OverlayCloser |
openOverlay(View view,
OverlayLayer.ModalityLevel modalityLevel)
Open an Overlay on top of the OverlayLayer implementer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUIContext()
Method Detail |
---|
protected abstract OverlayPresenter initializeOverlayPresenter()
public OverlayCloser openOverlay(View view)
OverlayLayer
openOverlay
in interface OverlayLayer
view
- View of the component to be displayed modally.public OverlayCloser openOverlay(View view, OverlayLayer.ModalityLevel modalityLevel)
OverlayLayer
openOverlay
in interface OverlayLayer
modalityLevel
- Modality levelpublic void openAlert(MessageStyleType type, View viewToShow, String confirmButtonText, AlertCallback cb)
OverlayLayer
openAlert
in interface OverlayLayer
public void openAlert(MessageStyleType type, String title, String body, String confirmButtonText, AlertCallback cb)
OverlayLayer
openAlert
in interface OverlayLayer
public void openConfirmation(MessageStyleType type, View viewToShow, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback cb)
OverlayLayer
openConfirmation
in interface OverlayLayer
public void openConfirmation(MessageStyleType type, String title, String body, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback cb)
OverlayLayer
openConfirmation
in interface OverlayLayer
public void openNotification(MessageStyleType type, boolean doesTimeout, View viewToShow)
OverlayLayer
openNotification
in interface OverlayLayer
viewToShow
- Content to show as View.public void openNotification(MessageStyleType type, boolean doesTimeout, String title)
OverlayLayer
openNotification
in interface OverlayLayer
title
- Content to show as string.public void openNotification(MessageStyleType type, boolean doesTimeout, String title, String linkText, NotificationCallback cb)
OverlayLayer
openNotification
in interface OverlayLayer
title
- Content to show as string.linkText
- Text to show in a link button.cb
- Callback for when user clicks on link.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |