Class SetPseudoClassOperation

java.lang.Object
ro.sync.ecss.extensions.commons.operations.PseudoClassOperation
ro.sync.ecss.extensions.commons.operations.SetPseudoClassOperation
All Implemented Interfaces:
AuthorOperation, Extension

@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.
  • Constructor Details

    • SetPseudoClassOperation

      public SetPseudoClassOperation()
  • Method Details

    • execute

      protected void execute(AuthorAccess authorAccess, String pseudoClassName, AuthorElement targetElement)
      Sets the pseudo class to an element.
      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 String getDescription()
      Returns:
      The description of the extension.
      See Also: