Interface StyleHolder<E extends StyleHolder<E>>
- Type Parameters:
E- the type of aStyleHolder.
- All Superinterfaces:
AttributesRepresentable, Element, FluentMutableMultiTokenHolder<E>, FluentMutableOptionalIdHolder<E>, MultiTokenHolder, MutableElement, OptionalIdHolder, Resettable, SpecificationRepresentable, StylableElement<E>, TypeRequestable
- All Known Subinterfaces:
IWebGui<G>
- All Known Implementing Classes:
AbstractStyleElement, WebGui
A
StyleHolder can have a IStyle to apply to itself and to its
child elements.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies theIStyleof the currentStyleHolderto the currentStyleHolderand its child elements if the currentStyleHolderhas a {IStylebooleanhasStyle()voidRemoves theIStyleof the currentStyleHolder.Sets the given configuration to the currentStyleHolder.Methods 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
-
Method Details
-
applyStyleIfHasStyle
void applyStyleIfHasStyle()Applies theIStyleof the currentStyleHolderto the currentStyleHolderand its child elements if the currentStyleHolderhas a {IStyle -
hasStyle
boolean hasStyle()- Returns:
- true if the current
StyleHolderhas aIStyle, false otherwise
-
removeStyle
void removeStyle()Removes theIStyleof the currentStyleHolder. -
setStyle
Sets the given configuration to the currentStyleHolder.- Parameters:
style-- Returns:
- the current
StyleHolder - Throws:
RuntimeException- if the given configuration is null
-