public class MessageApiPublisher
extends java.lang.Object
window.MBAPI.message
window.MBAPI.message.showAlert(theHeader, theBody)
for example)Modifier and Type | Class and Description |
---|---|
static class |
MessageApiPublisher.MessageTypes |
Constructor and Description |
---|
MessageApiPublisher() |
Modifier and Type | Method and Description |
---|---|
static void |
clearAllNotifications()
Clear any active notifications currently displayed in the notification center for my user
|
static void |
setupJavascriptAPIs()
Setup message javascript API.
|
static void |
showAlert(java.lang.String theHeader,
java.lang.String theBody)
Show a standard (non-blocking) alert dialog like MediaBeacon would
|
static jb.gwt_main_modules.base_widgets.client.message.ApiPopupDialog |
showDialog(java.lang.String theDialogTitle,
java.lang.Object theDialogContent,
java.lang.String thePosText,
java.lang.String theNegText,
com.google.gwt.core.client.JavaScriptObject thePosAction,
com.google.gwt.core.client.JavaScriptObject theNegAction,
java.lang.String theContentHeight,
java.lang.String theContentWidth,
boolean theDontShow,
boolean theIsCustom)
Show a dialog.
|
static void |
showNotificationDialog(java.lang.String theDialogTitle,
java.lang.String theDialogContent,
java.lang.String theContentHeight,
java.lang.String theContentWidth,
com.google.gwt.core.client.JavaScriptObject theButtonAction)
Show a notification dialog with an "OK" button.
|
public static void setupJavascriptAPIs()
public static void clearAllNotifications()
public static void showAlert(java.lang.String theHeader, java.lang.String theBody)
theHeader
- Text to display in headertheBody
- text to display in bodypublic static jb.gwt_main_modules.base_widgets.client.message.ApiPopupDialog showDialog(java.lang.String theDialogTitle, java.lang.Object theDialogContent, java.lang.String thePosText, java.lang.String theNegText, com.google.gwt.core.client.JavaScriptObject thePosAction, com.google.gwt.core.client.JavaScriptObject theNegAction, java.lang.String theContentHeight, java.lang.String theContentWidth, boolean theDontShow, boolean theIsCustom)
theDialogTitle
- The dialog title.theDialogContent
- The dialog content, can be either a javascript element object or a string.thePosText
- The positive button text.theNegText
- The negative button text.thePosAction
- The positive button action.theNegAction
- The negative button action.theContentHeight
- The height of the content of the dialog, should be a string that includes CSS units (e.g. "10px", "1em")theContentWidth
- The width of the content of the dialog, should be a string that includes CSS units (e.g. "10px", "1em")theDontShow
- Don't show the dialog, just construct it?theIsCustom
- Do not apply standard stylingpublic static void showNotificationDialog(java.lang.String theDialogTitle, java.lang.String theDialogContent, java.lang.String theContentHeight, java.lang.String theContentWidth, com.google.gwt.core.client.JavaScriptObject theButtonAction)
theDialogTitle
- The dialog title. (Can be empty.)theDialogContent
- The dialog content. (Plain text or HTML.)theContentHeight
- The heighttheContentWidth
- The widththeButtonAction
- The button action.Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.