Class ToastrFeature<J extends ToastrFeature<J>>

java.lang.Object
com.jwebmp.core.base.ComponentBase<J>
com.jwebmp.core.base.ComponentDependencyBase<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, com.jwebmp.core.base.html.interfaces.LifeCycle, com.jwebmp.core.base.interfaces.IComponentBase<J>, com.jwebmp.core.base.interfaces.IComponentDependencyBase<J>, com.jwebmp.core.base.interfaces.IComponentFeatureBase<J,J>, Serializable, Cloneable, Comparable<J>, 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:
  • Field Summary

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

    log
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected void
     
    boolean
     
    Returns the message of the toaster
    @NotNull ToastrOptions
    Returns the options
    Returns the title of the toastr
    @NotNull ToastrType
    Returns the type for the toastr
    int
     
    setMessage(String message)
    Sets the message of the toaster
    Sets the title of the toastr
    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.ComponentDependencyBase

    addCssReference, addJavaScriptReference, asDependencyBase, 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, toJson

    Methods inherited from class java.lang.Object

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

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

    asBase, asDependencyBase, asFeatureBase

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

    appendText

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

    init, isConfigured, isInitialized, preConfigure
  • Constructor Details

    • ToastrFeature

      public ToastrFeature(String message)
      Constructs with a given message
      Parameters:
      message -
    • ToastrFeature

      public ToastrFeature()
    • ToastrFeature

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

      public ToastrFeature(ToastrType type, String title, 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(Object obj)
      Specified by:
      equals in interface 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 String getMessage()
      Returns the message of the toaster
      Returns:
    • getTitle

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

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

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