The TextEditingTool is used to let the user interactively edit text in place. You do not normally need to create an instance of this tool because one already exists as the ToolManager#clickSelectingTool.
You do not normally need to create an instance of this tool because one already exists as the ToolManager#textEditingTool, which you can modify.
The user has typed ENTER.
The text editing control has lost focus.
The user has clicked somewhere else in the diagram.
A single click on a TextBlock with TextBlock#editable property set to true will start in-place editing.
A single click on a TextBlock with TextBlock#editable property set to true will start in-place editing, but only if the Part that the TextBlock is in is already selected.
The user has typed TAB.
Gets or sets the HTML element that edits the text.
Gets or sets the HTML element that edits the text.
Gets the Diagram that owns this tool and for which this tool is handling input events.
Gets or sets whether this tool is started and is actively doing something.
Gets or sets whether this tool can be started by a mouse event.
Gets or sets the name of this tool.
Gets or sets how user gestures can start in-place editing of text.
Gets or sets the TextBlock that is being edited.
Gets or sets the predicate that determines whether or not a string of text is valid.
Gets or sets the name of the transaction to be committed by #stopTransaction; if null, the transaction will be rolled back.
Finish editing by trying to accept the new text.
The reason must be either TextEditingTool#LostFocus, TextEditingTool#MouseDown, TextEditingTool#Tab, or TextEditingTool#Enter.
any
This may run when there is a mouse-click on a TextBlock for which the TextBlock#editable property is true in a Part that Part#isSelected.
boolean
This is called to cancel any running "WaitAfter" timer.
any
Start editing the text for a TextBlock.
any
Abort any text editing operation.
any
Release the mouse.
any
The diagram will call this method upon a key down event.
any
The diagram will call this method upon a key up event.
any
A click (mouse up) calls TextEditingTool#doActivate if this tool is not already active and if TextEditingTool#canStart returns true.
any
The diagram will call this method upon a mouse move event.
any
A click (mouse up) calls TextEditingTool#doActivate if this tool is not already active and if TextEditingTool#canStart returns true.
any
The diagram will call this method as the mouse wheel is rotated.
any
This calls TextEditingTool#doActivate if there is a TextBlock supplied.
any
This method is called by the diagram when this tool stops being the current tool; you should not call this method.
any
This is called a certain delay after a call to #standardWaitAfter if there has not been any call to #cancelWaitAfter.
any
This convenience function finds the front-most GraphObject that is at a given point and that is part of an Adornment that is of a given category.
a Point in document coordinates.
the required Part#category of the Adornment.
Return true when the last mouse point is far enough away from the first mouse down point to constitute a drag operation instead of just a potential click.
Point in view coordinates, defaults to Diagram#firstInput's InputEvent#viewPoint.
Point in view coordinates, defaults to Diagram#lastInput's InputEvent#viewPoint.
boolean
This predicate checks any TextBlock#textValidation predicate and this tool's #textValidation predicate to make sure the TextBlock#text property may be set to the new string.
the TextBlock that is being edited.
the previous string value.
the proposed new string value.
boolean
Implement the standard behavior for mouse clicks, searching for and calling click handler functions on GraphObjects or on Diagram, and raising the corresponding DiagramEvent.
An optional custom navigation function to find target objects.
An optional custom predicate
any
Implement the standard behavior for mouse enter, over, and leave events, where the mouse is moving but no button is pressed.
any
Implement the standard behavior for selecting parts with the mouse, depending on the control and shift modifier keys.
any
Implement the standard behavior for mouse wheel events.
any
This is called to start a new timer to call #doWaitAfter after a given delay.
in milliseconds
any
Call Diagram#startTransaction with the given transaction name.
a description of the transaction
boolean
If the Diagram#currentTool is this tool, stop this tool and start the Diagram#defaultTool by making it be the new current tool.
any
If #transactionResult is null, call Diagram#rollbackTransaction, otherwise call Diagram#commitTransaction.
boolean
The diagram asks each tool to update any adornments the tool might use for a given part.
any