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
-
Block
-
-
Method Details
-
addText
public void addText(javafx.scene.Node child) -
children
-
size
public int size() -
isEmpty
public boolean isEmpty() -
canContainText
public boolean canContainText() -
toString
-
hashCode
-
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
-
text
-