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, AttributesRepresentable, IElement, SpecificationRepresentable, 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 voidaddChild(IMultiStateConfiguration<?, S> child) final 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.final voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentIMutableElement.final IContainer<INode<?>> final S<T extends IMultiStateConfiguration<T,S>>
voidremoveChild(T multiStateConfiguration) final voidreset()Resets the currentResettable.final voidMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IMutableElement
addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
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 interfaceAttributesRepresentable- Returns:
- the attributes of the current
AttributesRepresentable
-
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
-
addChild
- Specified by:
addChildin interfaceIMultiStateConfiguration<C extends IMultiStateConfiguration<C,S>, S extends Enum<S>>
-
removeChild
- Specified by:
removeChildin interfaceIMultiStateConfiguration<C extends IMultiStateConfiguration<C,S>, S extends Enum<S>>
-