public class TextFieldBehavior extends TextInputControlBehavior<TextField>
TEXT_INPUT_BINDINGS
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
TextFieldBehavior(TextField textField) |
Modifier and Type | Method and Description |
---|---|
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) |
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,
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
public TextFieldBehavior(TextField textField)
public void dispose()
TextInputControlBehavior
dispose
in class TextInputControlBehavior<TextField>
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, 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>
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)
Copyright © 2020. All rights reserved.