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.ajax.AjaxRequestTarget target)
Hides all notifications
|
void |
show(org.apache.wicket.ajax.AjaxRequestTarget target,
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, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, getToken, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public 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 Options
public void show(org.apache.wicket.ajax.AjaxRequestTarget target, Serializable message, String level)
target
- the AjaxRequestTarget
message
- the message to formatlevel
- the level, ie: info, success, warning, errorpublic void hide(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
protected 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 © 2015 7thWeb. All rights reserved.