Spec-Zone .ru
спецификации, руководства, описания, API
|
public class TextArea extends TextInputControl
TextField
control. Additionally, if you want
a form of rich-text editing, there is also the
HTMLEditor
control.TextField
Type | Property and Description |
---|---|
IntegerProperty |
prefColumnCount
The preferred number of text columns.
|
IntegerProperty |
prefRowCount
The preferred number of text rows.
|
DoubleProperty |
scrollLeft
The number of pixels by which the content is horizontally
scrolled.
|
DoubleProperty |
scrollTop
The number of pixels by which the content is vertically
scrolled.
|
BooleanProperty |
wrapText
If a run of text exceeds the width of the
TextArea ,
then this variable indicates whether the text should wrap onto
another line. |
anchorProperty, caretPositionProperty, editableProperty, lengthProperty, selectedTextProperty, selectionProperty, textProperty
contextMenuProperty, heightProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, prefHeightProperty, prefWidthProperty, skinProperty, tooltipProperty, widthProperty
needsLayoutProperty
blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, managedProperty, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
TextInputControl.Content
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PREF_COLUMN_COUNT
The default value for
prefColumnCount . |
static int |
DEFAULT_PREF_ROW_COUNT
The default value for
prefRowCount . |
USE_COMPUTED_SIZE, USE_PREF_SIZE
Constructor and Description |
---|
TextArea()
Creates a
TextArea with empty text content. |
TextArea(java.lang.String text)
Creates a
TextArea with initial text content. |
Modifier and Type | Method and Description |
---|---|
ObservableList<java.lang.CharSequence> |
getParagraphs()
Returns an unmodifiable list of the character sequences that back the
text area's content.
|
int |
getPrefColumnCount()
The preferred number of text columns.
|
int |
getPrefRowCount()
The preferred number of text rows.
|
double |
getScrollLeft()
The number of pixels by which the content is horizontally
scrolled.
|
double |
getScrollTop()
The number of pixels by which the content is vertically
scrolled.
|
boolean |
isWrapText()
If a run of text exceeds the width of the
TextArea ,
then this variable indicates whether the text should wrap onto
another line. |
IntegerProperty |
prefColumnCountProperty()
The preferred number of text columns.
|
IntegerProperty |
prefRowCountProperty()
The preferred number of text rows.
|
DoubleProperty |
scrollLeftProperty()
The number of pixels by which the content is horizontally
scrolled.
|
DoubleProperty |
scrollTopProperty()
The number of pixels by which the content is vertically
scrolled.
|
void |
setPrefColumnCount(int value)
The preferred number of text columns.
|
void |
setPrefRowCount(int value)
The preferred number of text rows.
|
void |
setScrollLeft(double value)
The number of pixels by which the content is horizontally
scrolled.
|
void |
setScrollTop(double value)
The number of pixels by which the content is vertically
scrolled.
|
void |
setWrapText(boolean value)
If a run of text exceeds the width of the
TextArea ,
then this variable indicates whether the text should wrap onto
another line. |
BooleanProperty |
wrapTextProperty()
If a run of text exceeds the width of the
TextArea ,
then this variable indicates whether the text should wrap onto
another line. |
anchorProperty, appendText, backward, caretPositionProperty, clear, copy, cut, deleteNextChar, deletePreviousChar, deleteText, deleteText, deselect, editableProperty, end, endOfNextWord, extendSelection, forward, getAnchor, getCaretPosition, getContent, getLength, getSelectedText, getSelection, getText, getText, home, insertText, isEditable, lengthProperty, nextWord, paste, positionCaret, previousWord, replaceSelection, replaceText, replaceText, selectAll, selectBackward, selectedTextProperty, selectEnd, selectEndOfNextWord, selectForward, selectHome, selectionProperty, selectNextWord, selectPositionCaret, selectPreviousWord, selectRange, setEditable, setText, textProperty
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getSkin, getTooltip, getUserAgentStylesheet, getWidth, heightProperty, intersects, isResizable, layoutChildren, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setContextMenu, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setTooltip, setWidth, skinProperty, tooltipProperty, widthProperty
getChildren, getChildrenUnmodifiable, getManagedChildren, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setNeedsLayout
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOpacity, getParent, getProperties, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScene, lookupAll, managedProperty, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, startDragAndDrop, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visibleProperty
TextArea
,
then this variable indicates whether the text should wrap onto
another line.isWrapText()
,
setWrapText(boolean)
TextArea
's preferred width.getPrefColumnCount()
,
setPrefColumnCount(int)
TextArea
's preferred height.getPrefRowCount()
,
setPrefRowCount(int)
getScrollTop()
,
setScrollTop(double)
getScrollLeft()
,
setScrollLeft(double)
public static final int DEFAULT_PREF_COLUMN_COUNT
prefColumnCount
.public static final int DEFAULT_PREF_ROW_COUNT
prefRowCount
.public TextArea()
TextArea
with empty text content.public TextArea(java.lang.String text)
TextArea
with initial text content.text
- A string for text content.public ObservableList<java.lang.CharSequence> getParagraphs()
public final BooleanProperty wrapTextProperty()
TextArea
,
then this variable indicates whether the text should wrap onto
another line.isWrapText()
,
setWrapText(boolean)
public final boolean isWrapText()
TextArea
,
then this variable indicates whether the text should wrap onto
another line.public final void setWrapText(boolean value)
TextArea
,
then this variable indicates whether the text should wrap onto
another line.public final IntegerProperty prefColumnCountProperty()
TextArea
's preferred width.getPrefColumnCount()
,
setPrefColumnCount(int)
public final int getPrefColumnCount()
TextArea
's preferred width.public final void setPrefColumnCount(int value)
TextArea
's preferred width.public final IntegerProperty prefRowCountProperty()
TextArea
's preferred height.getPrefRowCount()
,
setPrefRowCount(int)
public final int getPrefRowCount()
TextArea
's preferred height.public final void setPrefRowCount(int value)
TextArea
's preferred height.public final DoubleProperty scrollTopProperty()
getScrollTop()
,
setScrollTop(double)
public final double getScrollTop()
public final void setScrollTop(double value)
public final DoubleProperty scrollLeftProperty()
getScrollLeft()
,
setScrollLeft(double)
public final double getScrollLeft()
public final void setScrollLeft(double value)
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to