Package com.j3d.gen.docs.api
Class HeaderIdentifier
java.lang.Object
com.j3d.gen.docs.api.HeaderIdentifier
Represents a
TWHeader within a DocsFrame's JTree.
*
This class is used to identify a header within the help documentation,
allowing for navigation and hierarchical representation in a JTree.
- Author:
- Lehlogonolo Poole
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanA boolean indicating if this identifier represents the head of a file (i.e., the document's main title).private DefaultMutableTreeNodeTheDefaultMutableTreeNodein theJTreethat corresponds to this header.private TextPanelTheTextPanelwhere this header's content is displayed.private StringThe parsed, unique ID for this header, used for navigation and linking.private BiConsumer<JPanel, JScrollPane> ABiConsumerthat defines how to scroll to this header's content within aJScrollPane.private final StringThe title of the header.private TWHeaderTheTWHeadertoken associated with this identifier, if it represents a specific header. -
Constructor Summary
ConstructorsConstructorDescriptionHeaderIdentifier(TWHeader token, TextPanel panel) Constructs a newHeaderIdentifierfor a specific header token.HeaderIdentifier(String title) Constructs a newHeaderIdentifierrepresenting the head of a file (document's main title). -
Method Summary
Modifier and TypeMethodDescriptiongetNode()getPanel()getToken()booleanvoidparseId(LinkedHashMap<String, HeaderIdentifier> other) voidtoString()
-
Field Details
-
token
TheTWHeadertoken associated with this identifier, if it represents a specific header. -
panel
TheTextPanelwhere this header's content is displayed. -
scrollTo
ABiConsumerthat defines how to scroll to this header's content within aJScrollPane. -
fileHead
private boolean fileHeadA boolean indicating if this identifier represents the head of a file (i.e., the document's main title). -
title
The title of the header. -
node
TheDefaultMutableTreeNodein theJTreethat corresponds to this header. -
parsedId
The parsed, unique ID for this header, used for navigation and linking.
-
-
Constructor Details
-
HeaderIdentifier
Constructs a newHeaderIdentifierfor a specific header token. -
HeaderIdentifier
Constructs a newHeaderIdentifierrepresenting the head of a file (document's main title).- Parameters:
title- The title of the file head.
-
-
Method Details