public class TextAreaBehavior extends TextInputControlBehavior<TextArea>
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 boolean |
shiftDown |
private TextAreaSkin |
skin |
protected static java.util.List<KeyBinding> |
TEXT_AREA_BINDINGS
Setup KeyBindings *
|
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 |
---|
TextAreaBehavior(TextArea textArea)
Constructors *
|
Modifier and Type | Method and Description |
---|---|
void |
callAction(java.lang.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 *
|
private void |
insertNewLine() |
private void |
insertTab() |
private void |
lineEnd(boolean select,
boolean extendSelection) |
private void |
lineStart(boolean select,
boolean extendSelection) |
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,
java.lang.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 java.util.List<KeyBinding> TEXT_AREA_BINDINGS
private TextAreaSkin skin
private ContextMenu contextMenu
private TwoLevelFocusBehavior tlFocus
private boolean focusGainedByMouseClick
private boolean shiftDown
private boolean deferClick
public TextAreaBehavior(TextArea textArea)
public void dispose()
TextInputControlBehavior
dispose
in class TextInputControlBehavior<TextArea>
public void setTextAreaSkin(TextAreaSkin skin)
public void callAction(java.lang.String name)
callAction
in class TextInputControlBehavior<TextArea>
private void insertNewLine()
private void insertTab()
protected void deleteChar(boolean previous)
TextInputControlBehavior
deleteChar
in class TextInputControlBehavior<TextArea>
protected void deleteFromLineStart()
deleteFromLineStart
in class TextInputControlBehavior<TextArea>
private void lineStart(boolean select, boolean extendSelection)
private void lineEnd(boolean select, boolean extendSelection)
protected void scrollCharacterToVisible(int index)
scrollCharacterToVisible
in class TextInputControlBehavior<TextArea>
protected void replaceText(int start, int end, java.lang.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)