Module com.jwebmp.plugins.toastr
Package com.jwebmp.plugins.toastr
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
ConstructorsConstructorDescriptionToastrFeature(ToastrType type, String title, String message) Constructs a complete featureToastrFeature(String message) Constructs with a given messageToastrFeature(String title, String message) Constructs a new feature with title and message -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanReturns the message of the toaster@NotNull ToastrOptionsReturns the optionsgetTitle()Returns the title of the toastr@NotNull ToastrTypegetType()Returns the type for the toastrinthashCode()setMessage(String message) Sets the message of the toasterSets the title of the toastrsetType(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.ComponentDependencyBase
addCssReference, addJavaScriptReference, asDependencyBase, 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, setTouched, toJsonMethods 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.html.interfaces.GlobalFeatures
asBase, asDependencyBase, asFeatureBaseMethods inherited from interface com.jwebmp.core.base.interfaces.IComponentBase
appendTextMethods inherited from interface com.jwebmp.core.base.html.interfaces.LifeCycle
init, isConfigured, isInitialized, preConfigure
-
Constructor Details
-
ToastrFeature
Constructs with a given message- Parameters:
message-
-
ToastrFeature
public ToastrFeature() -
ToastrFeature
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
- Specified by:
equalsin interfaceComparator<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
Returns the message of the toaster- Returns:
-
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-
-