Class HeaderIdentifier
java.lang.Object
com.j3d.gen.docs.api.HeaderIdentifier
-
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
-
panel
-
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
-
HeaderIdentifier
Constructs a newHeaderIdentifierrepresenting the head of a file (document's main title).- Parameters:
title- The title of the file head.
-
-
Method Details
-
parseId
-
isFileHead
public boolean isFileHead() -
getToken
-
getPanel
-
getScrollTo
-
toString
-
setNode
-
getNode
-
getParsedId
-