Schnittstelle IBaseStyle<S extends IBaseStyle<S>>
- Typparameter:
S- is the type of aIBaseStyle.
- Alle Superschnittstellen:
IElement
- Alle bekannten Unterschnittstellen:
ISelectingStyle<S>, ISelectingStyleWithSelectors, IStyle
- Alle bekannten Implementierungsklassen:
AbstractSelectingStyle, DeepSelectingStyle, SelectingStyle, Style
A
IBaseStyle can style IStylableElements. A
IBaseStyle can distinguish if it would style also the child elements
of a given IStylableElement.- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidapplyToElement(IStylableElement<?> element) Applies the currentIBaseStyleto the given element.booleanIContainer<? extends ISelectingStyleWithSelectors> withAttachingAttributes(IContainer<String> attachingAttributes) withAttachingAttributes(String... attachingAttributes) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) Von Schnittstelle geerbte Methoden IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
applyToElement
Applies the currentIBaseStyleto the given element.- Parameter:
element-
-
getAttachingAttributes
IContainer<String> getAttachingAttributes()- Gibt zurück:
- the attaching attributes of the current
IBaseStyle.
-
getSubStyles
IContainer<? extends ISelectingStyleWithSelectors> getSubStyles()- Gibt zurück:
- the sub styles of the current
IBaseStyle.
-
containsAttachingAttributes
boolean containsAttachingAttributes()- Gibt zurück:
- true if the current
IBaseStylecontains attaching attributes, false otherwise.
-
withAttachingAttributes
- Parameter:
attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added. - Löst aus:
RuntimeException- if the given attachingAttributes is null.RuntimeException- if one of the given attachingAttributes is not valid.
-
withAttachingAttributes
- Parameter:
attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added. - Löst aus:
RuntimeException- if the given attachingAttributes is null.RuntimeException- if one of the given attachingAttributes is not valid.
-
withSubStyle
- Parameter:
subStyle-subStyles-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given subStyle and subStyles added. - Löst aus:
RuntimeException- if the given subStyle is not valid.RuntimeException- if the given subStyles is null.RuntimeException- if one of the given subStyles is not valid.
-
withSubStyles
- Parameter:
subStyles-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given subStyles added. - Löst aus:
RuntimeException- if the given subStyles is null.RuntimeException- if one of the given subStyles is not valid.
-