Class DeepSelectingStyle
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.style.model.AbstractSelectingStyle
ch.nolix.system.style.model.DeepSelectingStyle
- All Implemented Interfaces:
AttributesRepresentable, IElement, SpecificationRepresentable, IBaseStyle<ISelectingStyleWithSelectors>, ISelectingStyle<ISelectingStyleWithSelectors>, ISelectingStyleWithSelectors
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToElement(IStylableElement<?> element) Applies the currentIBaseStyleto the given element.final booleanstatic DeepSelectingStylefromSpecification(INode<?> specification) final IContainer<String> final IContainer<? extends ISelectingStyleWithSelectors> booleanwithAdditionalSelectorRoles(IContainer<String> additionalSelectorRoles) withAdditionalSelectorTokens(IContainer<String> additionalSelectorTokens) withAdditionalSubStyle(ISelectingStyleWithSelectors additionalSubStyle) withAdditionalSubStyles(ISelectingStyleWithSelectors... additionalSubStyles) withAttachingAttributes(IContainer<String> attachingAttributes) withAttachingAttributes(String... attachingAttributes) withSelectorId(String selectorId) withSelectorType(String selectorType) withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) Methods inherited from class AbstractSelectingStyle
containsSelectorRole, containsSelectorRoles, containsSelectorToken, containsSelectorTokens, getAttributes, getSelectorId, getSelectorRoles, getSelectorTokens, getSelectorType, hasSelectorId, hasSelectorId, hasSelectorType, hasSelectorType, hasSelectorType, selectsElement, withAdditionalSelectorRole, withAdditionalSelectorRole, withAdditionalSelectorRoles, withAdditionalSelectorRoles, withAdditionalSelectorToken, withAdditionalSelectorTokens, withSelectorTypeMethods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IBaseStyle
containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAdditionalSubStyle, withAdditionalSubStyles, withAttachingAttributesMethods inherited from interface ISelectingStyle
skipsChildElements, skipsElementMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Field Details
-
TYPE_NAME
- See Also:
-
EMPTY
-
-
Method Details
-
fromSpecification
- Parameters:
specification-- Returns:
- a new
DeepSelectingStylefrom the given specification. - Throws:
RuntimeException- if the given specification is not valid.
-
selectsChildElements
public boolean selectsChildElements()- Returns:
- true if the current
ISelectingStylewould select the child elements of a givenIStylableElementto style, false otherwise.
-
applyToElement
Applies the currentIBaseStyleto the given element.- Parameters:
element-
-
withAdditionalSelectorRoles
public ISelectingStyleWithSelectors withAdditionalSelectorRoles(IContainer<String> additionalSelectorRoles) - Parameters:
additionalSelectorRoles-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorRoles.
-
withAttachingAttributes
-
withSelectorId
- Parameters:
selectorId-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorId set.
-
withAdditionalSelectorTokens
public ISelectingStyleWithSelectors withAdditionalSelectorTokens(IContainer<String> additionalSelectorTokens) - Parameters:
additionalSelectorTokens-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given additionalSelectorTokens.
-
withSelectorType
- Parameters:
selectorType-- Returns:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set.
-
withSubStyles
public ISelectingStyleWithSelectors withSubStyles(IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
getAttachingAttributes
- Specified by:
getAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- the attaching attributes of the current
IBaseStyle.
-
getSubStyles
- Specified by:
getSubStylesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- the sub styles of the current
IBaseStyle.
-
containsAttachingAttributes
public final boolean containsAttachingAttributes()- Specified by:
containsAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Returns:
- true if the current
IBaseStylecontains attaching attributes, false otherwise.
-
withAdditionalSubStyle
public final ISelectingStyleWithSelectors withAdditionalSubStyle(ISelectingStyleWithSelectors additionalSubStyle) - Specified by:
withAdditionalSubStylein interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
additionalSubStyle-- Returns:
- a new
IStylefrom the currentIStylewith the given additionalSubStyle.
-
withAdditionalSubStyles
public final ISelectingStyleWithSelectors withAdditionalSubStyles(ISelectingStyleWithSelectors... additionalSubStyles) - Specified by:
withAdditionalSubStylesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
additionalSubStyles-- Returns:
- a new
IStylefrom the currentIStylewith the given additionalSubStyles.
-
withAttachingAttributes
- Specified by:
withAttachingAttributesin interfaceIBaseStyle<S extends IBaseStyle<S>>- Parameters:
attachingAttributes-- Returns:
- a new
IStylefrom the currentIStylewith the given attachingAttributes added.
-