@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorPseudoClassController
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Modifier and Type | Method and Description |
---|---|
void |
removePseudoClass(java.lang.String pseudoClass,
AuthorElement element)
Removes a pseudo class from the given element.
|
void |
setPseudoClass(java.lang.String pseudoClass,
AuthorElement element)
Sets a pseudo class in the specified element.
|
void setPseudoClass(java.lang.String pseudoClass, AuthorElement element)
Sets a pseudo class in the specified element.
This change *IS NOT* subject to undo/redo.
What is good for: You can use a non standard (custom) pseudo class to impose a style change on a specific element. For instance you can have CSS styles matching a custom pseudo-class, like the one below:
section:access-control-user { display:block; } section { display:none; }
By setting the pseudoClass
"access-control-user", the
element section
will become visible.
Another example:
*:caret-visited { color:red; }You could create an
AuthorCaretListener
that sets the caret-visited
pseudo class to the element at the caret location. The effect will be that all the
elements traversed by the caret become red.pseudoClass
- Name of the pseudo class being set.element
- The AuthorElement
whose attribute is changing.void removePseudoClass(java.lang.String pseudoClass, AuthorElement element)
pseudoClass
- Name of the pseudo class being set.element
- The AuthorElement
whose attribute will be removed.© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.