public class NotificationBehavior extends KendoUIBehavior
| Constructor and Description |
|---|
NotificationBehavior(String selector)
Constructor
|
NotificationBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
$(Serializable message,
String level)
Gets the jQuery statement that logs the message
Warning: This method is *not* called by the behavior directly (only JQueryBehavior.$() is). |
protected CharSequence |
format(CharSequence message,
String level)
Formats the message (escaping, etc)
|
void |
hide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Hides all notifications
|
void |
show(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
Serializable message,
String level)
Shows the message
|
add, destroy, onConfigure, onDestroy, renderHead, widget, widget, widget, widget$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringpublic static final String METHOD
public NotificationBehavior(String selector)
selector - the html selector (ie: "#myId")public NotificationBehavior(String selector, com.googlecode.wicket.jquery.core.Options options)
selector - the html selector (ie: "#myId")options - the Optionspublic void show(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler,
Serializable message,
String level)
handler - the IPartialPageRequestHandlermessage - the message to formatlevel - the level, ie: info, success, warning, errorpublic void hide(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerprotected CharSequence format(CharSequence message, String level)
message - the message to formatlevel - the level, ie: info, success, warning, errorprotected final String $(Serializable message, String level)
JQueryBehavior.$() is).message - the message to loglevel - the level of the messageCopyright © 2021 7thWeb. All rights reserved.