Interface IStyleElement<E extends IStyleElement<E>>
- Type Parameters:
E- is the type of aIStyleElement.
- All Superinterfaces:
IElement, IFluentMutableMultiTokenHolder<E>, IFluentMutableOptionalIdHolder<E>, IMultiTokenHolder, IMutableElement, IOptionalIdHolder, IStructureElement, IStylableElement<E>, Resettable, TypeRequestable
- All Known Subinterfaces:
IWebGui<G>
- All Known Implementing Classes:
AbstractStyleElement, WebGui
A
IStyleElement can have a IStyle to apply to itself and to
its child elements.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies theIStyleof the currentIStyleElementto the currentIStyleElementand its child elements if the currentIStyleElementhas a {IStylebooleanhasStyle()voidRemoves theIStyleof the currentIStyleElement.Sets the given configuration to the currentIStyleElement.Methods 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
-
Method Details
-
applyStyleIfHasStyle
void applyStyleIfHasStyle()Applies theIStyleof the currentIStyleElementto the currentIStyleElementand its child elements if the currentIStyleElementhas a {IStyle -
hasStyle
boolean hasStyle()- Returns:
- true if the current
IStyleElementhas aIStyle, false otherwise.
-
removeStyle
void removeStyle()Removes theIStyleof the currentIStyleElement. -
setStyle
Sets the given configuration to the currentIStyleElement.- Parameters:
style-- Returns:
- the current
IStyleElement. - Throws:
RuntimeException- if the given configuration is null.
-