Class AbstractStylableElement<E extends IStylableElement<E>>
java.lang.Object
ch.nolix.system.element.mutableelement.AbstractMutableElement
ch.nolix.system.style.stylable.AbstractStylableElement<E>
- Type Parameters:
E- is the type of aAbstractStylableElement.
- All Implemented Interfaces:
IFluentMutableMultiTokenHolder<E>, IFluentMutableOptionalIdHolder<E>, IMultiTokenHolder, IOptionalIdHolder, TypeRequestable, Resettable, IElement, IStructureElement, IMutableElement, IStylableElement<E>
- Direct Known Subclasses:
AbstractStyleElement, Control, Layer
public abstract class AbstractStylableElement<E extends IStylableElement<E>>
extends AbstractMutableElement
implements IStylableElement<E>
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal EAdds the given token to the currentIFluentMutableMultiTokenHolder.final IContainer<? extends IStructureElement> final StringgetId()final IContainer<String> final booleanhasId()final voidremoveId()Removes the id of the currentIFluentMutableOptionalIdHolder.final voidremoveToken(String token) Removes the token that equals the given token from the currentIFluentMutableMultiTokenHolderif the currentIFluentMutableMultiTokenHoldercontains such a token.final voidRemoves all tokens from the currentIFluentMutableMultiTokenHolder.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 currentIFluentMutableOptionalIdHolder.Methods inherited from class AbstractMutableElement
addOrChangeAttribute, addOrChangeAttribute, equals, getAttributes, getSpecification, hashCode, resetFromFileWithFilePath, toStringMethods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface IMutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, addOrChangeAttributes, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface IOptionalIdHolder
getIdInQuotes, hasIdMethods inherited from interface IStylableElement
getStoredChildStylableElements, hasRoleMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Constructor Details
-
AbstractStylableElement
public AbstractStylableElement()
-
-
Method Details
-
addToken
Description copied from interface:IFluentMutableMultiTokenHolderAdds the given token to the currentIFluentMutableMultiTokenHolder.- Specified by:
addTokenin interfaceIFluentMutableMultiTokenHolder<E extends IStylableElement<E>>- Parameters:
token-- Returns:
- the current
IFluentMutableMultiTokenHolder.
-
getChildStructureElements
- Specified by:
getChildStructureElementsin interfaceIStructureElement- Returns:
- the child
IStructureElements of the currentIStructureElement.
-
getId
- Specified by:
getIdin interfaceIOptionalIdHolder- Returns:
- the id of the current
IOptionalIdHolder.
-
getTokens
- Specified by:
getTokensin interfaceIMultiTokenHolder- Returns:
- the tokens of the current
IMultiTokenHolder.
-
hasId
public final boolean hasId()- Specified by:
hasIdin interfaceIOptionalIdHolder- Returns:
- true if the current
IOptionalIdHolderhas an id.
-
removeId
public final void removeId()Removes the id of the currentIFluentMutableOptionalIdHolder.- Specified by:
removeIdin interfaceIFluentMutableOptionalIdHolder<E extends IStylableElement<E>>
-
removeToken
Removes the token that equals the given token from the currentIFluentMutableMultiTokenHolderif the currentIFluentMutableMultiTokenHoldercontains such a token.- Specified by:
removeTokenin interfaceIFluentMutableMultiTokenHolder<E extends IStylableElement<E>>- Parameters:
token-
-
removeTokens
public final void removeTokens()Removes all tokens from the currentIFluentMutableMultiTokenHolder.- Specified by:
removeTokensin interfaceIFluentMutableMultiTokenHolder<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 currentIFluentMutableOptionalIdHolder.- Specified by:
setIdin interfaceIFluentMutableOptionalIdHolder<E extends IStylableElement<E>>- Parameters:
id-- Returns:
- the current
IFluentMutableOptionalIdHolder.
-