- java.lang.Object
- 
- javafx.scene.Node
- 
- javafx.scene.Parent
- 
- javafx.scene.layout.Region
- 
- javafx.scene.control.Control
- 
- javafx.scene.control.TextInputControl
- 
- javafx.scene.control.TextArea
 
 
 
 
 
 
- 
- すべての実装されたインタフェース:
- Styleable,- EventTarget,- Skinnable
 
 
 public class TextArea extends TextInputControl ユーザーに対して複数行のプレーン・テキストの入力を許可するテキスト入力コンポーネント。 JavaFXの以前のリリースとは異なり、TextAreaコントロールの一部として単一行入力はサポートされていませんが、この操作がTextFieldコントロールの唯一の目的です。 また、ある形式のリッチ・テキスト編集が必要な場合は、HTMLEditorコントロールもあります。TextAreaは、TextAreaに textがまだ存在しない場合に、ユーザーにprompt textを表示するという概念をサポートします(ユーザー入力とプログラムによる設定のいずれか)。 これは、tooltipsまたは画面上のlabelsを使用することなく、テキスト領域に必要なものについてユーザーに通知する場合に有用です。- 導入されたバージョン:
- JavaFX 2.0
- 関連項目:
- TextField
 
- 
- 
プロパティのサマリープロパティ Type プロパティ 説明 IntegerPropertyprefColumnCountテキスト列の優先数。IntegerPropertyprefRowCountテキスト行の優先数。DoublePropertyscrollLeftコンテンツを水平方向にスクロールするピクセル数。DoublePropertyscrollTopコンテンツを垂直方向にスクロールするピクセル数。BooleanPropertywrapTextテキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。- 
クラス javafx.scene.control.Controlから継承されたプロパティcontextMenu、skin、tooltip
 - 
クラスjavafx.scene.Nodeから継承されたプロパティaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
 - 
クラス javafx.scene.Parentから継承されたプロパティneedsLayout
 - 
クラス javafx.scene.layout.Regionから継承されたプロパティbackground、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
 - 
クラス javafx.scene.control.TextInputControlから継承されたプロパティanchor、caretPosition、editable、font、length、promptText、redoable、selectedText、selection、textFormatter、text、undoable
 
- 
 - 
ネストされたクラスのサマリー- 
クラス javafx.scene.control.TextInputControlから継承されたネストされたクラス/インタフェースTextInputControl.Content
 
- 
 - 
フィールドのサマリーフィールド 修飾子と型 フィールド 説明 static intDEFAULT_PREF_COLUMN_COUNTprefColumnCountのデフォルト値。static intDEFAULT_PREF_ROW_COUNTprefRowCountのデフォルト値。- 
クラスjavafx.scene.Nodeから継承されたフィールドBASELINE_OFFSET_SAME_AS_HEIGHT
 - 
クラス javafx.scene.layout.Regionから継承されたフィールドUSE_COMPUTED_SIZE、USE_PREF_SIZE
 
- 
 - 
メソッドのサマリーすべてのメソッド 静的メソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected Skin<?>createDefaultSkin()このコントロールのデフォルト・スキンの新しいインスタンスを作成します。static List<CssMetaData<? extends Styleable,?>>getClassCssMetaData()List<CssMetaData<? extends Styleable,?>>getControlCssMetaData()ObservableList<CharSequence>getParagraphs()テキスト領域のコンテンツと連動する文字シーケンスの変更不可能なリストを返します。intgetPrefColumnCount()プロパティprefColumnCountの値を取得します。intgetPrefRowCount()プロパティprefRowCountの値を取得します。doublegetScrollLeft()プロパティscrollLeftの値を取得します。doublegetScrollTop()プロパティscrollTopの値を取得します。booleanisWrapText()プロパティwrapTextの値を取得します。IntegerPropertyprefColumnCountProperty()テキスト列の優先数。IntegerPropertyprefRowCountProperty()テキスト行の優先数。DoublePropertyscrollLeftProperty()コンテンツを水平方向にスクロールするピクセル数。DoublePropertyscrollTopProperty()コンテンツを垂直方向にスクロールするピクセル数。voidsetPrefColumnCount(int value)プロパティprefColumnCountの値を設定します。voidsetPrefRowCount(int value)プロパティprefRowCountの値を設定します。voidsetScrollLeft(double value)プロパティscrollLeftの値を設定します。voidsetScrollTop(double value)プロパティscrollTopの値を設定します。voidsetWrapText(boolean value)プロパティwrapTextの値を設定します。BooleanPropertywrapTextProperty()テキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。- 
クラス javafx.scene.control.Controlから継承されたメソッドcomputeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
 - 
