Schnittstelle IBaseStyle<S extends IBaseStyle<S>>
- Typparameter:
S- is the type of aIBaseStyle.
- Alle Superschnittstellen:
IElement
- Alle bekannten Unterschnittstellen:
ISelectingStyle<SS>,ISelectingStyleWithSelectors,IStyle
- Alle bekannten Implementierungsklassen:
BaseSelectingStyle,DeepSelectingStyle,SelectingStyle,Style
A
IBaseStyle can style IStylableElements. A
IBaseStyle can distinguish if it would style also the child elements
of a given IStylableElement.- Version:
- 2023-07-09
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidapplyToElement(IStylableElement<?> element) Applies the currentIBaseStyleto the given element.IContainer<? extends INode<?>> IContainer<? extends ISelectingStyleWithSelectors> withAttachingAttribute(String attachingAttribute, String... attachingAttributes) withAttachingAttributes(IContainer<String> attachingAttributes) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) Von Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.baseapi.IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
applyToElement
Applies the currentIBaseStyleto the given element.- Parameter:
element-
-
getAttachingAttributes
IContainer<? extends INode<?>> 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.
-
withAttachingAttribute
- Parameter:
attachingAttribute-attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttribute and attachingAttributes added. - Löst aus:
RuntimeException- if the given attachingAttribute is not valid.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.
-