Top Description Fields Constructors Methods
com.dlsc.gemsfx

public Class ExpandingTextArea

extends TextArea
Class Inheritance
Imports
java.util.Set, javafx.beans.binding.Bindings, javafx.geometry.Bounds, javafx.scene.Group, .Node, javafx.scene.control.ScrollPane, .TextArea, javafx.scene.layout.Region, javafx.scene.text.Text

A customized text area that will never show scrollbars but instead will grow as high as needed in order to completely fit its text inside of it.

Field Summary

Modifier and TypeField and Description
private double
private double
private Text
Inherited from javafx.scene.control.TextArea:
DEFAULT_PREF_COLUMN_COUNTDEFAULT_PREF_ROW_COUNT

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private double
private void
private Text
private void
init()

private void
Inherited from javafx.scene.control.TextArea:
createDefaultSkingetClassCssMetaDatagetControlCssMetaDatagetParagraphsgetPrefColumnCountgetPrefRowCountgetScrollLeftgetScrollTopisWrapTextprefColumnCountPropertyprefRowCountPropertyscrollLeftPropertyscrollTopPropertysetPrefColumnCountsetPrefRowCountsetScrollLeftsetScrollTopsetWrapTextwrapTextProperty

Field Detail

offsetBottomback to summary
private double offsetBottom
offsetTopback to summary
private double offsetTop
textback to summary
private Text text

Hides javafx.scene.control.TextInputControl.text.

Constructor Detail

ExpandingTextAreaback to summary
public ExpandingTextArea()
ExpandingTextAreaback to summary
public ExpandingTextArea(String text)

Method Detail

computeHeightback to summary
private double computeHeight()
computeOffsetsback to summary
private void computeOffsets()
findTextNodeback to summary
private Text findTextNode()
initback to summary
private void init()
performBindingback to summary
private void performBinding()