クラスjavafx.scene.Nodeから継承されたメソッドaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
 - 
クラス java.lang.Objectから継承されたメソッドclone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
 - 
クラス javafx.scene.Parentから継承されたメソッドgetChildren、getChildrenUnmodifiable、getManagedChildren、getStylesheets、isNeedsLayout、layout、lookup、needsLayoutProperty、requestLayout、requestParentLayout、setNeedsLayout、updateBounds
 - 
クラス javafx.scene.layout.Regionから継承されたメソッドbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
 - 
インタフェース javafx.css.Styleableから継承されたメソッドgetStyleableNode
 - 
クラス javafx.scene.control.TextInputControlから継承されたメソッドanchorProperty、appendText、backward、cancelEdit、caretPositionProperty、clear、commitValue、copy、cut、deleteNextChar、deletePreviousChar、deleteText、deleteText、deselect、editableProperty、end、endOfNextWord、executeAccessibleAction、extendSelection、fontProperty、forward、getAnchor、getCaretPosition、getContent、getFont、getLength、getPromptText、getSelectedText、getSelection、getText、getText、getTextFormatter、home、insertText、isEditable、isRedoable、isUndoable、lengthProperty、nextWord、paste、positionCaret、previousWord、promptTextProperty、queryAccessibleAttribute、redo、redoableProperty、replaceSelection、replaceText、replaceText、selectAll、selectBackward、selectedTextProperty、selectEnd、selectEndOfNextWord、selectForward、selectHome、selectionProperty、selectNextWord、selectPositionCaret、selectPreviousWord、selectRange、setEditable、setFont、setPromptText、setText、setTextFormatter、textFormatterProperty、textProperty、undo、undoableProperty
 
- 
 
- 
- 
- 
プロパティの詳細- 
wrapTextpublic final BooleanProperty wrapTextProperty テキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。
 - 
prefColumnCountpublic final IntegerProperty prefColumnCountProperty テキスト列の優先数。 これは、TextAreaの優先幅を計算するために使用されます。
 - 
prefRowCountpublic final IntegerProperty prefRowCountProperty テキスト行の優先数。 これは、TextAreaの優先高を計算するために使用されます。
 - 
scrollToppublic final DoubleProperty scrollTopProperty コンテンツを垂直方向にスクロールするピクセル数。
 - 
scrollLeftpublic final DoubleProperty scrollLeftProperty コンテンツを水平方向にスクロールするピクセル数。
 
- 
 - 
フィールドの詳細- 
DEFAULT_PREF_COLUMN_COUNTpublic static final int DEFAULT_PREF_COLUMN_COUNT prefColumnCountのデフォルト値。- 関連項目:
- 定数フィールド値
 
 - 
DEFAULT_PREF_ROW_COUNTpublic static final int DEFAULT_PREF_ROW_COUNT prefRowCountのデフォルト値。- 関連項目:
- 定数フィールド値
 
 
- 
 - 
コンストラクタの詳細- 
TextAreapublic TextArea() テキスト・コンテンツが空のTextAreaを作成します。
 - 
TextAreapublic TextArea(String text) 初期テキスト・コンテンツを持つTextAreaを作成します。- パラメータ:
- text- テキスト・コンテンツの文字列。
 
 
- 
 - 
メソッドの詳細- 
getParagraphspublic ObservableList<CharSequence> getParagraphs() テキスト領域のコンテンツと連動する文字シーケンスの変更不可能なリストを返します。- 戻り値:
- テキスト領域の内容を元に戻す文字列の変更不可能なリスト
 
 - 
