Class AbstractMultiStateConfiguration<C extends IMultiStateConfiguration<C,S>, S extends Enum<S>>
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.element.multistateconfiguration.AbstractMultiStateConfiguration<C,S>
- Type Parameters:
C- is the type of aAbstractMultiStateConfiguration.S- is the type of theEnumrepresentation of theStates of aAbstractMultiStateConfiguration.
- All Implemented Interfaces:
Resettable, IElement, IMultiStateConfiguration<C,S>, IMutableElement, IRespondingMutableElement<C>
- Direct Known Subclasses:
AbstractControlStyle
public abstract class AbstractMultiStateConfiguration<C extends IMultiStateConfiguration<C,S>, S extends Enum<S>>
extends AbstractElement
implements IMultiStateConfiguration<C,S>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaddedOrChangedAttribute(INode<?> attribute) Adds or changes the given attribute to the currentIRespondingMutableElementif the given attributes matches.final voidaddOrChangeAttribute(INode<?> attribute) Adds or changes the given attribute to the currentIMutableElement.voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentIMutableElement.final IContainer<INode<?>> final Sfinal voidreset()Resets the currentResettable.final voidMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IElement
getSpecification, toFormatedString, toXmlMethods inherited from interface IMutableElement
addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecification
-
Method Details
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentIRespondingMutableElementif the given attributes matches.- Specified by:
addedOrChangedAttributein interfaceIRespondingMutableElement<C extends IMultiStateConfiguration<C,S>> - Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
IRespondingMutableElement, false otherwise.
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Specified by:
addOrChangeAttributein interfaceIMutableElement- Parameters:
attribute-
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Specified by:
addOrChangeAttributein interfaceIMutableElement- Parameters:
attribute-
-
getAttributes
- Specified by:
getAttributesin interfaceIElement- Returns:
- the attributes of the current
IElement.
-
getBaseState
- Specified by:
getBaseStatein interfaceIMultiStateConfiguration<C extends IMultiStateConfiguration<C,S>, S extends Enum<S>>
-
reset
public final void reset()Resets the currentResettable.- Specified by:
resetin interfaceResettable
-
setFrom
-