Class RemovePseudoClassOperation
java.lang.Object
ro.sync.ecss.extensions.commons.operations.PseudoClassOperation
ro.sync.ecss.extensions.commons.operations.RemovePseudoClassOperation
- All Implemented Interfaces:
AuthorOperation,Extension
@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.-
Field Summary
Fields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(AuthorAccess authorAccess, String pseudoClassName, AuthorElement targetElement) Removes the pseudo class from an element.Methods inherited from class ro.sync.ecss.extensions.commons.operations.PseudoClassOperation
doOperation, getArguments
-
Constructor Details
-
RemovePseudoClassOperation
public RemovePseudoClassOperation()
-
-
Method Details
-
execute
protected void execute(AuthorAccess authorAccess, String pseudoClassName, AuthorElement targetElement) Removes the pseudo class from an element.- Specified by:
executein classPseudoClassOperation- Parameters:
authorAccess- The access.pseudoClassName- The name of the pseudo class.targetElement- The element that is changed.
-
getDescription
- Returns:
- The description of the extension.
- See Also:
-