Class AbstractMultiStateConfiguration<C extends MultiStateConfiguration<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- the type of aAbstractMultiStateConfiguration.S- the type of theEnumrepresentation of theStates of aAbstractMultiStateConfiguration.
- All Implemented Interfaces:
Resettable, AttributesRepresentable, Element, SpecificationRepresentable, MultiStateConfiguration<C,S>, MutableElement, RespondingMutableElement<C>
- Direct Known Subclasses:
AbstractControlStyle
public abstract class AbstractMultiStateConfiguration<C extends MultiStateConfiguration<C,S>, S extends Enum<S>>
extends AbstractElement
implements MultiStateConfiguration<C,S>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddChild(MultiStateConfiguration<?, S> child) final booleanaddedOrChangedAttribute(Node<?> attribute) Adds or changes the given attribute to the currentRespondingMutableElementif the given attributes matches.final voidaddOrChangeAttribute(Node<?> attribute) Adds or changes the given attribute to the currentMutableElement.final voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentMutableElement.final ExtendedIterable<Node<?>> final S<T extends MultiStateConfiguration<T,S>>
voidremoveChild(T multiStateConfiguration) final voidreset()Resets the currentResettable.final voidMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface MutableElement
addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
addedOrChangedAttribute
Adds or changes the given attribute to the currentRespondingMutableElementif the given attributes matches.- Specified by:
addedOrChangedAttributein interfaceRespondingMutableElement<C extends MultiStateConfiguration<C,S>> - Parameters:
attribute-- Returns:
- true if the given attribute was added or changed to the current
RespondingMutableElement, false otherwise
-
addOrChangeAttribute
Adds or changes the given attribute to the currentMutableElement.- Specified by:
addOrChangeAttributein interfaceMutableElement- Parameters:
attribute-
-
addOrChangeAttribute
Adds or changes the given attribute to the currentMutableElement.- Specified by:
addOrChangeAttributein interfaceMutableElement- Parameters:
attribute-
-
getAttributes
- Specified by:
getAttributesin interfaceAttributesRepresentable- Returns:
- the attributes of the current
AttributesRepresentable
-
getBaseState
- Specified by:
getBaseStatein interfaceMultiStateConfiguration<C extends MultiStateConfiguration<C,S>, S extends Enum<S>>
-
reset
public final void reset()Resets the currentResettable.- Specified by:
resetin interfaceResettable
-
setFrom
-
addChild
- Specified by:
addChildin interfaceMultiStateConfiguration<C extends MultiStateConfiguration<C,S>, S extends Enum<S>>
-
removeChild
- Specified by:
removeChildin interfaceMultiStateConfiguration<C extends MultiStateConfiguration<C,S>, S extends Enum<S>>
-