Class AbstractStyleElement<E extends AbstractStyleElement<E>>
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.style.stylable.AbstractStylableElement<E>
ch.nolix.system.style.stylable.AbstractStyleElement<E>
- Type Parameters:
E- is the type of aAbstractStyleElement.
- All Implemented Interfaces:
IFluentMutableMultiTokenHolder<E>, IFluentMutableOptionalIdHolder<E>, IMultiTokenHolder, IOptionalIdHolder, TypeRequestable, Resettable, IElement, IStructureElement, IMutableElement, IStylableElement<E>, IStyleElement<E>
- Direct Known Subclasses:
WebGui
public abstract class AbstractStyleElement<E extends AbstractStyleElement<E>>
extends AbstractStylableElement<E>
implements IStyleElement<E>
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies theIStyleof the currentIStyleElementto the currentIStyleElementand its child elements if the currentIStyleElementhas a {IStylefinal booleanhasStyle()final voidRemoves theIStyleof the currentIStyleElement.Sets the given configuration to the currentIStyleElement.Methods inherited from class AbstractStylableElement
addToken, getChildStructureElements, getId, getTokens, hasId, removeId, removeToken, removeTokens, reset, resetStyleRecursively, setIdMethods inherited from class AbstractMutableElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, resetFromFileWithFilePath, toStringMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IFluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface IFluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface IMultiTokenHolder
getTokensMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IOptionalIdHolder
getId, getIdInQuotes, hasId, hasIdMethods inherited from interface IStructureElement
getChildStructureElementsMethods inherited from interface IStylableElement
getStoredChildStylableElements, hasRole, resetStyleRecursivelyMethods inherited from interface Resettable
resetMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Constructor Details
-
AbstractStyleElement
public AbstractStyleElement()
-
-
Method Details
-
applyStyleIfHasStyle
public void applyStyleIfHasStyle()Applies theIStyleof the currentIStyleElementto the currentIStyleElementand its child elements if the currentIStyleElementhas a {IStyle- Specified by:
applyStyleIfHasStylein interfaceIStyleElement<E extends AbstractStyleElement<E>>
-
hasStyle
public final boolean hasStyle()- Specified by:
hasStylein interfaceIStyleElement<E extends AbstractStyleElement<E>>- Returns:
- true if the current
IStyleElementhas aIStyle, false otherwise.
-
removeStyle
public final void removeStyle()Removes theIStyleof the currentIStyleElement.- Specified by:
removeStylein interfaceIStyleElement<E extends AbstractStyleElement<E>>
-
setStyle
Sets the given configuration to the currentIStyleElement.- Specified by:
setStylein interfaceIStyleElement<E extends AbstractStyleElement<E>>- Parameters:
style-- Returns:
- the current
IStyleElement.
-