Package ch.nolix.systemapi.style.model
Schnittstelle IAbstractStyle<S extends IAbstractStyle<S>>
- Typparameter:
S- is the type of aIAbstractStyle.
- Alle Superschnittstellen:
IElement
- Alle bekannten Unterschnittstellen:
ISelectingStyle<S>,ISelectingStyleWithSelectors,IStyle
- Alle bekannten Implementierungsklassen:
AbstractSelectingStyle,DeepSelectingStyle,SelectingStyle,Style
A
IAbstractStyle can style IStylableElements. A
IAbstractStyle 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 currentIAbstractStyleto the given element.IContainer<? extends IAttachingAttribute> IContainer<? extends ISelectingStyleWithSelectors> booleanwithAttachingAttribute(Enum<?> tag, String value) withAttachingAttribute(String attachingAttribute, String... attachingAttributes) withAttachingAttributes(IContainer<? extends IAttachingAttribute> attachingAttributes) withNewAttachingAttributesWhereSelectorType(String selectorType, IContainer<String> newAttachingAttributes) withNewAttachingAttributesWhereSelectorType(String selectorType, String newAttachingAttribute, String... newAttachingAttributes) withReplacedAttachingAttributes(IContainer<IPair<String, String>> attachingAttributeReplacements) withReplacedAttachingAttributes(IPair<String, String> attachingAttributeReplacement, IPair<String, String>... attachingAttributeReplacements) withReplacedTaggedAttachingAttributes(IContainer<IPair<Enum<?>, String>> attachingAttributeReplacements) withReplacedTaggedAttachingAttributes(IPair<Enum<?>, String> attachingAttributeReplacement, IPair<Enum<?>, String>... attachingAttributeReplacements) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) Von Schnittstelle geerbte Methoden ch.nolix.systemapi.element.base.IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
applyToElement
Applies the currentIAbstractStyleto the given element.- Parameter:
element-
-
getAttachingAttributes
IContainer<? extends IAttachingAttribute> getAttachingAttributes()- Gibt zurück:
- the attaching attributes of the current
IAbstractStyle.
-
getSubStyles
IContainer<? extends ISelectingStyleWithSelectors> getSubStyles()- Gibt zurück:
- the sub styles of the current
IAbstractStyle.
-
hasAttachingAttributes
boolean hasAttachingAttributes()- Gibt zurück:
- true if the current
IAbstractStylehas attaching attributes, false otherwise.
-
withAttachingAttribute
- Parameter:
tag-value-- Gibt zurück:
- a new
IStylefrom the currentIStylewith an attaching attribute added that has the given tag and value. - Löst aus:
RuntimeException- if the given tag is null.RuntimeException- if the given attachingAttribute is not valid.
-
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.
-
withNewAttachingAttributesWhereSelectorType
S withNewAttachingAttributesWhereSelectorType(String selectorType, IContainer<String> newAttachingAttributes) - Parameter:
selectorType-newAttachingAttributes-- Gibt zurück:
- a new
IAbstractStylefrom the currentIAbstractStylewhere each of the given newAttachingAttributes was either added or updated the according attachingAttributes where the given selectorType is.
-
withNewAttachingAttributesWhereSelectorType
S withNewAttachingAttributesWhereSelectorType(String selectorType, String newAttachingAttribute, String... newAttachingAttributes) - Parameter:
selectorType-newAttachingAttribute-newAttachingAttributes-- Gibt zurück:
- a new
IAbstractStylefrom the currentIAbstractStylewhere the newAttachingAttribute and each of the given newAttachingAttributes either was added or updated the according attachingAttributes where the given selectorType is.
-
withReplacedAttachingAttributes
-
withReplacedAttachingAttributes
-
withReplacedTaggedAttachingAttributes
S withReplacedTaggedAttachingAttributes(IContainer<IPair<Enum<?>, String>> attachingAttributeReplacements) -
withReplacedTaggedAttachingAttributes
-
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.
-