wrapTextPropertypublic final BooleanProperty wrapTextProperty() テキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。
 - 
isWrapTextpublic final boolean isWrapText() プロパティwrapTextの値を取得します。- プロパティの説明:
- テキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。
 
 - 
setWrapTextpublic final void setWrapText(boolean value) プロパティwrapTextの値を設定します。- プロパティの説明:
- テキストの長さがTextAreaの幅を超える場合に、テキストを別の行に折り返すかどうかをこの変数で示します。
 
 - 
prefColumnCountPropertypublic final IntegerProperty prefColumnCountProperty() テキスト列の優先数。 これは、TextAreaの優先幅を計算するために使用されます。
 - 
getPrefColumnCountpublic final int getPrefColumnCount() プロパティprefColumnCountの値を取得します。- プロパティの説明:
- テキスト列の優先数。 これは、TextAreaの優先幅を計算するために使用されます。
 
 - 
setPrefColumnCountpublic final void setPrefColumnCount(int value) プロパティprefColumnCountの値を設定します。- プロパティの説明:
- テキスト列の優先数。 これは、TextAreaの優先幅を計算するために使用されます。
 
 - 
prefRowCountPropertypublic final IntegerProperty prefRowCountProperty() テキスト行の優先数。 これは、TextAreaの優先高を計算するために使用されます。
 - 
getPrefRowCountpublic final int getPrefRowCount() プロパティprefRowCountの値を取得します。- プロパティの説明:
- テキスト行の優先数。 これは、TextAreaの優先高を計算するために使用されます。
 
 - 
setPrefRowCountpublic final void setPrefRowCount(int value) プロパティprefRowCountの値を設定します。- プロパティの説明:
- テキスト行の優先数。 これは、TextAreaの優先高を計算するために使用されます。
 
 - 
scrollTopPropertypublic final DoubleProperty scrollTopProperty() コンテンツを垂直方向にスクロールするピクセル数。
 - 
getScrollToppublic final double getScrollTop() プロパティscrollTopの値を取得します。- プロパティの説明:
- コンテンツを垂直方向にスクロールするピクセル数。
 
 - 
setScrollToppublic final void setScrollTop(double value) プロパティscrollTopの値を設定します。- プロパティの説明:
- コンテンツを垂直方向にスクロールするピクセル数。
 
 - 
scrollLeftPropertypublic final DoubleProperty scrollLeftProperty() コンテンツを水平方向にスクロールするピクセル数。
 - 
getScrollLeftpublic final double getScrollLeft() プロパティscrollLeftの値を取得します。- プロパティの説明:
- コンテンツを水平方向にスクロールするピクセル数。
 
 - 
setScrollLeftpublic final void setScrollLeft(double value) プロパティscrollLeftの値を設定します。- プロパティの説明:
- コンテンツを水平方向にスクロールするピクセル数。
 
 - 
createDefaultSkinprotected Skin<?> createDefaultSkin() このコントロールのデフォルト・スキンの新しいインスタンスを作成します。 これは、CSS-fx-skinを介してスキンが提供されていない場合にコントロール用のスキンを作成するために、またはsetSkin(...)を使用してサブクラスで明示的に設定するために呼び出されます。- オーバーライド:
- createDefaultSkin、クラス:- Control
- 戻り値:
- このコントロールのデフォルト・スキンの新しいインスタンス。 nullの場合、コントロールにはスキンがありません(Cssで提供されている場合を除く)。
 
 - 
getClassCssMetaDatapublic static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData() - 戻り値:
- このクラスに関連付けられたCssMetaData。スーパークラスのCssMetaDataを含むことがあります。
- 導入されたバージョン:
- JavaFX 8.0
 
 - 
getControlCssMetaDatapublic List<CssMetaData<? extends Styleable,?>> getControlCssMetaData() - オーバーライド:
- getControlCssMetaData、クラス:- TextInputControl
- 戻り値:
- コントロールのCSSでスタイル設定可能なプロパティの変更不可能なリスト
- 導入されたバージョン:
- JavaFX 8.0
 
 
- 
 
-