@DefaultProperty(value="text") public abstract class TextInputControl extends Control
Type | プロパティと説明 |
---|---|
ReadOnlyIntegerProperty |
anchor
テキスト選択の
anchor 。 |
ReadOnlyIntegerProperty |
caretPosition
テキスト内のキャレットの現在の位置。
|
BooleanProperty |
editable
このTextInputControlをユーザーが編集できるかどうかを示します。
|
ObjectProperty<Font> |
font
TextInputControl内のテキストに使用するデフォルト・フォント。
|
ReadOnlyIntegerProperty |
length
テキスト入力の文字の数。
|
StringProperty |
promptText
TextInputControl に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。 |
ReadOnlyBooleanProperty |
redoable
このプロパティは、元に戻されたコンテンツの最新の変更をやり直すことが現在可能かどうかを記述します。
|
ReadOnlyStringProperty |
selectedText
選択されるTextInputControlの文字を定義します
|
ReadOnlyObjectProperty<IndexRange> |
selection
現在の選択。
|
ObjectProperty<TextFormatter<?>> |
textFormatter
このプロパティには、現在アタッチされている
TextFormatter が含まれます。 |
StringProperty |
text
このTextInputControlのテキスト・コンテンツ。
|
ReadOnlyBooleanProperty |
undoable
このプロパティは、実行されたコンテンツの最新の変更を元に戻すことが現在可能かどうかを記述します。
|
contextMenu、skin、tooltip
background、border、cacheShape、centerShape、height、insets、maxHeight、maxWidth、minHeight、minWidth、opaqueInsets、padding、prefHeight、prefWidth、scaleShape、shape、snapToPixel、width
needsLayout
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、visible
修飾子と型 | クラスと説明 |
---|---|
protected static interface |
TextInputControl.Content
テキスト入力のコンテンツを表すインタフェース。
|
USE_COMPUTED_SIZE、USE_PREF_SIZE
BASELINE_OFFSET_SAME_AS_HEIGHT
修飾子 | コンストラクタと説明 |
---|---|
protected |
TextInputControl(TextInputControl.Content content)
新しいTextInputControlを作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
ReadOnlyIntegerProperty |
anchorProperty()
テキスト選択の
anchor 。 |
void |
appendText(String text)
コンテンツに文字シーケンスを追加します。
|
void |
backward()
キャレットの位置を逆方向に移動します。
|
void |
cancelEdit()
このフィールドが現在編集中の場合、このコールによりテキストが最後にコミットされた値に設定されます。
|
ReadOnlyIntegerProperty |
caretPositionProperty()
テキスト内のキャレットの現在の位置。
|
void |
clear()
テキストをクリアします。
|
void |
commitValue()
現在のテキストをコミットして、値に変換します。
|
void |
copy()
テキスト内で現在選択されている範囲をクリップボードに転送して、選択はそのまま残します。
|
void |
cut()
テキスト内で現在選択されている範囲をクリップボードに転送して、現在の選択を解除します。
|
boolean |
deleteNextChar()
何も選択されていない場合は現在のキャレット位置の直後にある文字をテキストから削除し、選択がある場合はそれを削除します。
|
boolean |
deletePreviousChar()
何も選択されていない場合は現在のキャレット位置の直前にある文字をテキストから削除し、選択がある場合はそれを削除します。
|
void |
deleteText(IndexRange range)
特定範囲の文字をコンテンツから削除します。
|
void |
deleteText(int start, int end)
特定範囲の文字をコンテンツから削除します。
|
void |
deselect()
選択をクリアします。
|
BooleanProperty |
editableProperty()
このTextInputControlをユーザーが編集できるかどうかを示します。
|
void |
end()
キャレットをテキストの最後の文字の後に移動します。
|
void |
endOfNextWord()
キャレットを次の単語の終わりに移動します。
|
void |
executeAccessibleAction(AccessibleAction action, Object... parameters)
このメソッドは、引数で指定されたアクションの実行をリクエストするためにアシスティブ・テクノロジによって呼び出されます。
|
void |
extendSelection(int pos)
この関数により、指定された位置が含まれるように選択が拡張されます。
|
ObjectProperty<Font> |
fontProperty()
TextInputControl内のテキストに使用するデフォルト・フォント。
|
void |
forward()
キャレットの位置を順方向に移動します。
|
int |
getAnchor()
プロパティanchorの値を取得します。
|
int |
getCaretPosition()
プロパティcaretPositionの値を取得します。
|
static List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
protected TextInputControl.Content |
getContent()
テキスト入力のコンテンツ・モデルを返します。
|
List<CssMetaData<? extends Styleable,?>> |
getControlCssMetaData() |
Font |
getFont()
プロパティfontの値を取得します。
|
int |
getLength()
プロパティlengthの値を取得します。
|
String |
getPromptText()
プロパティpromptTextの値を取得します。
|
String |
getSelectedText()
プロパティselectedTextの値を取得します。
|
IndexRange |
getSelection()
プロパティselectionの値を取得します。
|
String |
getText()
プロパティtextの値を取得します。
|
String |
getText(int start, int end)
テキスト入力のコンテンツのサブセットを返します。
|
TextFormatter<?> |
getTextFormatter()
プロパティtextFormatterの値を取得します。
|
void |
home()
キャレットをテキストの最初の文字の前に移動します。
|
void |
insertText(int index, String text)
コンテンツに文字シーケンスを挿入します。
|
boolean |
isEditable()
プロパティeditableの値を取得します。
|
boolean |
isRedoable()
プロパティredoableの値を取得します。
|
boolean |
isUndoable()
プロパティundoableの値を取得します。
|
ReadOnlyIntegerProperty |
lengthProperty()
テキスト入力の文字の数。
|
void |
nextWord()
キャレットを次の単語の先頭に移動します。
|
void |
paste()
クリップボードのコンテンツをこのテキストに転送し、現在の選択と置き換えます。
|
void |
positionCaret(int pos)
pos によって指定された位置にキャレットを配置します。 |
void |
previousWord()
キャレットを前の単語の先頭に移動します。
|
StringProperty |
promptTextProperty()
TextInputControl に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。 |
Object |
queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
*アクセシビリティ処理* *
|
void |
redo()
可能な場合、元に戻された最後の変更をやり直します。
|
ReadOnlyBooleanProperty |
redoableProperty()
このプロパティは、元に戻されたコンテンツの最新の変更をやり直すことが現在可能かどうかを記述します。
|
void |
replaceSelection(String replacement)
選択を指定した置換文字列に置き換えます。
|
void |
replaceText(IndexRange range, String text)
特定範囲の文字を指定されたテキストに置き換えます。
|
void |
replaceText(int start, int end, String text)
特定範囲の文字を指定されたテキストに置き換えます。
|
void |
selectAll()
テキスト入力のすべてのテキストを選択します。
|
void |
selectBackward()
テキスト内の選択を1文字分逆方向に移動します。
|
ReadOnlyStringProperty |
selectedTextProperty()
選択されるTextInputControlの文字を定義します
|
void |
selectEnd()
キャレットをテキストの最後の文字の後に移動します。
|
void |
selectEndOfNextWord()
キャレットを次の単語の終わりに移動します。
|
void |
selectForward()
テキスト内の選択を1文字分順方向に移動します。
|
void |
selectHome()
キャレットをテキストの最初の文字の前に移動します。
|
ReadOnlyObjectProperty<IndexRange> |
selectionProperty()
現在の選択。
|
void |
selectNextWord()
キャレットを次の単語の先頭に移動します。
|
void |
selectPositionCaret(int pos)
pos によって指定された位置にキャレットを配置し、選択がある場合はそれを拡張します。 |
void |
selectPreviousWord()
キャレットを前の単語の先頭に移動します。
|
void |
selectRange(int anchor, int caretPosition)
anchorとcaretPositionを明示的に配置します。
|
void |
setEditable(boolean value)
プロパティeditableの値を設定します。
|
void |
setFont(Font value)
プロパティfontの値を設定します。
|
void |
setPromptText(String value)
プロパティpromptTextの値を設定します。
|
void |
setText(String value)
プロパティtextの値を設定します。
|
void |
setTextFormatter(TextFormatter<?> value)
プロパティtextFormatterの値を設定します。
|
ObjectProperty<TextFormatter<?>> |
textFormatterProperty()
このプロパティには、現在アタッチされている
TextFormatter が含まれます。 |
StringProperty |
textProperty()
このTextInputControlのテキスト・コンテンツ。
|
void |
undo()
可能な場合、最後の変更を元に戻します。
|
ReadOnlyBooleanProperty |
undoableProperty()
このプロパティは、実行されたコンテンツの最新の変更を元に戻すことが現在可能かどうかを記述します。
|
computeMaxHeight、computeMaxWidth、computeMinHeight、computeMinWidth、computePrefHeight、computePrefWidth、contextMenuProperty、createDefaultSkin、getBaselineOffset、getContextMenu、getCssMetaData、getSkin、getTooltip、isResizable、layoutChildren、setContextMenu、setSkin、setTooltip、skinProperty、tooltipProperty
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、snapSize、snapSpace、snapToPixelProperty、widthProperty
getChildren、getChildrenUnmodifiable、getManagedChildren、getStylesheets、isNeedsLayout、layout、lookup、needsLayoutProperty、requestLayout、requestParentLayout、setNeedsLayout、updateBounds
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、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、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、setVisible、snapshot、snapshot、startDragAndDrop、startFullDrag、styleProperty、toBack、toFront、toString、translateXProperty、translateYProperty、translateZProperty、usesMirroring、visibleProperty
public final ObjectProperty<Font> fontProperty
getFont()
、setFont(Font)
public final StringProperty promptTextProperty
TextInputControl
に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。getPromptText()
、setPromptText(String)
public final ObjectProperty<TextFormatter<?>> textFormatterProperty
TextFormatter
が含まれます。値はFormatter
の一部であるため、TextFormatterを変更すると、新しいtextFormatterに基づいてテキストが更新されます。getTextFormatter()
、setTextFormatter(TextFormatter)
public final StringProperty textProperty
getText()
、setText(String)
public final ReadOnlyIntegerProperty lengthProperty
getLength()
public final BooleanProperty editableProperty
public final ReadOnlyObjectProperty<IndexRange> selectionProperty
getSelection()
public final ReadOnlyStringProperty selectedTextProperty
getSelectedText()
public final ReadOnlyIntegerProperty anchorProperty
anchor
。anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。anchorは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。getAnchor()
public final ReadOnlyIntegerProperty caretPositionProperty
anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。caretPositionは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。getCaretPosition()
public final ReadOnlyBooleanProperty undoableProperty
isUndoable()
public final ReadOnlyBooleanProperty redoableProperty
isRedoable()
protected TextInputControl(TextInputControl.Content content)
content
- コンテンツのnull以外の実装。public final ObjectProperty<Font> fontProperty()
getFont()
、setFont(Font)
public final void setFont(Font value)
public final Font getFont()
public final StringProperty promptTextProperty()
TextInputControl
に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。getPromptText()
、setPromptText(String)
public final String getPromptText()
TextInputControl
に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。public final void setPromptText(String value)
TextInputControl
に表示するプロンプト・テキスト、またはプロンプト・テキストを表示しない場合はnull。public final ObjectProperty<TextFormatter<?>> textFormatterProperty()
TextFormatter
が含まれます。値はFormatter
の一部であるため、TextFormatterを変更すると、新しいtextFormatterに基づいてテキストが更新されます。getTextFormatter()
、setTextFormatter(TextFormatter)
public final TextFormatter<?> getTextFormatter()
TextFormatter
が含まれます。値はFormatter
の一部であるため、TextFormatterを変更すると、新しいtextFormatterに基づいてテキストが更新されます。public final void setTextFormatter(TextFormatter<?> value)
TextFormatter
が含まれます。値はFormatter
の一部であるため、TextFormatterを変更すると、新しいtextFormatterに基づいてテキストが更新されます。protected final TextInputControl.Content getContent()
public final String getText()
public final void setText(String value)
public final StringProperty textProperty()
getText()
、setText(String)
public final int getLength()
public final ReadOnlyIntegerProperty lengthProperty()
getLength()
public final boolean isEditable()
public final void setEditable(boolean value)
public final BooleanProperty editableProperty()
public final IndexRange getSelection()
public final ReadOnlyObjectProperty<IndexRange> selectionProperty()
getSelection()
public final String getSelectedText()
public final ReadOnlyStringProperty selectedTextProperty()
getSelectedText()
public final int getAnchor()
anchor
。anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。anchorは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。public final ReadOnlyIntegerProperty anchorProperty()
anchor
。anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。anchorは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。getAnchor()
public final int getCaretPosition()
anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。caretPositionは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。public final ReadOnlyIntegerProperty caretPositionProperty()
anchor
とcaretPosition
によって選択範囲が構成されます。選択は、常に開始<=終了という観点で指定される必要がありますが、anchor
はcaretPosition
より小さく、大きく、または等しくすることができます。caretPositionは、ユーザーがテキストを選択する方法に応じて、選択の下限または上限を表します。getCaretPosition()
public final boolean isUndoable()
public final ReadOnlyBooleanProperty undoableProperty()
isUndoable()
public final boolean isRedoable()
public final ReadOnlyBooleanProperty redoableProperty()
isRedoable()
public String getText(int start, int end)
start
- 0から終了- 1の値にする必要があります。end
- その長さ以下にする必要があります。public void appendText(String text)
text
- null以外の文字列。public void insertText(int index, String text)
index
- テキストを挿入する位置。text
- 挿入するテキスト。public void deleteText(IndexRange range)
range
- 削除するテキストの範囲。範囲オブジェクトはnullにしないでください。deleteText(int, int)
public void deleteText(int start, int end)
start
- 範囲の開始インデックス(この値を含む)。これは0以上で終了より小さくする必要があります。end
- 範囲の終了インデックス(この値を含まない)。これは削除する最後の文字の1つ後です(文字列操作メソッドと一貫性があります)。これは開始よりも大きく、テキストの長さ以下にする必要があります。public void replaceText(IndexRange range, String text)
range
- 置換するテキストの範囲。範囲オブジェクトはnullにしないでください。text
- 範囲を置換するテキスト。nullは指定できません。replaceText(int, int, String)
public void replaceText(int start, int end, String text)
start
- 範囲の開始インデックス(この値を含む)。これは0以上で終了より小さくする必要があります。end
- 範囲の終了インデックス(この値を含まない)。これは削除する最後の文字の1つ後です(文字列操作メソッドと一貫性があります)。これは開始よりも大きく、テキストの長さ以下にする必要があります。text
- 範囲を置換するテキスト。nullは指定できません。public void cut()
public void copy()
public void paste()
public void selectBackward()
public void selectForward()
public void previousWord()
public void nextWord()
public void endOfNextWord()
public void selectPreviousWord()
public void selectNextWord()
public void selectEndOfNextWord()
public void selectAll()
public void home()
public void end()
public void selectHome()
public void selectEnd()
public boolean deletePreviousChar()
public boolean deleteNextChar()
public void forward()
public void backward()
public void positionCaret(int pos)
pos
によって指定された位置にキャレットを配置します。また、この関数により、選択がクリアされます。public void selectPositionCaret(int pos)
pos
によって指定された位置にキャレットを配置し、選択がある場合はそれを拡張します。選択範囲がない場合、アンカーが現在のキャレット位置にある場合に選択が形成され、caretPositionがposに移動されます。public void selectRange(int anchor, int caretPosition)
public void extendSelection(int pos)
public void clear()
public void deselect()
public void replaceSelection(String replacement)
public final void undo()
isUndoable()
がfalseを返す場合は、このメソッドを呼び出しても無効です。public final void redo()
isRedoable()
がfalseを返す場合は、このメソッドを呼び出しても無効です。public final void commitValue()
public final void cancelEdit()
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
getControlCssMetaData
、クラス: Control
public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
queryAccessibleAttribute
、クラス: Control
attribute
- リクエストされた属性parameters
- オプションのパラメータ・リストAccessibleAttribute
public void executeAccessibleAction(AccessibleAction action, Object... parameters)
Node
このメソッドは一般に、特定の役割に必要なアクションを実装するためにサブクラスによってオーバーライドされます。
特定のアクションが処理されない場合、スーパー・クラス実装を呼び出す必要があります。
executeAccessibleAction
、クラス: Control
action
- 実行するアクションparameters
- オプションのパラメータ・リスト「AccessibleAction」
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.