Java javafx.scene.control TextField fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control TextField fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control TextField.

The text is from its open source code.

Subclass

javafx.scene.control.TextField has subclasses.
Click this link to see all its subclasses.

Constructor

TextField()
Creates a TextField with empty text content.
TextField(String text)
Creates a TextField with initial text content.

Method

voidaddEventFilter(final EventType eventType, final EventHandler eventFilter)
Registers an event filter to this node.
voidaddEventHandler(final EventType eventType, final EventHandler eventHandler)
Registers an event handler to this node.
voidappendText(String text)
Appends a sequence of characters to the content.
voidclear()
Clears the text.
voidcut()
Transfers the currently selected range in the text to the clipboard, removing the current selection.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ReadOnlyBooleanPropertyfocusedProperty()
intgetCaretPosition()
StringgetId()
The id of this Node .
intgetLength()
ParentgetParent()
doublegetPrefWidth()
ObservableMapgetProperties()
Returns an observable map of properties on this node for use primarily by application developers.
ObservableSetgetPseudoClassStates()
StringgetSelectedText()
IndexRangegetSelection()
ObservableListgetStyleClass()
StringgetText()
ObjectgetUserData()
Returns a previously set Object property, or null if no such property has been set using the Node#setUserData(java.lang.Object) method.
booleanisFocused()
voidpaste()
Transfers the contents in the clipboard into this text, replacing the current selection.
voidpositionCaret(int pos)
Positions the caret to the position indicated by pos .
voidrequestFocus()
Requests that this Node get the input focus, and that this Node 's top-level ancestor become the focused window.
voidsetContextMenu(ContextMenu value)
voidsetDisable(boolean value)
voidsetEditable(boolean value)
voidsetFocusTraversable(boolean value)
voidsetId(String value)
voidsetLayoutX(double value)
voidsetLayoutY(double value)
voidsetMaxSize(double maxWidth, double maxHeight)
Convenience method for overriding the region's computed maximum width and height.
voidsetMaxWidth(double value)
voidsetMinWidth(double value)
voidsetMouseTransparent(boolean value)
voidsetOnDragDropped(EventHandler value)
voidsetOnKeyPressed(EventHandler value)
voidsetOnKeyReleased(EventHandler value)
voidsetPrefColumnCount(int value)
voidsetPrefHeight(double value)
voidsetPrefSize(double prefWidth, double prefHeight)
Convenience method for overriding the region's computed preferred width and height.
voidsetPrefWidth(double value)
voidsetPromptText(String value)
voidsetStyle(String value)
A string representation of the CSS style associated with this specific Node .
voidsetText(String value)
voidsetTooltip(Tooltip value)
voidsetTranslateX(double value)
voidsetUserData(Object value)
Convenience method for setting a single Object property that can be retrieved at a later date.
voidsetVisible(boolean value)
StringPropertytextProperty()