public class StyledTextBehavior extends com.sun.javafx.scene.control.behavior.BehaviorBase<StyledTextArea>
| Constructor and Description |
|---|
StyledTextBehavior(StyledTextArea styledText)
Create a new behavior
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
callAction(java.lang.String arg0) |
protected void |
callActionForEvent(javafx.scene.input.KeyEvent arg0) |
boolean |
invokeAction(ActionEvent.ActionType action)
Invoke an action
|
void |
mouseDragged(javafx.scene.input.MouseEvent e) |
void |
mousePressed(javafx.scene.input.MouseEvent arg0) |
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 void callActionForEvent(javafx.scene.input.KeyEvent arg0)
callActionForEvent in class com.sun.javafx.scene.control.behavior.BehaviorBase<StyledTextArea>protected void callAction(java.lang.String arg0)
callAction in class com.sun.javafx.scene.control.behavior.BehaviorBase<StyledTextArea>public void mousePressed(javafx.scene.input.MouseEvent arg0)
mousePressed in class com.sun.javafx.scene.control.behavior.BehaviorBase<StyledTextArea>public void mouseDragged(javafx.scene.input.MouseEvent e)
mouseDragged in class com.sun.javafx.scene.control.behavior.BehaviorBase<StyledTextArea>public boolean 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