| org.netbeans.api.visual.action.InplaceEditorProvider
All known Subclasses: org.netbeans.modules.visual.action.InplaceEditorAction,
InplaceEditorProvider | public interface InplaceEditorProvider (Code) | | This interface controls an in-place editor of an in-place editor action.
author: David Kaspar |
Inner Class :public enum ExpansionDirection | |
Inner Class :interface EditorController | |
Method Summary | |
C | createEditorComponent(EditorController controller, Widget widget) Creates an in-place editor component for a specified widget. | public EnumSet<ExpansionDirection> | getExpansionDirections(EditorController controller, Widget widget, C editor) Called to obtain directions where an editor component can expand to. | public Rectangle | getInitialEditorComponentBounds(EditorController controller, Widget widget, C editor, Rectangle viewBounds) Called to obtain the initial boundary editor component in view coordination system. | void | notifyClosing(EditorController controller, Widget widget, C editor, boolean commit) Called to notify about closing an in-place editor. | void | notifyOpened(EditorController controller, Widget widget, C editor) Called to notify about opening an in-place editor. |
createEditorComponent | C createEditorComponent(EditorController controller, Widget widget)(Code) | | Creates an in-place editor component for a specified widget. Called to acquire the component which should be added into the scene.
Parameters: controller - the editor controller Parameters: widget - the widget where the editor is going to be opened the editor component |
getExpansionDirections | public EnumSet<ExpansionDirection> getExpansionDirections(EditorController controller, Widget widget, C editor)(Code) | | Called to obtain directions where an editor component can expand to.
Parameters: controller - the editor controller Parameters: widget - the widget where the editor is going to be opened Parameters: editor - the editor component the set of directions where the editor component can expand to;if null, then the editor component is not expanded to any direction |
getInitialEditorComponentBounds | public Rectangle getInitialEditorComponentBounds(EditorController controller, Widget widget, C editor, Rectangle viewBounds)(Code) | | Called to obtain the initial boundary editor component in view coordination system.
Parameters: controller - the editor controller Parameters: widget - the widget where the editor is going to be opened Parameters: editor - the editor component Parameters: viewBounds - the precalculated boundary of the editor component the boundary of editor component in view coordination system;if null, then the viewBounds are automatically used |
notifyClosing | void notifyClosing(EditorController controller, Widget widget, C editor, boolean commit)(Code) | | Called to notify about closing an in-place editor.
Parameters: controller - the editor controller Parameters: widget - the widget where the editor is opened Parameters: editor - the editor component Parameters: commit - true, if the current value is approved by user andshould be used; false if the current value is discarded by an user |
notifyOpened | void notifyOpened(EditorController controller, Widget widget, C editor)(Code) | | Called to notify about opening an in-place editor.
Parameters: controller - the editor controller Parameters: widget - the widget where the editor is opened Parameters: editor - the editor component |
|
|