Class AbstractStyleElement<E extends AbstractStyleElement<E>>
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElementWithProperties
ch.nolix.system.style.stylable.AbstractStylableElement<E>
ch.nolix.system.style.stylable.AbstractStyleElement<E>
- Type Parameters:
E- the type of aAbstractStyleElement.
- All Implemented Interfaces:
FluentMutableMultiTokenHolder<E>, FluentMutableOptionalIdHolder<E>, MultiTokenHolder, OptionalIdHolder, Resettable, TypeRequestable, AttributesRepresentable, Element, SpecificationRepresentable, MutableElement, StylableElement<E>, StyleHolder<E>
- Direct Known Subclasses:
WebGui
public abstract class AbstractStyleElement<E extends AbstractStyleElement<E>>
extends AbstractStylableElement<E>
implements StyleHolder<E>
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies theIStyleof the currentStyleHolderto the currentStyleHolderand its child elements if the currentStyleHolderhas a {IStylefinal booleanhasStyle()final voidRemoves theIStyleof the currentStyleHolder.Sets the given configuration to the currentStyleHolder.Methods inherited from class AbstractStylableElement
addToken, getId, getTokens, hasId, removeId, removeToken, removeTokens, reset, resetStyleRecursively, setIdMethods inherited from class AbstractMutableElementWithProperties
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, toStringMethods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface FluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface FluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface MultiTokenHolder
getTokensMethods inherited from interface MutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface OptionalIdHolder
getId, getIdInSingleQuotes, hasId, hasIdMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface StylableElement
getStoredChildStylableElements, hasRole, resetStyleRecursivelyMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Constructor Details
-
AbstractStyleElement
public AbstractStyleElement()
-
-
Method Details
-
applyStyleIfHasStyle
public void applyStyleIfHasStyle()Applies theIStyleof the currentStyleHolderto the currentStyleHolderand its child elements if the currentStyleHolderhas a {IStyle- Specified by:
applyStyleIfHasStylein interfaceStyleHolder<E extends AbstractStyleElement<E>>
-
hasStyle
public final boolean hasStyle()- Specified by:
hasStylein interfaceStyleHolder<E extends AbstractStyleElement<E>>- Returns:
- true if the current
StyleHolderhas aIStyle, false otherwise
-
removeStyle
public final void removeStyle()Removes theIStyleof the currentStyleHolder.- Specified by:
removeStylein interfaceStyleHolder<E extends AbstractStyleElement<E>>
-
setStyle
Sets the given configuration to the currentStyleHolder.- Specified by:
setStylein interfaceStyleHolder<E extends AbstractStyleElement<E>>- Parameters:
style-- Returns:
- the current
StyleHolder
-