Class InPlaceEditHandler
java.lang.Object
com.inductiveautomation.vision.api.designer.beans.InPlaceEditHandler
- All Implemented Interfaces:
DoubleClickHandler
A double-click handler that implements in-place editing for components that want text editability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JTextField
createField
(JComponent component) protected Font
getFont
(JComponent component) protected abstract int
getHorizontalAlignment
(JComponent component) protected Insets
getInsets
(JComponent component) protected String
protected abstract String
getText
(JComponent component) protected boolean
isPropertyBound
(JComponent component) void
onDoubleClick
(JComponent component, WindowWorkspace workspace) protected abstract void
setText
(JComponent component, String text)
-
Constructor Details
-
InPlaceEditHandler
public InPlaceEditHandler()
-
-
Method Details
-
onDoubleClick
- Specified by:
onDoubleClick
in interfaceDoubleClickHandler
-
isPropertyBound
-
getPropertyName
-
createField
-
getFont
-
getInsets
-
getHorizontalAlignment
-
getText
-
setText
-