Module com.jwebmp.plugins.toastr
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:
com.guicedee.guicedinjection.representations.ICopyable<J>,com.guicedee.guicedinjection.representations.IJsonRepresentation<J>,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the close button is being usedgetDebug()Returns if is in debug modeIf the message and title should escape HTMLGets the extended timeoutSets hide durationcom.jwebmp.plugins.easingeffects.JQEasingEffectsHides the easing effectcom.jwebmp.plugins.easingeffects.JQEasingEffectsSets the hide effectIf newest is on topGets the position classPrevents duplicatesSets the progress barSets show durationcom.jwebmp.plugins.easingeffects.JQEasingEffectsSets the easing effectcom.jwebmp.plugins.easingeffects.JQEasingEffectsSets the show effectGets the timeoutsetCloseButton(Boolean closeButton) Sets debug modesetEscapeHtml(Boolean escapeHtml) If the message and title should escape HTMLsetExtendedTimeOut(Integer extendedTimeOut) Sets the extended time outsetHideDuration(Integer hideDuration) Sets hide durationsetHideEasing(com.jwebmp.plugins.easingeffects.JQEasingEffects hideEasing) Sets the hiding effectsetHideMethod(com.jwebmp.plugins.easingeffects.JQEasingEffects hideMethod) Sets the hide effectsetNewestOnTop(Boolean newestOnTop) Sets if newest is on topsetPositionClass(ToastrPosition positionClass) Sets the position classsetPreventDuplicates(Boolean preventDuplicates) Sets prevents duplicatessetProgressBar(Boolean progressBar) Sets the progress barsetShowDuration(Integer showDuration) Sets show durationsetShowEasing(com.jwebmp.plugins.easingeffects.JQEasingEffects showEasing) Sets the easing effectsetShowMethod(com.jwebmp.plugins.easingeffects.JQEasingEffects showMethod) Sets the show effectsetTimeOut(Integer timeOut) Sets the timeoutMethods inherited from class com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart
destroy, getFunctionObjectMapper, getJavascriptObjectMapper, getJavascriptObjectReader, getJavascriptType, getJsonObjectMapper, getJsonObjectReader, getReferenceId, init, isConfigured, isInitialized, isRenderEmptyBraces, objectAsString, preConfigure, render, setReferenceId, setRenderEmptyBraces, toAttributes, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.guicedee.guicedinjection.representations.ICopyable
asMap, updateFrom, updateNonNullFieldMethods inherited from interface com.guicedee.guicedinjection.representations.IJsonRepresentation
fromJson, fromJsonArray, fromJsonArrayUnique, toJson, toJson
-
Constructor Details
-
ToastrOptions
public ToastrOptions()Constructs a new toastr options object
-
-
Method Details
-
getCloseButton
If the close button is being used- Returns:
-
setCloseButton
-
getDebug
Returns if is in debug mode- Returns:
-
setDebug
Sets debug mode- Parameters:
debug-- Returns:
-
getNewestOnTop
If newest is on top- Returns:
-
setNewestOnTop
Sets if newest is on top- Parameters:
newestOnTop-- Returns:
-
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
Prevents duplicates- Returns:
-
setPreventDuplicates
Sets prevents duplicates- Parameters:
preventDuplicates-- Returns:
-
getShowDuration
Sets show duration- Returns:
-
setShowDuration
Sets show duration- Parameters:
showDuration-- Returns:
-
getHideDuration
Sets hide duration- Returns:
-
setHideDuration
Sets hide duration- Parameters:
hideDuration-- Returns:
-
getTimeOut
Gets the timeout- Returns:
-
setTimeOut
Sets the timeout- Parameters:
timeOut-- Returns:
-
getExtendedTimeOut
Gets the extended timeout- Returns:
-
setExtendedTimeOut
Sets the extended time out- Parameters:
extendedTimeOut-- Returns:
-
getShowEasing
public com.jwebmp.plugins.easingeffects.JQEasingEffects getShowEasing()Sets the easing effect- Returns:
-
setShowEasing
Sets the easing effect- Parameters:
showEasing-- Returns:
-
getHideEasing
public com.jwebmp.plugins.easingeffects.JQEasingEffects getHideEasing()Hides the easing effect- Returns:
-
setHideEasing
Sets the hiding effect- Parameters:
hideEasing-- Returns:
-
getShowMethod
public com.jwebmp.plugins.easingeffects.JQEasingEffects getShowMethod()Sets the show effect- Returns:
-
setShowMethod
Sets the show effect- Parameters:
showMethod-- Returns:
-
getHideMethod
public com.jwebmp.plugins.easingeffects.JQEasingEffects getHideMethod()Sets the hide effect- Returns:
-
setHideMethod
Sets the hide effect- Parameters:
hideMethod-- Returns:
-
getEscapeHtml
If the message and title should escape HTML- Returns:
-
setEscapeHtml
If the message and title should escape HTML- Parameters:
escapeHtml-- Returns:
-