Interface ISelectingStyle<S extends ISelectingStyle<S>>
- Type Parameters:
S- is the type of aISelectingStyle.
- All Superinterfaces:
AttributesRepresentable, IBaseStyle<S>, IElement, SpecificationRepresentable
- All Known Subinterfaces:
ISelectingStyleWithSelectors
- All Known Implementing Classes:
AbstractSelectingStyle, DeepSelectingStyle, SelectingStyle
A
ISelectingStyle is a IBaseStyle that can select or skip a
IStylableElement that is given to be styled.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanselectsElement(IStylableElement<?> element) default booleandefault booleanskipsElement(IStylableElement<?> element) Methods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface IBaseStyle
applyToElement, containsAttachingAttributes, getAttachingAttributes, getSubStyles, withAdditionalSubStyle, withAdditionalSubStyles, withAttachingAttributes, withAttachingAttributes, withSubStylesMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
selectsChildElements
boolean selectsChildElements()- Returns:
- true if the current
ISelectingStylewould select the child elements of a givenIStylableElementto style, false otherwise.
-
selectsElement
- Parameters:
element-- Returns:
- true if the current
ISelectingStylewould select the given element to style, false otherwise.
-
skipsChildElements
default boolean skipsChildElements()- Returns:
- true if the current
ISelectingStylewould not (!) select the child elements of a givenIStylableElementto style, false otherwise.
-
skipsElement
- Parameters:
element-- Returns:
- true if the current
ISelectingStylewould not (!) select the given element to style, false otherwise.
-