public interface InplaceEditorProvider<C extends 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.
|
EnumSet<InplaceEditorProvider.ExpansionDirection> |
getExpansionDirections(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor) |
Called to obtain directions where an editor component can expand to.
|
Rectangle |
getInitialEditorComponentBounds(InplaceEditorProvider.EditorController controller,
Widget widget,
C editor,
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 openedRectangle getInitialEditorComponentBounds(InplaceEditorProvider.EditorController controller, Widget widget, C editor, 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 componentEnumSet<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.