public class TextFieldBehavior extends TextInputControlBehavior<TextField>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TextFieldBehavior.TextInputTypes |
Modifier and Type | Field and Description |
---|---|
private ContextMenu |
contextMenu |
private boolean |
deferClick |
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<Node> |
focusOwnerListener |
private ChangeListener<Scene> |
sceneListener |
private boolean |
shiftDown |
private TextFieldSkin |
skin |
private TwoLevelFocusBehavior |
tlFocus |
TEXT_INPUT_BINDINGS, textInputControl
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
TextFieldBehavior(TextField textField) |
Modifier and Type | Method and Description |
---|---|
private void |
beep()
Function which beeps.
|
(package private) static Affine3D |
calculateNodeToSceneTransform(Node node) |
protected void |
cancelEdit(KeyEvent event) |
void |
contextMenuRequested(ContextMenuEvent e)
Invoked by a Skin when the control has had its context menu requested,
most commonly by right-clicking on the control.
|
protected void |
deleteChar(boolean previous)
Abstract methods *
|
protected void |
deleteFromLineStart() |
void |
dispose()
Disposal methods *
|
protected void |
fire(KeyEvent event) |
private void |
handleFocusChange() |
protected void |
mouseDoubleClick(HitInfo hit) |
void |
mouseDragged(MouseEvent e)
Invoked by a Skin when the body of the control has been dragged by
the mouse.
|
void |
mousePressed(MouseEvent e)
Invoked by a Skin when the body of the control has been pressed by
the mouse.
|
void |
mouseReleased(MouseEvent e)
Invoked by a Skin when the body of the control has been released by
the mouse.
|
protected void |
mouseSingleClick(HitInfo hit) |
protected void |
mouseTripleClick(HitInfo hit) |
protected void |
replaceText(int start,
int end,
java.lang.String txt) |
protected void |
setCaretAnimating(boolean play) |
void |
setTextFieldSkin(TextFieldSkin skin) |
callAction, callActionForEvent, deleteNextWord, deletePreviousWord, forwardToParent, isEditing, isMixed, isRTLText, nextWord, previousWord, scrollCharacterToVisible, selectNextWord, selectPreviousWord, selectWord, setEditing
focusChanged, getControl, matchActionForEvent, mouseEntered, mouseExited, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
private TextFieldSkin skin
private ContextMenu contextMenu
private TwoLevelFocusBehavior tlFocus
private ChangeListener<Scene> sceneListener
private ChangeListener<Node> focusOwnerListener
private boolean focusGainedByMouseClick
private boolean shiftDown
private boolean deferClick
public TextFieldBehavior(TextField textField)
public void dispose()
TextInputControlBehavior
dispose
in class TextInputControlBehavior<TextField>
private void handleFocusChange()
public void setTextFieldSkin(TextFieldSkin skin)
protected void fire(KeyEvent event)
fire
in class TextInputControlBehavior<TextField>
protected void cancelEdit(KeyEvent event)
cancelEdit
in class TextInputControlBehavior<TextField>
protected void deleteChar(boolean previous)
TextInputControlBehavior
deleteChar
in class TextInputControlBehavior<TextField>
protected void replaceText(int start, int end, java.lang.String txt)
replaceText
in class TextInputControlBehavior<TextField>
protected void deleteFromLineStart()
deleteFromLineStart
in class TextInputControlBehavior<TextField>
protected void setCaretAnimating(boolean play)
setCaretAnimating
in class TextInputControlBehavior<TextField>
private void beep()
public void mousePressed(MouseEvent e)
BehaviorBase
mousePressed
in class BehaviorBase<TextField>
e
- the mouse eventpublic void mouseDragged(MouseEvent e)
BehaviorBase
mouseDragged
in class BehaviorBase<TextField>
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
BehaviorBase
mouseReleased
in class BehaviorBase<TextField>
e
- the mouse eventpublic void contextMenuRequested(ContextMenuEvent e)
BehaviorBase
contextMenuRequested
in class BehaviorBase<TextField>
e
- the context menu eventprotected void mouseSingleClick(HitInfo hit)
protected void mouseDoubleClick(HitInfo hit)
protected void mouseTripleClick(HitInfo hit)