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 TypeMethodDescriptionvoid
collapseFold
(AuthorNode node) If the node's fold is expanded, collapse it.void
expandFold
(AuthorNode node) If the node is folded, expand it.boolean
isFoldable
(AuthorNode node) Check if a particular node is foldable.boolean
isFolded
(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:
true
if the node can be folded.
-
isFolded
Check if a particular node is folded.- Parameters:
node
- The Author Node.- Returns:
true
if 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.
-