Package com.jwebmp.plugins.toastr
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
-
-
Constructor Summary
Constructors Constructor Description ToastrFeature()ToastrFeature(ToastrType type, java.lang.String title, java.lang.String message)Constructs a complete featureToastrFeature(java.lang.String message)Constructs with a given messageToastrFeature(java.lang.String title, java.lang.String message)Constructs a new feature with title and message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassignFunctionsToComponent()booleanequals(java.lang.Object obj)java.lang.StringgetMessage()Returns the message of the toaster@NotNull ToastrOptionsgetOptions()Returns the optionsjava.lang.StringgetTitle()Returns the title of the toastr@NotNull ToastrTypegetType()Returns the type for the toastrinthashCode()JsetMessage(java.lang.String message)Sets the message of the toasterJsetTitle(java.lang.String title)Sets the title of the toastrJsetType(ToastrType type)Sets the type for the toastr-
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
-
-
-
-
Constructor Detail
-
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 Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.jwebmp.core.Feature<J extends ToastrFeature<J>,ToastrOptions,J extends ToastrFeature<J>>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Comparator<J extends ToastrFeature<J>>- Overrides:
equalsin classcom.jwebmp.core.Feature<J extends ToastrFeature<J>,ToastrOptions,J extends ToastrFeature<J>>
-
getOptions
@NotNull public @NotNull ToastrOptions getOptions()
Returns the options- Specified by:
getOptionsin interfacecom.jwebmp.core.base.interfaces.IComponentFeatureBase<J extends ToastrFeature<J>,J extends ToastrFeature<J>>- Overrides:
getOptionsin classcom.jwebmp.core.Feature<J extends ToastrFeature<J>,ToastrOptions,J extends ToastrFeature<J>>- Returns:
-
assignFunctionsToComponent
protected void assignFunctionsToComponent()
- Specified by:
assignFunctionsToComponentin classcom.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-
-
-