Class 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.
    • Constructor Detail

      • TogglePseudoClassOperation

        public TogglePseudoClassOperation()
    • Method Detail

      • execute

        protected void execute​(AuthorAccess authorAccess,
                               java.lang.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 class PseudoClassOperation
        Parameters:
        authorAccess - The access.
        pseudoClassName - The name of the pseudo class.
        targetElement - The element that is changed.
      • getDescription

        public java.lang.String getDescription()
        Returns:
        The description of the extension.
        See Also:
        Extension.getDescription()