public class StyledTextBehavior
extends java.lang.Object
| Constructor and Description |
|---|
StyledTextBehavior(StyledTextArea styledText)
Create a new behavior
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
callActionForEvent(javafx.scene.input.KeyEvent arg0)
Handle key event
|
protected StyledTextArea |
getControl() |
protected void |
invokeAction(ActionEvent.ActionType action)
Invoke an action
|
void |
mousePressed(javafx.scene.input.MouseEvent arg0)
handle the mouse pressed
|
void |
updateCursor(javafx.scene.input.MouseEvent event,
java.util.List<StyledTextSkin.LineCell> visibleCells,
boolean selection)
Send a mouse pressed
|
public StyledTextBehavior(StyledTextArea styledText)
styledText - the styled text controlprotected StyledTextArea getControl()
protected void callActionForEvent(javafx.scene.input.KeyEvent arg0)
arg0 - the eventpublic void mousePressed(javafx.scene.input.MouseEvent arg0)
arg0 - the mouse eventprotected void invokeAction(ActionEvent.ActionType action)
action - the actionpublic void updateCursor(javafx.scene.input.MouseEvent event,
java.util.List<StyledTextSkin.LineCell> visibleCells,
boolean selection)
event - the eventvisibleCells - the visible cellsselection - are we in selection mode