java.lang.Object
java.lang.Record
atlantafx.base.util.BBCodeHandler.Block
- Record Components:
node- The node that represents the block.text- The text content.
- Enclosing interface:
- BBCodeHandler
public static record BBCodeHandler.Block(javafx.scene.layout.Pane node, @Nullable javafx.scene.text.TextFlow text)
extends Record
A generic block record.
-
Constructor Summary
ConstructorsConstructorDescriptionBlock(javafx.scene.layout.Pane node, @Nullable javafx.scene.text.TextFlow text) Creates an instance of aBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddText(javafx.scene.Node child) booleanList<javafx.scene.Node>children()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()javafx.scene.layout.Panenode()Returns the value of thenoderecord component.intsize()@Nullable javafx.scene.text.TextFlowtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
addText
public void addText(javafx.scene.Node child) -
children
-
size
public int size() -
isEmpty
public boolean isEmpty() -
canContainText
public boolean canContainText() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
node
public javafx.scene.layout.Pane node()Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
text
@Nullable public @Nullable javafx.scene.text.TextFlow text()Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-