APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class TextFieldBehavior

extends TextInputControlBehavior<TextField>
Class Inheritance
Known Direct Subclasses
com.sun.javafx.scene.control.behavior.PasswordFieldBehavior
Imports
com.sun.javafx.geom.transform.Affine3D, com.sun.javafx.scene.NodeHelper, com.sun.javafx.scene.control.Properties, com.sun.javafx.scene.control.skin.Utils, javafx.beans.value.ChangeListener, .WeakChangeListener, javafx.event.ActionEvent, .EventHandler, javafx.geometry.Point2D, .Rectangle2D, javafx.scene.Node, .Scene, javafx.scene.control.TextField, javafx.scene.control.skin.TextFieldSkin, javafx.scene.input.ContextMenuEvent, .KeyEvent, .MouseEvent, javafx.scene.text.HitInfo, javafx.stage.Screen, .Window

Text field behavior.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
focusGainedByMouseClick

If the focus is gained via response to a mouse click, then we don't want to select all the text even if selectOnFocus is true.

private ChangeListener<Boolean>
private ChangeListener<Node>
private ChangeListener<Scene>
private boolean
private TextFieldSkin
private TwoLevelFocusBehavior
private WeakChangeListener<Node>
private WeakChangeListener<Scene>
Inherited from com.sun.javafx.scene.control.behavior.TextInputControlBehavior:
contextMenuDISABLE_FORWARD_TO_PARENTSHOW_HANDLEStextInputControl

Constructor Summary

AccessConstructor and Description
public
TextFieldBehavior(final TextField textField)

Method Summary

Modifier and TypeMethod and Description
private void
beep()

Function which beeps.

pack-priv static Affine3D
protected void
public void
protected void
deleteChar(boolean previous)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deleteChar.

Abstract methods *

protected void
public void
protected void
private void
protected void
public void
public void
public void
protected void
protected void
protected void
protected void
public void
Inherited from com.sun.javafx.scene.control.behavior.TextInputControlBehavior:
addKeyPadMappingscutdeleteNextWorddeletePreviousWorddeleteSelectiongetInputMapgetRawBidiisEditingisMixedisRTLTextkeyMappingkeyMappingkeyMappingnextWordpastepopulateContextMenupreviousWordredoselectAllselectEndselectEndExtendselectHomeselectHomeExtendselectNextWordselectPreviousWordselectWordsetEditingundo

Field Detail

deferClickback to summary
private boolean deferClick
focusGainedByMouseClickback to summary
private boolean focusGainedByMouseClick

If the focus is gained via response to a mouse click, then we don't want to select all the text even if selectOnFocus is true.

focusListenerback to summary
private ChangeListener<Boolean> focusListener
focusOwnerListenerback to summary
private ChangeListener<Node> focusOwnerListener
sceneListenerback to summary
private ChangeListener<Scene> sceneListener
shiftDownback to summary
private boolean shiftDown
skinback to summary
private TextFieldSkin skin
tlFocusback to summary
private TwoLevelFocusBehavior tlFocus
weakFocusOwnerListenerback to summary
private WeakChangeListener<Node> weakFocusOwnerListener
weakSceneListenerback to summary
private WeakChangeListener<Scene> weakSceneListener

Constructor Detail

TextFieldBehaviorback to summary
public TextFieldBehavior(final TextField textField)

Method Detail

beepback to summary
private void beep()

Function which beeps. This requires a hook into the toolkit, and should also be guarded by something that indicates whether we should beep (as it is pretty annoying and many native controls don't do it).

calculateNodeToSceneTransformback to summary
pack-priv static Affine3D calculateNodeToSceneTransform(Node node)
cancelEditback to summary
protected void cancelEdit(KeyEvent event)

Overrides com.sun.javafx.scene.control.behavior.TextInputControlBehavior.cancelEdit.

Annotations
@Override
contextMenuRequestedback to summary
public void contextMenuRequested(ContextMenuEvent e)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.contextMenuRequested.

Annotations
@Override
deleteCharback to summary
protected void deleteChar(boolean previous)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deleteChar.

Doc from com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deleteChar.

Abstract methods *

Annotations
@Override
deleteFromLineStartback to summary
protected void deleteFromLineStart()

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.deleteFromLineStart.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides com.sun.javafx.scene.control.behavior.TextInputControlBehavior.dispose.

Doc from com.sun.javafx.scene.control.behavior.TextInputControlBehavior.dispose.

Disposal methods *

Annotations
@Override
fireback to summary
protected void fire(KeyEvent event)

Overrides com.sun.javafx.scene.control.behavior.TextInputControlBehavior.fire.

Annotations
@Override
handleFocusChangeback to summary
private void handleFocusChange()
mouseDoubleClickback to summary
protected void mouseDoubleClick(HitInfo hit)
mouseDraggedback to summary
public void mouseDragged(MouseEvent e)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.mouseDragged.

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.mousePressed.

Annotations
@Override
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.mouseReleased.

Annotations
@Override
mouseSingleClickback to summary
protected void mouseSingleClick(HitInfo hit)
mouseTripleClickback to summary
protected void mouseTripleClick(HitInfo hit)
replaceTextback to summary
protected void replaceText(int start, int end, String txt)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.replaceText.

Annotations
@Override
setCaretAnimatingback to summary
protected void setCaretAnimating(boolean play)

Implements abstract com.sun.javafx.scene.control.behavior.TextInputControlBehavior.setCaretAnimating.

Annotations
@Override
setTextFieldSkinback to summary
public void setTextFieldSkin(TextFieldSkin skin)
com.sun.javafx.scene.control.behavior back to summary

pack-priv final Enum TextFieldBehavior.TextInputTypes

extends Enum<TextFieldBehavior.TextInputTypes>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final TextFieldBehavior.TextInputTypes
public static final TextFieldBehavior.TextInputTypes
public static final TextFieldBehavior.TextInputTypes
public static final TextFieldBehavior.TextInputTypes

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TextFieldBehavior.TextInputTypes
public static TextFieldBehavior.TextInputTypes[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EDITABLE_COMBOback to summary
public static final TextFieldBehavior.TextInputTypes EDITABLE_COMBO
PASSWORD_FIELDback to summary
public static final TextFieldBehavior.TextInputTypes PASSWORD_FIELD
TEXT_AREAback to summary
public static final TextFieldBehavior.TextInputTypes TEXT_AREA
TEXT_FIELDback to summary
public static final TextFieldBehavior.TextInputTypes TEXT_FIELD

Constructor Detail

TextInputTypesback to summary
private TextInputTypes()

Method Detail

valueOfback to summary
public static TextFieldBehavior.TextInputTypes valueOf(String name)
valuesback to summary
public static TextFieldBehavior.TextInputTypes[] values()