|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor ro.sync.ecss.extensions.commons.editor.URLChooserEditorSWT
@API(type=INTERNAL, src=PUBLIC) public class URLChooserEditorSWT
URL Chooser in-place editor on Eclipse.
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.text.ITextOperationTarget |
---|
COPY, CUT, DELETE, PASTE, PREFIX, PRINT, REDO, SELECT_ALL, SHIFT_LEFT, SHIFT_RIGHT, STRIP_PREFIX, UNDO |
Constructor Summary | |
---|---|
URLChooserEditorSWT()
Constructor. |
Method Summary | |
---|---|
void |
cancelEditing()
Cancels the editing process. |
boolean |
canDoOperation(int operation)
|
void |
doOperation(int operation)
|
java.lang.String |
getDescription()
|
java.lang.Object |
getEditorComponent(AuthorInplaceContext context,
Rectangle allocation,
Point mouseInvocationLocation)
Prepare and return the editor component. |
Rectangle |
getScrollRectangle()
Returns a rectangle that should be made visible after the editor is shown. |
java.lang.Object |
getValue()
Gets the value that the user entered. |
void |
requestFocus()
Requests focus inside the editing component. |
void |
stopEditing()
Stops the editing and commits the current value. |
Methods inherited from class ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor |
---|
addEditingListener, fireCommitValue, fireEditingCanceled, fireEditingOccured, fireEditingStopped, fireNextEditLocationRequested, firePreviousEditLocationRequested, removeEditingListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLChooserEditorSWT()
Method Detail |
---|
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public java.lang.Object getEditorComponent(AuthorInplaceContext context, Rectangle allocation, Point mouseInvocationLocation)
InplaceEditor
getEditorComponent
in interface InplaceEditor
context
- The context where the editor will be used.allocation
- The bounds where the editor will be shown. This is normally
the bounds of the box in which the value being edited is rendered. If the
editor requires to be presented in different bounds it should alter this parameter.
The X,Y coordinates are relative to the parent in which the editor will be added.mouseInvocationLocation
- if the editor was requested using the mouse this
parameter represents the X,Y location where the event took place. It is relative to the parent
in which the editor will be added. null
if the editor wasn't requested through
mouse interaction.
InplaceEditor.requestFocus()
call).
KeyListener
for handling key events like: ENTER to stop editing
(by calling InplaceEditingListener.editingStopped(EditingEvent)
)
and ESCAPE to cancel it (by calling InplaceEditingListener.editingCanceled()
).FocusListener
to stop editing when the focus is given to a component that is not
part of the editor (by calling InplaceEditingListener.editingStopped(EditingEvent)
).DocumentListener
to fire InplaceEditingListener.editingOccured()
events (If the editor has a document).InplaceEditor.getEditorComponent(ro.sync.ecss.extensions.api.editor.AuthorInplaceContext, ro.sync.exml.view.graphics.Rectangle, ro.sync.exml.view.graphics.Point)
public Rectangle getScrollRectangle()
InplaceEditor
getScrollRectangle
in interface InplaceEditor
null
to make the entire editor
visible.InplaceEditor.getScrollRectangle()
public void requestFocus()
InplaceEditor
requestFocus
in interface InplaceEditor
InplaceEditor.requestFocus()
public java.lang.Object getValue()
InplaceEditor
getValue
in interface InplaceEditor
InplaceEditor.getValue()
public void stopEditing()
InplaceEditor
InplaceEditingListener.editingStopped(EditingEvent)
.
OBS: The current value will be committed only if at least one
InplaceEditingListener.editingOccured()
event was issued before this moment.
stopEditing
in interface InplaceEditor
InplaceEditor.stopEditing()
public void cancelEditing()
InplaceEditor
InplaceEditingListener.editingCanceled()
.
cancelEditing
in interface InplaceEditor
InplaceEditor.cancelEditing()
public boolean canDoOperation(int operation)
canDoOperation
in interface org.eclipse.jface.text.ITextOperationTarget
ITextOperationTarget.canDoOperation(int)
public void doOperation(int operation)
doOperation
in interface org.eclipse.jface.text.ITextOperationTarget
ITextOperationTarget.doOperation(int)
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |