public class Notify extends JavaScriptObject
notify(String)
,
notify(String, NotifyType)
,
notify(String, NotifySettings)
and others
To further configure Notify before displaying see:
NotifySettings
You can update displayed Notify by:
updateTitle(String)
,
updateMessage(String)
,
updateIcon(String)
,
updateType(NotifyType)
,
You can hide displayed Notify:
hide()
,
hideAll()
,
hideAll(NotifyPlacement)
Modifier | Constructor and Description |
---|---|
protected |
Notify() |
Modifier and Type | Method and Description |
---|---|
void |
hide()
Hide this Notify.
|
static void |
hideAll()
Hide all displayed Notifies.
|
static void |
hideAll(NotifyPlacement placement)
Hide all displayed Notifies on specific screen location.
|
static Notify |
notify(String message)
Display Notify with custom message, and default settings.
|
static Notify |
notify(String message,
NotifySettings settings)
Display Notify with custom message and custom settings.
|
static Notify |
notify(String message,
NotifyType type)
Display Notify with custom message, type and default settings.
|
static Notify |
notify(String title,
String message)
Display Notify with custom title, message, and default settings.
|
static Notify |
notify(String title,
String message,
IconType iconType)
Display Notify with custom title, message, icon, and default settings.
|
static Notify |
notify(String title,
String message,
IconType iconType,
NotifySettings settings)
Display Notify with custom title, message, icon and custom settings.
|
static Notify |
notify(String title,
String message,
IconType iconType,
NotifyType type)
Display Notify with custom title, message, icon, type and default settings.
|
static Notify |
notify(String title,
String message,
IconType iconType,
String url)
Display Notify with custom title, message, icon, url and default settings.
|
static Notify |
notify(String title,
String message,
IconType iconType,
String url,
NotifySettings settings)
Display Notify with custom title, message, icon, URL and custom settings.
|
static Notify |
notify(String title,
String message,
IconType iconType,
String url,
NotifyType type)
Display Notify with custom title, message, icon, url, type and default settings.
|
static Notify |
notify(String title,
String message,
NotifySettings settings)
Display Notify with custom title, message and custom settings.
|
static Notify |
notify(String title,
String message,
NotifyType type)
Display Notify with custom title, message, type and default settings.
|
static Notify |
notify(String title,
String message,
String icon)
Display Notify with custom title, message, icon, and default settings.
|
static Notify |
notify(String title,
String message,
String icon,
NotifySettings settings)
Display Notify with custom title, message, icon and custom settings.
|
static Notify |
notify(String title,
String message,
String icon,
NotifyType type)
Display Notify with custom title, message, icon, type and default settings.
|
static Notify |
notify(String title,
String message,
String icon,
String url)
Display Notify with custom title, message, icon, URL, and default settings.
|
static Notify |
notify(String title,
String message,
String icon,
String url,
NotifySettings settings)
Display Notify with custom title, message, icon, URL and custom settings.
|
static Notify |
notify(String title,
String message,
String icon,
String url,
NotifyType type)
Display Notify with custom title, message, icon, url, type and default settings.
|
void |
updateIcon(IconType type)
Updates Icon parameter of once displayed Notify.
|
void |
updateIcon(String icon)
Updates Icon parameter of once displayed Notify.
|
void |
updateMessage(String message)
Updates message parameter of once displayed Notify.
|
void |
updateTitle(String title)
Updates title parameter of once displayed Notify.
|
void |
updateType(NotifyType type)
Update type of once displayed Notify (CSS style class name).
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected Notify()
public static final Notify notify(String message)
message
- Message to setpublic static final Notify notify(String title, String message)
title
- Title to setmessage
- Message to setpublic static final Notify notify(String title, String message, String icon)
title
- Title to setmessage
- Message to seticon
- Icon to setpublic static final Notify notify(String title, String message, IconType iconType)
title
- Title to setmessage
- Message to seticonType
- IconType to setpublic static final Notify notify(String title, String message, String icon, String url)
title
- Title to setmessage
- Message to seticon
- IconType to seturl
- Url to setpublic static final Notify notify(String title, String message, IconType iconType, String url)
title
- Title to setmessage
- Message to seticonType
- IconType to seturl
- Url to setpublic static final Notify notify(String message, NotifyType type)
message
- Message to settype
- NotifyTypeNotifyType
public static final Notify notify(String title, String message, NotifyType type)
title
- Title to setmessage
- Message to settype
- NotifyTypeNotifyType
public static final Notify notify(String title, String message, String icon, NotifyType type)
title
- Title to setmessage
- Message to seticon
- Icon to settype
- NotifyTypeNotifyType
public static final Notify notify(String title, String message, IconType iconType, NotifyType type)
title
- Title to setmessage
- Message to seticonType
- IconType to set (css name of icon form FONT AWESOME)type
- NotifyTypeNotifyType
public static final Notify notify(String title, String message, String icon, String url, NotifyType type)
title
- Title to setmessage
- Message to seticon
- Icon to seturl
- Url to settype
- NotifyTypeNotifyType
public static final Notify notify(String title, String message, IconType iconType, String url, NotifyType type)
title
- Title to setmessage
- Message to seticonType
- IconType to set (css name of icon form FONT AWESOME)url
- Url to settype
- NotifyTypeNotifyType
public static final Notify notify(String message, NotifySettings settings)
message
- Message to setsettings
- custom settingsNotifySettings
public static final Notify notify(String title, String message, NotifySettings settings)
title
- Title to setmessage
- Message to setsettings
- custom settingsNotifySettings
public static final Notify notify(String title, String message, String icon, NotifySettings settings)
title
- Title to setmessage
- Message to seticon
- Icon to setsettings
- custom settingsNotifySettings
public static final Notify notify(String title, String message, IconType iconType, NotifySettings settings)
title
- Title to setmessage
- Message to seticonType
- IconType to set (css name of icon form FONT AWESOME)settings
- custom settingsNotifySettings
public static final Notify notify(String title, String message, String icon, String url, NotifySettings settings)
title
- Title to setmessage
- Message to seticon
- Icon to seturl
- Url to setsettings
- custom settingsNotifySettings
public static final Notify notify(String title, String message, IconType iconType, String url, NotifySettings settings)
title
- Title to setmessage
- Message to seticonType
- IconType to seturl
- Url to setsettings
- custom settingsNotifySettings
public static final void hideAll()
public static final void hideAll(NotifyPlacement placement)
placement
- Notify's placement on screen.NotifyPlacement
public final void updateTitle(String title)
title
- Title to setpublic final void updateMessage(String message)
message
- Message to setpublic final void updateIcon(String icon)
icon
- Icon to setpublic final void updateIcon(IconType type)
type
- IconType to get CSS class name to setpublic final void updateType(NotifyType type)
type
- one of INFO, WARNING, DANGER, SUCCESSNotifyType
public final void hide()
Copyright © 2017. All rights reserved.