Class TogglePseudoClassOperation
java.lang.Object
ro.sync.ecss.extensions.commons.operations.PseudoClassOperation
ro.sync.ecss.extensions.commons.operations.TogglePseudoClassOperation
- All Implemented Interfaces:
AuthorOperation
,Extension
@API(type=INTERNAL,
src=PUBLIC)
public class TogglePseudoClassOperation
extends PseudoClassOperation
An implementation of an operation to toggle on/off the pseudo-class of an element.
-
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 void
execute
(AuthorAccess authorAccess, String pseudoClassName, AuthorElement targetElement) Sets the pseudo class to an element if it was not already set, or removes it if it was set.Methods inherited from class ro.sync.ecss.extensions.commons.operations.PseudoClassOperation
doOperation, getArguments
-
Constructor Details
-
TogglePseudoClassOperation
public TogglePseudoClassOperation()
-
-
Method Details
-
execute
protected void execute(AuthorAccess authorAccess, String pseudoClassName, AuthorElement targetElement) Sets the pseudo class to an element if it was not already set, or removes it if it was set.- Specified by:
execute
in 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:
-