public class TextAreaBehavior extends TextInputControlBehavior<TextArea>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
TEXT_AREA_BINDINGS
Setup KeyBindings *
|
TEXT_INPUT_BINDINGS
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
TextAreaBehavior(TextArea textArea)
Constructors *
|
Modifier and Type | Method and Description |
---|---|
void |
callAction(String name)
Key handling implementation *
|
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 |
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 |
mouseTripleClick(HitInfo hit) |
protected void |
replaceText(int start,
int end,
String txt) |
protected void |
scrollCharacterToVisible(int index) |
protected void |
setCaretAnimating(boolean play) |
void |
setTextAreaSkin(TextAreaSkin skin) |
callActionForEvent, cancelEdit, deleteNextWord, deletePreviousWord, fire, forwardToParent, isEditing, isMixed, isRTLText, nextWord, previousWord, selectNextWord, selectPreviousWord, selectWord, setEditing
focusChanged, getControl, matchActionForEvent, mouseEntered, mouseExited, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> TEXT_AREA_BINDINGS
public TextAreaBehavior(TextArea textArea)
public void dispose()
TextInputControlBehavior
dispose
in class TextInputControlBehavior<TextArea>
public void setTextAreaSkin(TextAreaSkin skin)
public void callAction(String name)
callAction
in class TextInputControlBehavior<TextArea>
protected void deleteChar(boolean previous)
TextInputControlBehavior
deleteChar
in class TextInputControlBehavior<TextArea>
protected void deleteFromLineStart()
deleteFromLineStart
in class TextInputControlBehavior<TextArea>
protected void scrollCharacterToVisible(int index)
scrollCharacterToVisible
in class TextInputControlBehavior<TextArea>
protected void replaceText(int start, int end, String txt)
replaceText
in class TextInputControlBehavior<TextArea>
public void mousePressed(MouseEvent e)
BehaviorBase
mousePressed
in class BehaviorBase<TextArea>
e
- the mouse eventpublic void mouseDragged(MouseEvent e)
BehaviorBase
mouseDragged
in class BehaviorBase<TextArea>
e
- the mouse eventpublic void mouseReleased(MouseEvent e)
BehaviorBase
mouseReleased
in class BehaviorBase<TextArea>
e
- the mouse eventpublic void contextMenuRequested(ContextMenuEvent e)
BehaviorBase
contextMenuRequested
in class BehaviorBase<TextArea>
e
- the context menu eventprotected void setCaretAnimating(boolean play)
setCaretAnimating
in class TextInputControlBehavior<TextArea>
protected void mouseDoubleClick(HitInfo hit)
protected void mouseTripleClick(HitInfo hit)
Copyright © 2020. All rights reserved.