Package com.jwebmp.plugins.toastr
Class ToastrOptions<J extends ToastrOptions<J>>
java.lang.Object
com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart<J>
com.jwebmp.plugins.toastr.ToastrOptions<J>
- All Implemented Interfaces:
java.io.Serializable
public class ToastrOptions<J extends ToastrOptions<J>>
extends com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart<J>
All the options available for Toastr
- Since:
- 09 Jun 2017
- Author:
- GedMarc
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ToastrOptions()Constructs a new toastr options object -
Method Summary
Modifier and Type Method Description java.lang.BooleangetCloseButton()If the close button is being usedjava.lang.BooleangetDebug()Returns if is in debug modejava.lang.BooleangetEscapeHtml()If the message and title should escape HTMLjava.lang.IntegergetExtendedTimeOut()Gets the extended timeoutjava.lang.IntegergetHideDuration()Sets hide durationJQEasingEffectsgetHideEasing()Hides the easing effectJQEasingEffectsgetHideMethod()Sets the hide effectjava.lang.BooleangetNewestOnTop()If newest is on topToastrPositiongetPositionClass()Gets the position classjava.lang.BooleangetPreventDuplicates()Prevents duplicatesjava.lang.BooleangetProgressBar()Sets the progress barjava.lang.IntegergetShowDuration()Sets show durationJQEasingEffectsgetShowEasing()Sets the easing effectJQEasingEffectsgetShowMethod()Sets the show effectjava.lang.IntegergetTimeOut()Gets the timeoutJsetCloseButton(java.lang.Boolean closeButton)JsetDebug(java.lang.Boolean debug)Sets debug modeJsetEscapeHtml(java.lang.Boolean escapeHtml)If the message and title should escape HTMLJsetExtendedTimeOut(java.lang.Integer extendedTimeOut)Sets the extended time outJsetHideDuration(java.lang.Integer hideDuration)Sets hide durationJsetHideEasing(JQEasingEffects hideEasing)Sets the hiding effectJsetHideMethod(JQEasingEffects hideMethod)Sets the hide effectJsetNewestOnTop(java.lang.Boolean newestOnTop)Sets if newest is on topJsetPositionClass(ToastrPosition positionClass)Sets the position classJsetPreventDuplicates(java.lang.Boolean preventDuplicates)Sets prevents duplicatesJsetProgressBar(java.lang.Boolean progressBar)Sets the progress barJsetShowDuration(java.lang.Integer showDuration)Sets show durationJsetShowEasing(JQEasingEffects showEasing)Sets the easing effectJsetShowMethod(JQEasingEffects showMethod)Sets the show effectJsetTimeOut(java.lang.Integer timeOut)Sets the timeoutMethods inherited from class com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart
destroy, From, From, From, From, From, FromToList, FromToList, FromToList, FromToList, FromToList, getFunctionObjectMapper, getJavascriptObjectMapper, getJavascriptObjectReader, getJavascriptType, getJsonObjectMapper, getJsonObjectReader, getReferenceId, init, isConfigured, isInitialized, isRenderEmptyBraces, objectAsString, preConfigure, render, setReferenceId, setRenderEmptyBraces, toAttributes, toString, toString
-
Constructor Details
-
ToastrOptions
public ToastrOptions()Constructs a new toastr options object
-
-
Method Details
-
getCloseButton
public java.lang.Boolean getCloseButton()If the close button is being used- Returns:
-
setCloseButton
-
getDebug
public java.lang.Boolean getDebug()Returns if is in debug mode- Returns:
-
setDebug
Sets debug mode- Parameters:
debug-- Returns:
-
getNewestOnTop
public java.lang.Boolean getNewestOnTop()If newest is on top- Returns:
-
setNewestOnTop
Sets if newest is on top- Parameters:
newestOnTop-- Returns:
-
getProgressBar
public java.lang.Boolean getProgressBar()Sets the progress bar- Returns:
-
setProgressBar
Sets the progress bar- Parameters:
progressBar-- Returns:
-
getPositionClass
Gets the position class- Returns:
-
setPositionClass
Sets the position class- Parameters:
positionClass-- Returns:
-
getPreventDuplicates
public java.lang.Boolean getPreventDuplicates()Prevents duplicates- Returns:
-
setPreventDuplicates
Sets prevents duplicates- Parameters:
preventDuplicates-- Returns:
-
getShowDuration
public java.lang.Integer getShowDuration()Sets show duration- Returns:
-
setShowDuration
Sets show duration- Parameters:
showDuration-- Returns:
-
getHideDuration
public java.lang.Integer getHideDuration()Sets hide duration- Returns:
-
setHideDuration
Sets hide duration- Parameters:
hideDuration-- Returns:
-
getTimeOut
public java.lang.Integer getTimeOut()Gets the timeout- Returns:
-
setTimeOut
Sets the timeout- Parameters:
timeOut-- Returns:
-
getExtendedTimeOut
public java.lang.Integer getExtendedTimeOut()Gets the extended timeout- Returns:
-
setExtendedTimeOut
Sets the extended time out- Parameters:
extendedTimeOut-- Returns:
-
getShowEasing
Sets the easing effect- Returns:
-
setShowEasing
Sets the easing effect- Parameters:
showEasing-- Returns:
-
getHideEasing
Hides the easing effect- Returns:
-
setHideEasing
Sets the hiding effect- Parameters:
hideEasing-- Returns:
-
getShowMethod
Sets the show effect- Returns:
-
setShowMethod
Sets the show effect- Parameters:
showMethod-- Returns:
-
getHideMethod
Sets the hide effect- Returns:
-
setHideMethod
Sets the hide effect- Parameters:
hideMethod-- Returns:
-
getEscapeHtml
public java.lang.Boolean getEscapeHtml()If the message and title should escape HTML- Returns:
-
setEscapeHtml
If the message and title should escape HTML- Parameters:
escapeHtml-- Returns:
-