Example usage for Java javafx.scene.control TextField fields, constructors, methods, implement or subclass
The text is from its open source code.
TextField() Creates a TextField with empty text content. | |
TextField(String text) Creates a TextField with initial text content. |
void | addEventFilter(final EventType Registers an event filter to this node. |
void | addEventHandler(final EventType Registers an event handler to this node. |
void | appendText(String text) Appends a sequence of characters to the content. |
void | clear() Clears the text. |
void | cut() Transfers the currently selected range in the text to the clipboard, removing the current selection. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
ReadOnlyBooleanProperty | focusedProperty() |
int | getCaretPosition() |
String | getId() The id of this Node . |
int | getLength() |
Parent | getParent() |
double | getPrefWidth() |
ObservableMap | getProperties() Returns an observable map of properties on this node for use primarily by application developers. |
ObservableSet | getPseudoClassStates() |
String | getSelectedText() |
IndexRange | getSelection() |
ObservableList | getStyleClass() |
String | getText() |
Object | getUserData() Returns a previously set Object property, or null if no such property has been set using the Node#setUserData(java.lang.Object) method. |
boolean | isFocused() |
void | paste() Transfers the contents in the clipboard into this text, replacing the current selection. |
void | positionCaret(int pos) Positions the caret to the position indicated by pos . |
void | requestFocus() Requests that this Node get the input focus, and that this Node 's top-level ancestor become the focused window. |
void | setContextMenu(ContextMenu value) |
void | setDisable(boolean value) |
void | setEditable(boolean value) |
void | setFocusTraversable(boolean value) |
void | setId(String value) |
void | setLayoutX(double value) |
void | setLayoutY(double value) |
void | setMaxSize(double maxWidth, double maxHeight) Convenience method for overriding the region's computed maximum width and height. |
void | setMaxWidth(double value) |
void | setMinWidth(double value) |
void | setMouseTransparent(boolean value) |
void | setOnDragDropped(EventHandler super DragEvent> value) |
void | setOnKeyPressed(EventHandler super KeyEvent> value) |
void | setOnKeyReleased(EventHandler super KeyEvent> value) |
void | setPrefColumnCount(int value) |
void | setPrefHeight(double value) |
void | setPrefSize(double prefWidth, double prefHeight) Convenience method for overriding the region's computed preferred width and height. |
void | setPrefWidth(double value) |
void | setPromptText(String value) |
void | setStyle(String value) A string representation of the CSS style associated with this specific Node . |
void | setText(String value) |
void | setTooltip(Tooltip value) |
void | setTranslateX(double value) |
void | setUserData(Object value) Convenience method for setting a single Object property that can be retrieved at a later date. |
void | setVisible(boolean value) |
StringProperty | textProperty() |