|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InplaceEditorProvider<C extends JComponent>
This interface controls an in-place editor of an in-place editor action.
Nested Class Summary | |
---|---|
static interface |
InplaceEditorProvider.EditorController
This is an interface of editor action supplied to the methods in the provider. |
static class |
InplaceEditorProvider.ExpansionDirection
Represents possible directions for expansion of an editor component. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 opened
Rectangle 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 component
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 component
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |