Class AbstractStylableElement<E extends IStylableElement<E>>
java.lang.Object
ch.nolix.system.element.propertieselement.AbstractPropertiesElement
ch.nolix.system.style.stylable.AbstractStylableElement<E>
- Type Parameters:
E- is the type of aAbstractStylableElement.
- All Implemented Interfaces:
FluentMutableMultiTokenHolder<E>, FluentMutableOptionalIdHolder<E>, MultiTokenHolder, OptionalIdHolder, TypeRequestable, Resettable, AttributesRepresentable, IElement, SpecificationRepresentable, IMutableElement, IStylableElement<E>
- Direct Known Subclasses:
AbstractControl, AbstractStyleElement, Layer
public abstract class AbstractStylableElement<E extends IStylableElement<E>>
extends AbstractPropertiesElement
implements IStylableElement<E>
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal EAdds the given token to the currentFluentMutableMultiTokenHolderif the currentFluentMutableMultiTokenHolderdoes not contain already the given token.final StringgetId()final ExtendedIterable<String> final booleanhasId()final voidremoveId()Removes the id of the currentFluentMutableOptionalIdHolder.final voidremoveToken(String token) Removes the given token from the currentFluentMutableMultiTokenHolderif the currentFluentMutableMultiTokenHoldercontains the given token.final voidRemoves all tokens from the currentFluentMutableMultiTokenHolder.final voidreset()Resets the currentResettable.final voidResets the style of the currentIStylableElementand the style of the childIStylableElements of the currentIStylableElement.final ESets the id of the currentFluentMutableOptionalIdHolder.Methods inherited from class AbstractPropertiesElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, toStringMethods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IStylableElement
getStoredChildStylableElements, hasRoleMethods inherited from interface OptionalIdHolder
getIdInSingleQuotes, hasIdMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Constructor Details
-
AbstractStylableElement
public AbstractStylableElement()
-
-
Method Details
-
addToken
Description copied from interface:FluentMutableMultiTokenHolderAdds the given token to the currentFluentMutableMultiTokenHolderif the currentFluentMutableMultiTokenHolderdoes not contain already the given token.- Specified by:
addTokenin interfaceFluentMutableMultiTokenHolder<E extends IStylableElement<E>>- Parameters:
token-- Returns:
- the current
FluentMutableMultiTokenHolder
-
getId
- Specified by:
getIdin interfaceOptionalIdHolder- Returns:
- the id of the current
OptionalIdHolder
-
getTokens
- Specified by:
getTokensin interfaceMultiTokenHolder- Returns:
- the tokens of the current
MultiTokenHolder
-
hasId
public final boolean hasId()- Specified by:
hasIdin interfaceOptionalIdHolder- Returns:
- true if the current
OptionalIdHolderhas an id, false otherwise
-
removeId
public final void removeId()Removes the id of the currentFluentMutableOptionalIdHolder.- Specified by:
removeIdin interfaceFluentMutableOptionalIdHolder<E extends IStylableElement<E>>
-
removeToken
Removes the given token from the currentFluentMutableMultiTokenHolderif the currentFluentMutableMultiTokenHoldercontains the given token.- Specified by:
removeTokenin interfaceFluentMutableMultiTokenHolder<E extends IStylableElement<E>>- Parameters:
token-
-
removeTokens
public final void removeTokens()Removes all tokens from the currentFluentMutableMultiTokenHolder.- Specified by:
removeTokensin interfaceFluentMutableMultiTokenHolder<E extends IStylableElement<E>>
-
reset
public final void reset()Resets the currentResettable.- Specified by:
resetin interfaceResettable
-
resetStyleRecursively
public final void resetStyleRecursively()Resets the style of the currentIStylableElementand the style of the childIStylableElements of the currentIStylableElement.- Specified by:
resetStyleRecursivelyin interfaceIStylableElement<E extends IStylableElement<E>>
-
setId
Sets the id of the currentFluentMutableOptionalIdHolder.- Specified by:
setIdin interfaceFluentMutableOptionalIdHolder<E extends IStylableElement<E>>- Parameters:
id-- Returns:
- the current
FluentMutableOptionalIdHolder
-