Interface AuthorFoldManager
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorFoldManager
Interface which can be used to expand/collapse foldable nodes.
The CSS is used to mark nodes as foldable:
https://www.oxygenxml.com/doc/ug-oxygen/#topics/dg-folding-elements.html
- Since:
- 17
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollapseFold(AuthorNode node) If the node's fold is expanded, collapse it.voidexpandFold(AuthorNode node) If the node is folded, expand it.booleanisFoldable(AuthorNode node) Check if a particular node is foldable.booleanisFolded(AuthorNode node) Check if a particular node is folded.
-
Method Details
-
isFoldable
Check if a particular node is foldable.- Parameters:
node- The Author Node.- Returns:
trueif the node can be folded.
-
isFolded
Check if a particular node is folded.- Parameters:
node- The Author Node.- Returns:
trueif the node is folded.
-
expandFold
If the node is folded, expand it.- Parameters:
node- The Author Node.
-
collapseFold
If the node's fold is expanded, collapse it.- Parameters:
node- The Author Node.
-