Package ch.nolix.system.element.style
Klasse BaseSelectingStyle
java.lang.Object
ch.nolix.system.element.base.Element
ch.nolix.system.element.style.BaseSelectingStyle
- Alle implementierten Schnittstellen:
IElement,IBaseStyle<ISelectingStyleWithSelectors>,ISelectingStyle<ISelectingStyleWithSelectors>,ISelectingStyleWithSelectors
- Bekannte direkte Unterklassen:
DeepSelectingStyle,SelectingStyle
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedBaseSelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<? extends INode<?>> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleancontainsSelectorRole(String selectorRole) final booleanfinal booleancontainsSelectorToken(String selectorToken) final booleanfinal IContainer<? extends INode<?>> final IContainer<INode<?>> final Stringfinal IContainer<String> final IContainer<String> final Stringfinal IContainer<? extends ISelectingStyleWithSelectors> final booleanfinal booleanfinal booleanhasSelectorId(String selectorId) final booleanfinal booleanhasSelectorType(String selectorType) protected final voidLets the sub styles of the currentBaseStylestyle the child element of the given element.final booleanselectsElement(IStylableElement<?> element) protected final voidsetAttachingAttributesToElement(IStylableElement<?> element) Sets the attaching attributes of the currentBaseStyleto the given element.withAttachingAttribute(String attachingAttribute, String... attachingAttributes) withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) withSelectorRole(String selectorRole, String... selectorRoles) withSelectorToken(String selectorToken, String... selectorTokens) withSelectorType(Class<?> selectorType) withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) Von Klasse geerbte Methoden ch.nolix.system.element.base.Element
equals, getSpecification, hashCode, toStringVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.styleapi.IBaseStyle
applyToElement, getAttachingAttributes, getSubStyles, withAttachingAttribute, withAttachingAttributes, withSubStyle, withSubStylesVon Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.baseapi.IElement
getSpecification, toFormatedString, toXmlVon Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.styleapi.ISelectingStyle
selectsChildElements, skipsChildElements, skipsElementVon Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.styleapi.ISelectingStyleWithSelectors
withSelectorId, withSelectorRoles, withSelectorTokens, withSelectorType
-
Felddetails
-
SELECTOR_ID_HEADER
- Siehe auch:
-
SELECTOR_TYPE_HEADER
- Siehe auch:
-
SELECTOR_ROLE_HEADER
- Siehe auch:
-
SELECTOR_TOKEN_HEADER
- Siehe auch:
-
ATTACHING_ATTRIBUTE_HEADER
- Siehe auch:
-
-
Konstruktordetails
-
BaseSelectingStyle
protected BaseSelectingStyle(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<? extends INode<?>> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles)
-
-
Methodendetails
-
containsSelectorRole
-
containsSelectorRoles
public final boolean containsSelectorRoles() -
containsSelectorToken
-
containsSelectorTokens
public final boolean containsSelectorTokens() -
getAttributes
- Angegeben von:
getAttributesin SchnittstelleIElement- Gibt zurück:
- the attributes of the current
IElement.
-
getSelectorId
- Angegeben von:
getSelectorIdin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector id of the current
ISelectingStyleWithSelectors.
-
getSelectorRoles
- Angegeben von:
getSelectorRolesin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector roles of the current
ISelectingStyleWithSelectors.
-
getSelectorTokens
- Angegeben von:
getSelectorTokensin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector tokens of the current
ISelectingStyleWithSelectors.
-
getSelectorType
- Angegeben von:
getSelectorTypein SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- the selector type of the current
ISelectingStyleWithSelectors.
-
hasSelectorId
public final boolean hasSelectorId()- Angegeben von:
hasSelectorIdin SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- true if the current
ISelectingStyleWithSelectorshas a selector id.
-
hasSelectorId
-
hasSelectorType
public final boolean hasSelectorType()- Angegeben von:
hasSelectorTypein SchnittstelleISelectingStyleWithSelectors- Gibt zurück:
- true if the current
ISelectingStyleWithSelectorshas a selector type.
-
hasSelectorType
-
selectsElement
- Angegeben von:
selectsElementin SchnittstelleISelectingStyle<ISelectingStyleWithSelectors>- Parameter:
element-- Gibt zurück:
- true if the current
ISelectingStylewould select the given element to style.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) - Angegeben von:
withSelectorRolein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorRole-selectorRoles-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(String selectorRole, String... selectorRoles) - Angegeben von:
withSelectorRolein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorRole-selectorRoles-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorRole and selectorRoles added.
-
withSelectorToken
public final ISelectingStyleWithSelectors withSelectorToken(String selectorToken, String... selectorTokens) - Angegeben von:
withSelectorTokenin SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorToken-selectorTokens-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorToken and selectorTokens added.
-
withSelectorType
- Angegeben von:
withSelectorTypein SchnittstelleISelectingStyleWithSelectors- Parameter:
selectorType-- Gibt zurück:
- a new
ISelectingStyleWithSelectorsfrom the currentISelectingStyleWithSelectorswith the given selectorType set.
-
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.
-
hasAttachingAttributes
public final boolean hasAttachingAttributes()- Gibt zurück:
- true if the current
BaseStylehas attaching attributes.
-
withAttachingAttribute
public final ISelectingStyleWithSelectors withAttachingAttribute(String attachingAttribute, String... attachingAttributes) - Angegeben von:
withAttachingAttributein SchnittstelleIBaseStyle<S extends IBaseStyle<S>>- Parameter:
attachingAttribute-attachingAttributes-- Gibt zurück:
- a new
IStylefrom the currentIStylewith the given attachingAttribute and 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 currentBaseStyleto the given element.- Parameter:
element-- Löst aus:
InvalidArgumentException- if an attaching attribute of the currentBaseStyleis not valid for the given element.
-
letSubStylesStyleChildElementsOfElement
Lets the sub styles of the currentBaseStylestyle the child element of the given element.- Parameter:
element-
-