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
All Methods Instance Methods Concrete Methods 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 timeout-
Methods 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
-
-
-
-
Method Detail
-
getCloseButton
public java.lang.Boolean getCloseButton()
If the close button is being used- Returns:
-
setCloseButton
@NotNull public J setCloseButton(java.lang.Boolean closeButton)
-
getDebug
public java.lang.Boolean getDebug()
Returns if is in debug mode- Returns:
-
setDebug
@NotNull public J setDebug(java.lang.Boolean debug)
Sets debug mode- Parameters:
debug-- Returns:
-
getNewestOnTop
public java.lang.Boolean getNewestOnTop()
If newest is on top- Returns:
-
setNewestOnTop
@NotNull public J setNewestOnTop(java.lang.Boolean newestOnTop)
Sets if newest is on top- Parameters:
newestOnTop-- Returns:
-
getProgressBar
public java.lang.Boolean getProgressBar()
Sets the progress bar- Returns:
-
setProgressBar
@NotNull public J setProgressBar(java.lang.Boolean progressBar)
Sets the progress bar- Parameters:
progressBar-- Returns:
-
getPositionClass
public ToastrPosition getPositionClass()
Gets the position class- Returns:
-
setPositionClass
@NotNull public J setPositionClass(ToastrPosition positionClass)
Sets the position class- Parameters:
positionClass-- Returns:
-
getPreventDuplicates
public java.lang.Boolean getPreventDuplicates()
Prevents duplicates- Returns:
-
setPreventDuplicates
@NotNull public J setPreventDuplicates(java.lang.Boolean preventDuplicates)
Sets prevents duplicates- Parameters:
preventDuplicates-- Returns:
-
getShowDuration
public java.lang.Integer getShowDuration()
Sets show duration- Returns:
-
setShowDuration
@NotNull public J setShowDuration(java.lang.Integer showDuration)
Sets show duration- Parameters:
showDuration-- Returns:
-
getHideDuration
public java.lang.Integer getHideDuration()
Sets hide duration- Returns:
-
setHideDuration
@NotNull public J setHideDuration(java.lang.Integer hideDuration)
Sets hide duration- Parameters:
hideDuration-- Returns:
-
getTimeOut
public java.lang.Integer getTimeOut()
Gets the timeout- Returns:
-
setTimeOut
@NotNull public J setTimeOut(java.lang.Integer timeOut)
Sets the timeout- Parameters:
timeOut-- Returns:
-
getExtendedTimeOut
public java.lang.Integer getExtendedTimeOut()
Gets the extended timeout- Returns:
-
setExtendedTimeOut
@NotNull public J setExtendedTimeOut(java.lang.Integer extendedTimeOut)
Sets the extended time out- Parameters:
extendedTimeOut-- Returns:
-
getShowEasing
public JQEasingEffects getShowEasing()
Sets the easing effect- Returns:
-
setShowEasing
@NotNull public J setShowEasing(JQEasingEffects showEasing)
Sets the easing effect- Parameters:
showEasing-- Returns:
-
getHideEasing
public JQEasingEffects getHideEasing()
Hides the easing effect- Returns:
-
setHideEasing
@NotNull public J setHideEasing(JQEasingEffects hideEasing)
Sets the hiding effect- Parameters:
hideEasing-- Returns:
-
getShowMethod
public JQEasingEffects getShowMethod()
Sets the show effect- Returns:
-
setShowMethod
@NotNull public J setShowMethod(JQEasingEffects showMethod)
Sets the show effect- Parameters:
showMethod-- Returns:
-
getHideMethod
public JQEasingEffects getHideMethod()
Sets the hide effect- Returns:
-
setHideMethod
@NotNull public J setHideMethod(JQEasingEffects hideMethod)
Sets the hide effect- Parameters:
hideMethod-- Returns:
-
getEscapeHtml
public java.lang.Boolean getEscapeHtml()
If the message and title should escape HTML- Returns:
-
setEscapeHtml
@NotNull public J setEscapeHtml(java.lang.Boolean escapeHtml)
If the message and title should escape HTML- Parameters:
escapeHtml-- Returns:
-
-