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
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
BaseSelectingStyle
(String optionalSelectorId, String optionalSelectorType, IContainer<String> selectorRoles, IContainer<String> selectorTokens, IContainer<? extends INode<?>> attachingAttributes, IContainer<? extends ISelectingStyleWithSelectors> subStyles) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
containsSelectorRole
(String selectorRole) final boolean
final boolean
containsSelectorToken
(String selectorToken) final boolean
final IContainer
<? extends INode<?>> final IContainer
<INode<?>> final String
final IContainer
<String> final IContainer
<String> final String
final IContainer
<? extends ISelectingStyleWithSelectors> final boolean
final boolean
final boolean
hasSelectorId
(String selectorId) final boolean
final boolean
hasSelectorType
(String selectorType) protected final void
Lets the sub styles of the currentBaseStyle
style the child element of the given element.final boolean
selectsElement
(IStylableElement<?> element) protected final void
setAttachingAttributesToElement
(IStylableElement<?> element) Sets the attaching attributes of the currentBaseStyle
to 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, toString
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.styleapi.IBaseStyle
applyToElement, getAttachingAttributes, getSubStyles, withAttachingAttribute, withAttachingAttributes, withSubStyle, withSubStyles
Von Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.baseapi.IElement
getSpecification, toFormatedString, toXml
Von Schnittstelle geerbte Methoden ch.nolix.systemapi.elementapi.styleapi.ISelectingStyle
selectsChildElements, skipsChildElements, skipsElement
Von 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:
getAttributes
in SchnittstelleIElement
- Gibt zurück:
- the attributes of the current
IElement
.
-
getSelectorId
- Angegeben von:
getSelectorId
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- the selector id of the current
ISelectingStyleWithSelectors
.
-
getSelectorRoles
- Angegeben von:
getSelectorRoles
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- the selector roles of the current
ISelectingStyleWithSelectors
.
-
getSelectorTokens
- Angegeben von:
getSelectorTokens
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- the selector tokens of the current
ISelectingStyleWithSelectors
.
-
getSelectorType
- Angegeben von:
getSelectorType
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- the selector type of the current
ISelectingStyleWithSelectors
.
-
hasSelectorId
public final boolean hasSelectorId()- Angegeben von:
hasSelectorId
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- true if the current
ISelectingStyleWithSelectors
has a selector id.
-
hasSelectorId
-
hasSelectorType
public final boolean hasSelectorType()- Angegeben von:
hasSelectorType
in SchnittstelleISelectingStyleWithSelectors
- Gibt zurück:
- true if the current
ISelectingStyleWithSelectors
has a selector type.
-
hasSelectorType
-
selectsElement
- Angegeben von:
selectsElement
in SchnittstelleISelectingStyle<ISelectingStyleWithSelectors>
- Parameter:
element
-- Gibt zurück:
- true if the current
ISelectingStyle
would select the given element to style.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(Enum<?> selectorRole, Enum<?>... selectorRoles) - Angegeben von:
withSelectorRole
in SchnittstelleISelectingStyleWithSelectors
- Parameter:
selectorRole
-selectorRoles
-- Gibt zurück:
- a new
ISelectingStyleWithSelectors
from the currentISelectingStyleWithSelectors
with the given selectorRole and selectorRoles added.
-
withSelectorRole
public final ISelectingStyleWithSelectors withSelectorRole(String selectorRole, String... selectorRoles) - Angegeben von:
withSelectorRole
in SchnittstelleISelectingStyleWithSelectors
- Parameter:
selectorRole
-selectorRoles
-- Gibt zurück:
- a new
ISelectingStyleWithSelectors
from the currentISelectingStyleWithSelectors
with the given selectorRole and selectorRoles added.
-
withSelectorToken
public final ISelectingStyleWithSelectors withSelectorToken(String selectorToken, String... selectorTokens) - Angegeben von:
withSelectorToken
in SchnittstelleISelectingStyleWithSelectors
- Parameter:
selectorToken
-selectorTokens
-- Gibt zurück:
- a new
ISelectingStyleWithSelectors
from the currentISelectingStyleWithSelectors
with the given selectorToken and selectorTokens added.
-
withSelectorType
- Angegeben von:
withSelectorType
in SchnittstelleISelectingStyleWithSelectors
- Parameter:
selectorType
-- Gibt zurück:
- a new
ISelectingStyleWithSelectors
from the currentISelectingStyleWithSelectors
with the given selectorType set.
-
getAttachingAttributes
- Angegeben von:
getAttachingAttributes
in SchnittstelleIBaseStyle<S extends IBaseStyle<S>>
- Gibt zurück:
- the attaching attributes of the current
IBaseStyle
.
-
getSubStyles
- Angegeben von:
getSubStyles
in 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
BaseStyle
has attaching attributes.
-
withAttachingAttribute
public final ISelectingStyleWithSelectors withAttachingAttribute(String attachingAttribute, String... attachingAttributes) - Angegeben von:
withAttachingAttribute
in SchnittstelleIBaseStyle<S extends IBaseStyle<S>>
- Parameter:
attachingAttribute
-attachingAttributes
-- Gibt zurück:
- a new
IStyle
from the currentIStyle
with the given attachingAttribute and attachingAttributes added.
-
withSubStyle
public final ISelectingStyleWithSelectors withSubStyle(ISelectingStyleWithSelectors subStyle, ISelectingStyleWithSelectors... subStyles) - Angegeben von:
withSubStyle
in SchnittstelleIBaseStyle<S extends IBaseStyle<S>>
- Parameter:
subStyle
-subStyles
-- Gibt zurück:
- a new
IStyle
from the currentIStyle
with the given subStyle and subStyles added.
-
setAttachingAttributesToElement
Sets the attaching attributes of the currentBaseStyle
to the given element.- Parameter:
element
-- Löst aus:
InvalidArgumentException
- if an attaching attribute of the currentBaseStyle
is not valid for the given element.
-
letSubStylesStyleChildElementsOfElement
Lets the sub styles of the currentBaseStyle
style the child element of the given element.- Parameter:
element
-
-