Class ToastrFeature<J extends ToastrFeature<J>>

java.lang.Object
com.jwebmp.core.base.ComponentBase<J>
com.jwebmp.core.base.ComponentDependancyBase<J>
com.jwebmp.core.base.ComponentFeatureBase<F,​J>
com.jwebmp.core.Feature<J,​ToastrOptions,​J>
com.jwebmp.plugins.toastr.ToastrFeature<J>
All Implemented Interfaces:
com.jwebmp.core.base.html.interfaces.GlobalFeatures<J,​J>, com.jwebmp.core.base.html.interfaces.LifeCycle, com.jwebmp.core.base.interfaces.IComponentBase<J>, com.jwebmp.core.base.interfaces.IComponentDependancyBase<J>, com.jwebmp.core.base.interfaces.IComponentFeatureBase<J,​J>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<J>, java.util.Comparator<J>

public class ToastrFeature<J extends ToastrFeature<J>>
extends com.jwebmp.core.Feature<J,​ToastrOptions,​J>
Creates toast messages
Since:
09 Jun 2017
Author:
GedMarc
See Also:
Serialized Form
  • Field Summary

    Fields inherited from class com.jwebmp.core.base.ComponentBase

    log
  • Constructor Summary

    Constructors
    Constructor Description
    ToastrFeature()  
    ToastrFeature​(ToastrType type, java.lang.String title, java.lang.String message)
    Constructs a complete feature
    ToastrFeature​(java.lang.String message)
    Constructs with a given message
    ToastrFeature​(java.lang.String title, java.lang.String message)
    Constructs a new feature with title and message
  • Method Summary

    Modifier and Type Method Description
    protected void assignFunctionsToComponent()  
    boolean equals​(java.lang.Object obj)  
    java.lang.String getMessage()
    Returns the message of the toaster
    @NotNull ToastrOptions getOptions()
    Returns the options
    java.lang.String getTitle()
    Returns the title of the toastr
    @NotNull ToastrType getType()
    Returns the type for the toastr
    int hashCode()  
    J setMessage​(java.lang.String message)
    Sets the message of the toaster
    J setTitle​(java.lang.String title)
    Sets the title of the toastr
    J setType​(ToastrType type)
    Sets the type for the toastr

    Methods inherited from class com.jwebmp.core.Feature

    addQuery, setComponent, setOptions

    Methods inherited from class com.jwebmp.core.base.ComponentFeatureBase

    addFeature, addQuery, addVariable, asFeatureBase, checkAssignedFunctions, compare, compareTo, destroy, getComponent, getCssReferencesAll, getFeatures, getJavascriptReferencesAll, getName, getPriority, getQueries, getQueriesAll, getSortOrder, getVariables, isJavascriptRenderedElsewhere, isRenderAfterLoad, removeFeature, removeVariable, renderJavascript, scriptAvailable, setJavascriptRenderedElsewhere, setName, setPriority, setRenderAfterLoad, setSortOrder, setTiny, toString

    Methods inherited from class com.jwebmp.core.base.ComponentDependancyBase

    addCssReference, addJavaScriptReference, asDependancyBase, cloneComponent, getCssReferences, getCssReferencesAll, getJavascriptReferences, getJavascriptReferencesAll, removeCssReference, removeJavaScriptReference

    Methods inherited from class com.jwebmp.core.base.ComponentBase

    asBase, getClassCanonicalName, getComponentClass, getComponentType, getID, getID, getJQueryID, getNewLine, getProperties, getProperty, getText, getText, getText, hasProperty, init, isConfigured, isInitialized, isTiny, isTouched, preConfigure, setComponentType, setConfigured, setID, setInitialized, setProperties, setText, setText, setTouched

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Comparator

    reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong

    Methods inherited from interface com.jwebmp.core.base.interfaces.IComponentFeatureBase

    addFeature, addVariable, checkAssignedFunctions, getComponent, getCssReferencesAll, getFeatures, getJavascriptReferencesAll, getName, getPriority, getQueriesAll, getSortOrder, getVariables, isRenderAfterLoad, removeFeature, removeVariable, renderJavascript, scriptAvailable

    Methods inherited from interface com.jwebmp.core.base.html.interfaces.LifeCycle

    destroy, init, isConfigured, isInitialized, preConfigure
  • Constructor Details

    • ToastrFeature

      public ToastrFeature​(java.lang.String message)
      Constructs with a given message
      Parameters:
      message -
    • ToastrFeature

      public ToastrFeature()
    • ToastrFeature

      public ToastrFeature​(java.lang.String title, java.lang.String message)
      Constructs a new feature with title and message
      Parameters:
      title -
      message -
    • ToastrFeature

      public ToastrFeature​(ToastrType type, java.lang.String title, java.lang.String message)
      Constructs a complete feature
      Parameters:
      type -
      title -
      message -
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.jwebmp.core.Feature<J extends ToastrFeature<J>,​ToastrOptions,​J extends ToastrFeature<J>>
    • equals

      public boolean equals​(java.lang.Object obj)
      Specified by:
      equals in interface java.util.Comparator<J extends ToastrFeature<J>>
      Overrides:
      equals in class com.jwebmp.core.Feature<J extends ToastrFeature<J>,​ToastrOptions,​J extends ToastrFeature<J>>
    • getOptions

      @NotNull public @NotNull ToastrOptions getOptions()
      Returns the options
      Specified by:
      getOptions in interface com.jwebmp.core.base.interfaces.IComponentFeatureBase<J extends ToastrFeature<J>,​J extends ToastrFeature<J>>
      Overrides:
      getOptions in class com.jwebmp.core.Feature<J extends ToastrFeature<J>,​ToastrOptions,​J extends ToastrFeature<J>>
      Returns:
    • assignFunctionsToComponent

      protected void assignFunctionsToComponent()
      Specified by:
      assignFunctionsToComponent in class com.jwebmp.core.Feature<J extends ToastrFeature<J>,​ToastrOptions,​J extends ToastrFeature<J>>
    • getType

      @NotNull public @NotNull ToastrType getType()
      Returns the type for the toastr
      Returns:
    • setType

      @NotNull public J setType​(ToastrType type)
      Sets the type for the toastr
      Parameters:
      type -
    • getMessage

      public java.lang.String getMessage()
      Returns the message of the toaster
      Returns:
    • getTitle

      public java.lang.String getTitle()
      Returns the title of the toastr
      Returns:
    • setTitle

      @NotNull public J setTitle​(java.lang.String title)
      Sets the title of the toastr
      Parameters:
      title -
    • setMessage

      @NotNull public J setMessage​(java.lang.String message)
      Sets the message of the toaster
      Parameters:
      message -