MindFusion.Java Package Programmer's Guide
DiagramAdapter.createEditControl Method
See Also
 






Called to let you create a custom in-place editor control.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void createEditControl (
    InPlaceEditEvent e
)

 Parameters

e

An InPlaceEditEvent object providing information about the event.

 Remarks

This event is raised if AllowInplaceEdit is enabled and the user double-clicks an item, or when the application invokes the beginEdit method of DiagramView. If the event is not handled, or if EditControl is set to null, MindFusion.Diagramming displays a JTextArea component to allow editing the item's text. If you prefer to use the built-in JTextArea, you can still customize it by handling the enterInplaceEditMode event.

Note that if you create a custom editor control, you must transfer the values entered into it to the respective properties of the edited diagram item. You could do that in response to the destroyEditControl event.

 See Also

DiagramAdapter Members
DiagramAdapter Class
com.mindfusion.diagramming Namespace