public interface InplaceEditorProvider<C extends javax.swing.JComponent>
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
InplaceEditorProvider.EditorController |
This is an interface of editor action supplied to the methods in the provider.
|
static class |
InplaceEditorProvider.EditorInvocationType |
Represents a type of in-place editor action invocation.
|
static class |
InplaceEditorProvider.ExpansionDirection |
Represents possible directions for expansion of an editor component.
|
static interface |
InplaceEditorProvider.TypedEditorController |
This is an interface that extends EditorController for ability to query for invocation type.
|
| Modifier and Type | Method | Description |
|---|---|---|
C |
createEditorComponent(InplaceEditorProvider.EditorController controller,
Widget widget) |
Creates an in-place editor component for a specified widget.
|
java.util.EnumSet<InplaceEditorProvider.ExpansionDirection> |
getExpansionDirections(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor) |
Called to obtain directions where an editor component can expand to.
|
java.awt.Rectangle |
getInitialEditorComponentBounds(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor,
java.awt.Rectangle viewBounds) |
Called to obtain the initial boundary editor component in view coordination system.
|
void |
notifyClosing(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor,
boolean commit) |
Called to notify about closing an in-place editor.
|
void |
notifyOpened(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor) |
Called to notify about opening an in-place editor.
|
void notifyOpened(InplaceEditorProvider.EditorController controller, Widget widget, C editor)
controller - the editor controllerwidget - the widget where the editor is openededitor - the editor componentvoid notifyClosing(InplaceEditorProvider.EditorController controller, Widget widget, C editor, boolean commit)
controller - the editor controllerwidget - the widget where the editor is openededitor - the editor componentcommit - true, if the current value is approved by user and
should be used; false if the current value is discarded by an userC createEditorComponent(InplaceEditorProvider.EditorController controller, Widget widget)
controller - the editor controllerwidget - the widget where the editor is going to be openedjava.awt.Rectangle getInitialEditorComponentBounds(InplaceEditorProvider.EditorController controller, Widget widget, C editor, java.awt.Rectangle viewBounds)
controller - the editor controllerwidget - the widget where the editor is going to be openededitor - the editor componentviewBounds - the precalculated boundary of the editor componentjava.util.EnumSet<InplaceEditorProvider.ExpansionDirection> getExpansionDirections(InplaceEditorProvider.EditorController controller, Widget widget, C editor)
controller - the editor controllerwidget - the widget where the editor is going to be openededitor - the editor componentBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.