|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.ui.framework.overlay.OverlayPresenter
public abstract class OverlayPresenter
Provides implementations for most OverlayLayer methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.ui.api.overlay.OverlayLayer |
---|
OverlayLayer.ModalityDomain, OverlayLayer.ModalityLevel |
Field Summary | |
---|---|
static int |
TIMEOUT_SECONDS_DEFAULT
|
Constructor Summary | |
---|---|
OverlayPresenter()
|
Method Summary | |
---|---|
void |
openAlert(MessageStyleType type,
String title,
String body,
String confirmButtonText,
AlertCallback cb)
Convenience method with string content. |
void |
openAlert(MessageStyleType type,
View viewToShow,
String confirmButtonText,
AlertCallback cb)
Open alert dialog with light modality level. |
void |
openConfirmation(MessageStyleType type,
String title,
String body,
String confirmButtonText,
String cancelButtonText,
boolean cancelIsDefault,
ConfirmationCallback cb)
Present modal confirmation dialog with light modality level. |
void |
openConfirmation(MessageStyleType type,
View contentView,
String confirmButtonText,
String cancelButtonText,
boolean cancelIsDefault,
ConfirmationCallback callback)
Present modal confirmation dialog with light modality level. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title)
Convenience method for presenting notification indicator with string content. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
String title,
String linkText,
NotificationCallback cb)
Convenience method for presenting notification indicator with string content. |
void |
openNotification(MessageStyleType type,
boolean doesTimeout,
View viewToShow)
Present notification indicator with no modality. |
OverlayCloser |
openOverlay(View view)
Convenience method to open an overlay with the default strong modality level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.ui.api.overlay.OverlayLayer |
---|
openOverlay |
Field Detail |
---|
public static final int TIMEOUT_SECONDS_DEFAULT
Constructor Detail |
---|
public OverlayPresenter()
Method Detail |
---|
public OverlayCloser openOverlay(View view)
openOverlay
in interface OverlayLayer
view
- View of the component to be displayed modally.public void openAlert(MessageStyleType type, View viewToShow, String confirmButtonText, AlertCallback cb)
openAlert
in interface OverlayLayer
public void openAlert(MessageStyleType type, String title, String body, String confirmButtonText, AlertCallback cb)
openAlert
in interface OverlayLayer
public void openConfirmation(MessageStyleType type, View contentView, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback callback)
openConfirmation
in interface OverlayLayer
public void openConfirmation(MessageStyleType type, String title, String body, String confirmButtonText, String cancelButtonText, boolean cancelIsDefault, ConfirmationCallback cb)
openConfirmation
in interface OverlayLayer
public void openNotification(MessageStyleType type, boolean doesTimeout, View viewToShow)
openNotification
in interface OverlayLayer
viewToShow
- Content to show as View.public void openNotification(MessageStyleType type, boolean doesTimeout, String title)
openNotification
in interface OverlayLayer
title
- Content to show as string.public void openNotification(MessageStyleType type, boolean doesTimeout, String title, String linkText, NotificationCallback cb)
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 |