@API(type=INTERNAL, src=PUBLIC) public class RemovePseudoClassOperation extends PseudoClassOperation
An operation that removes a pseudo-class from an element.
Let's consider there is a pseudo class myClass
on the element
paragraph
and there are CSS styles matching the pseudo class.
By removing the pseudo-class, the layout of the paragraph
is rebuilt by matching the other rules.
paragraph:myClass{ font-size:2em; color:red; } paragraph{ color:blue; }The paragraph will become blue.
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
RemovePseudoClassOperation() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(AuthorAccess authorAccess,
java.lang.String pseudoClassName,
AuthorElement targetElement)
Removes the pseudo class from 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.