Class ToastrOptions<J extends 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.Boolean getCloseButton()
      If the close button is being used
      java.lang.Boolean getDebug()
      Returns if is in debug mode
      java.lang.Boolean getEscapeHtml()
      If the message and title should escape HTML
      java.lang.Integer getExtendedTimeOut()
      Gets the extended timeout
      java.lang.Integer getHideDuration()
      Sets hide duration
      com.jwebmp.plugins.easingeffects.JQEasingEffects getHideEasing()
      Hides the easing effect
      com.jwebmp.plugins.easingeffects.JQEasingEffects getHideMethod()
      Sets the hide effect
      java.lang.Boolean getNewestOnTop()
      If newest is on top
      ToastrPosition getPositionClass()
      Gets the position class
      java.lang.Boolean getPreventDuplicates()
      Prevents duplicates
      java.lang.Boolean getProgressBar()
      Sets the progress bar
      java.lang.Integer getShowDuration()
      Sets show duration
      com.jwebmp.plugins.easingeffects.JQEasingEffects getShowEasing()
      Sets the easing effect
      com.jwebmp.plugins.easingeffects.JQEasingEffects getShowMethod()
      Sets the show effect
      java.lang.Integer getTimeOut()
      Gets the timeout
      J setCloseButton​(java.lang.Boolean closeButton)  
      J setDebug​(java.lang.Boolean debug)
      Sets debug mode
      J setEscapeHtml​(java.lang.Boolean escapeHtml)
      If the message and title should escape HTML
      J setExtendedTimeOut​(java.lang.Integer extendedTimeOut)
      Sets the extended time out
      J setHideDuration​(java.lang.Integer hideDuration)
      Sets hide duration
      J setHideEasing​(com.jwebmp.plugins.easingeffects.JQEasingEffects hideEasing)
      Sets the hiding effect
      J setHideMethod​(com.jwebmp.plugins.easingeffects.JQEasingEffects hideMethod)
      Sets the hide effect
      J setNewestOnTop​(java.lang.Boolean newestOnTop)
      Sets if newest is on top
      J setPositionClass​(ToastrPosition positionClass)
      Sets the position class
      J setPreventDuplicates​(java.lang.Boolean preventDuplicates)
      Sets prevents duplicates
      J setProgressBar​(java.lang.Boolean progressBar)
      Sets the progress bar
      J setShowDuration​(java.lang.Integer showDuration)
      Sets show duration
      J setShowEasing​(com.jwebmp.plugins.easingeffects.JQEasingEffects showEasing)
      Sets the easing effect
      J setShowMethod​(com.jwebmp.plugins.easingeffects.JQEasingEffects showMethod)
      Sets the show effect
      J setTimeOut​(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, getFileTemplate, getFileTemplate, getFileTemplate, getFunctionObjectMapper, getJavascriptObjectMapper, getJavascriptObjectReader, getJavascriptType, getJsonObjectMapper, getJsonObjectReader, getReferenceId, init, isConfigured, isInitialized, isRenderEmptyBraces, objectAsString, preConfigure, render, setReferenceId, setRenderEmptyBraces, toAttributes, toString, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ToastrOptions

        public ToastrOptions()
        Constructs a new toastr options object
    • 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 com.jwebmp.plugins.easingeffects.JQEasingEffects getShowEasing()
        Sets the easing effect
        Returns:
      • setShowEasing

        @NotNull
        public J setShowEasing​(com.jwebmp.plugins.easingeffects.JQEasingEffects showEasing)
        Sets the easing effect
        Parameters:
        showEasing -
        Returns:
      • getHideEasing

        public com.jwebmp.plugins.easingeffects.JQEasingEffects getHideEasing()
        Hides the easing effect
        Returns:
      • setHideEasing

        @NotNull
        public J setHideEasing​(com.jwebmp.plugins.easingeffects.JQEasingEffects hideEasing)
        Sets the hiding effect
        Parameters:
        hideEasing -
        Returns:
      • getShowMethod

        public com.jwebmp.plugins.easingeffects.JQEasingEffects getShowMethod()
        Sets the show effect
        Returns:
      • setShowMethod

        @NotNull
        public J setShowMethod​(com.jwebmp.plugins.easingeffects.JQEasingEffects showMethod)
        Sets the show effect
        Parameters:
        showMethod -
        Returns:
      • getHideMethod

        public com.jwebmp.plugins.easingeffects.JQEasingEffects getHideMethod()
        Sets the hide effect
        Returns:
      • setHideMethod

        @NotNull
        public J setHideMethod​(com.jwebmp.plugins.easingeffects.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: