public class ToastJsGenerator extends de.alpharogroup.wicket.js.addon.core.JavascriptGenerator<ToastrSettings> implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND
The constant for the key of the command.
|
| Constructor and Description |
|---|
ToastJsGenerator()
Instantiates a new
ToastJsGenerator. |
ToastJsGenerator(ToastrSettings settings)
Instantiates a new
ToastJsGenerator with the given ToastrSettings. |
ToastJsGenerator(ToastrSettings settings,
boolean withDocumentReadyFunction)
Instantiates a new
ToastJsGenerator with the given ToastrSettings. |
| Modifier and Type | Method and Description |
|---|---|
String |
generateJavascriptTemplateContent(Map<String,Object> variables,
String methodName)
Generates the javascript template code from the given map and the given method name that will
be used to interpolate with the values of the given map.
|
String |
getCommand(ToastrSettings settings)
Gets the command.
|
protected Map<String,Object> |
initializeVariables(Set<de.alpharogroup.wicket.js.addon.core.StringTextValue<?>> allSettings)
.
|
generateJs, generateJs, generateJsOptionsForTemplateContent, getComponentId, getMethodName, getSettings, isWithComponentId, isWithDocumentReadyFunction, setComponentId, setMethodName, setSettings, setWithComponentId, setWithDocumentReadyFunctionpublic static final String COMMAND
public ToastJsGenerator()
ToastJsGenerator.public ToastJsGenerator(ToastrSettings settings)
ToastJsGenerator with the given ToastrSettings.settings - the settings for the toastr plugin.public ToastJsGenerator(ToastrSettings settings, boolean withDocumentReadyFunction)
ToastJsGenerator with the given ToastrSettings.settings - the settings for the toastr plugin.withDocumentReadyFunction - the flag if the script will be wrapped with document ready functionpublic String generateJavascriptTemplateContent(Map<String,Object> variables, String methodName)
generateJavascriptTemplateContent in class de.alpharogroup.wicket.js.addon.core.JavascriptGenerator<ToastrSettings>variables - the map with the javascript options.methodName - The method name.public String getCommand(ToastrSettings settings)
settings - the toastrSettingsprotected Map<String,Object> initializeVariables(Set<de.alpharogroup.wicket.js.addon.core.StringTextValue<?>> allSettings)
initializeVariables in class de.alpharogroup.wicket.js.addon.core.JavascriptGenerator<ToastrSettings>Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.