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
-
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 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
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 toastrMethods inherited from class com.jwebmp.core.Feature
addQuery, setComponent, setOptionsMethods 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, toStringMethods inherited from class com.jwebmp.core.base.ComponentDependancyBase
addCssReference, addJavaScriptReference, asDependancyBase, cloneComponent, getCssReferences, getCssReferencesAll, getJavascriptReferences, getJavascriptReferencesAll, removeCssReference, removeJavaScriptReferenceMethods 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, setTouchedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods 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, scriptAvailableMethods 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
Constructs a complete feature- Parameters:
type-title-message-
-
-
Method Details
-
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
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
Returns the type for the toastr- Returns:
-
setType
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
Sets the title of the toastr- Parameters:
title-
-
setMessage
Sets the message of the toaster- Parameters:
message-
-