@API(type=INTERNAL, src=PUBLIC) public class SetPseudoClassOperation extends PseudoClassOperation
An operation that sets a pseudo-class to an element.
There is no constraint on pseudo-class name. Let's consider we
set a pseudo class myClass
on the element
paragraph
. If there are CSS styles matching the pseudo class,
the layout of the paragraph
is rebuilt taking them into account.
paragraph{ color:blue; } paragraph:myClass{ font-size:2em; color:red; }The paragraph is now red.
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
SetPseudoClassOperation() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(AuthorAccess authorAccess,
java.lang.String pseudoClassName,
AuthorElement targetElement)
Sets the pseudo class to an element.
|
java.lang.String |
getDescription() |
doOperation, getArguments
protected void execute(AuthorAccess authorAccess, java.lang.String pseudoClassName, AuthorElement targetElement)
execute
in class PseudoClassOperation
authorAccess
- The access.pseudoClassName
- The name of the pseudo class.targetElement
- The element that is changed.public java.lang.String getDescription()
Extension.getDescription()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.