Klasse SelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
ch.nolix.system.style.model.SelectingStyle
- Alle implementierten Schnittstellen:
IElement, IBaseStyle<ISelectingStyleWithSelectors>, ISelectingStyle<ISelectingStyleWithSelectors>, ISelectingStyleWithSelectors
- Autor:
- Silvan Wyss
-
Feldübersicht
FelderVon Klasse geerbte Felder AbstractSelectingStyle
SELECTOR_ID_HEADER, SELECTOR_ROLE_HEADER, SELECTOR_TOKEN_HEADER, SELECTOR_TYPE_HEADER -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new emptySelectingStyle.SelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<String> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) Creates a newSelectingStyle. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidapplyToElement(IStylableElement<?> element) Applies the currentIBaseStyleto the given element.final booleanstatic SelectingStylefromSelectingStyle(ISelectingStyleWithSelectors selectingStyle) static SelectingStylefromSpecification(INode<?> specification) final IContainer<String> final IContainer<? extends ISelectingStyleWithSelectors> protected final voidLets the sub styles of the currentAbstractStylestyle the child element of the given element.booleanprotected final voidsetAttachingAttributesToElement(IStylableElement<?> element) Sets the attaching attributes of the currentAbstractStyleto the given element.withAttachingAttributes(IContainer<String> attachingAttributes) withAttachingAttributes(String... attachingAttributes) withSelectorId(String selectorId) withSelectorRoles(IContainer<String> selectorRoles) withSelectorTokens(IContainer<String> selectorTokens) withSelectorType(String selectorType) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) Von Klasse geerbte Methoden AbstractSelectingStyle
containsSelectorRole, containsSelectorRoles, containsSelectorToken, containsSelectorTokens, getAttributes, getSelectorId, getSelectorRoles, getSelectorTokens, getSelectorType, hasSelectorId, hasSelectorId, hasSelectorType, hasSelectorType, hasSelectorType, selectsElement, withSelectorRole, withSelectorRole, withSelectorToken, withSelectorTypeVon Klasse geerbte Methoden AbstractElement
equals, getSpecification, hashCode, toStringVon Schnittstelle geerbte Methoden IBaseStyle
containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAttachingAttributes, withSubStyleVon Schnittstelle geerbte Methoden IElement
getSpecification, toFormatedString, toXmlVon Schnittstelle geerbte Methoden ISelectingStyle
skipsChildElements, skipsElement
-
Felddetails
-
TYPE_NAME
- Siehe auch:
-
ATTACHING_ATTRIBUTE_HEADER
- Siehe auch:
-
-
Konstruktordetails
-
SelectingStyle
public SelectingStyle()Creates a new emptySelectingStyle. -
SelectingStyle
public SelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<String> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) Creates a newSelectingStyle.- Parameter:
optionalSelectorId-optionalSelectorType-selectorRoles-selectorTokens-attachingAttributes-subStyles-
-
-
Methodendetails
-
fromSelectingStyle
-
fromSpecification
- Parameter:
specification-- Gibt zurück:
- a new
SelectingStylefrom the given specification. - Löst aus:
NullPointerException- if the given specification is null.InvalidArgumentException- if the given specification is not valid.
-
selectsChildElements
public boolean selectsChildElements()- Gibt zurück:
- true if the current
ISelectingStylewould select the child elements of a givenIStylableElementto style, false otherwise.
-
applyToElement
Applies the currentIBaseStyleto the given element.- Parameter:
element-
-
withAttachingAttributes
-
withSelectorId
- Parameter:
selectorId-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorId set.
-
withSelectorRoles
- Parameter:
selectorRoles-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRoles added.
-
withSelectorTokens
- Parameter:
selectorTokens-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorTokens added.
-
withSelectorType
- Parameter:
selectorType-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set.
-
withSubStyles
public ISelectingStyleWithSelectors withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
getAttachingAttributes
- Angegeben von:
getAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- the attaching attributes of the current
IBaseStyle.
-
getSubStyles
- Angegeben von:
getSubStylesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- the sub styles of the current
IBaseStyle.
-
containsAttachingAttributes
public final boolean containsAttachingAttributes()- Angegeben von:
containsAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Gibt zurück:
- true if the current
IBaseStylecontains attaching attributes, false otherwise.
-
withAttachingAttributes
- Angegeben von:
withAttachingAttributesin SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Parameter:
attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added.
-
withSubStyle
public final ISelectingStyleWithSelectors withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) - Angegeben von:
withSubStylein SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Parameter:
subStyle-subStyles-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given subStyle and subStyles added.
-
setAttachingAttributesToElement
Sets the attaching attributes of the currentAbstractStyleto the given element.- Parameter:
element-- Löst aus:
InvalidArgumentException- if an attaching attribute of the currentAbstractStyleis not valid for the given element.
-
letSubStylesStyleChildElementsOfElement
Lets the sub styles of the currentAbstractStylestyle the child element of the given element.- Parameter:
element-
-