Oxygen XML Editor 14.2 Author API

ro.sync.ecss.extensions.api.editor
Interface InplaceEditingListener

All Superinterfaces:
InplaceEditingTraversalListener

@API(type=EXTENDABLE,
     src=PUBLIC)
public interface InplaceEditingListener
extends InplaceEditingTraversalListener

Gets notified about edit events:

An editor implementation will have to add listeners onto itself like:

Since:
14.1

*********************************
EXPERIMENTAL - Subject to change
********************************

Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.


Method Summary
 void commitValue(EditingEvent event)
          Commit the given value inside the document without stopping the editing.
 void editingCanceled()
          An editing canceled request.
 void editingOccured()
          An edit happened in the inplace editor which could result in a document modification if the new value will be committed.
 void editingStopped(EditingEvent event)
          An editing stopped request.
 
Methods inherited from interface ro.sync.ecss.extensions.api.editor.InplaceEditingTraversalListener
nextEditLocationRequested, previousEditLocationRequested
 

Method Detail

editingStopped

void editingStopped(EditingEvent event)
An editing stopped request. This will commit the value into the document ONLY if the following conditions apply:

editingCanceled

void editingCanceled()
An editing canceled request.
OBS: Before or after firing this event, the editor should release any held resources. For example a SWT editor will have to dispose() any created images, fonts or controls.


editingOccured

void editingOccured()
An edit happened in the inplace editor which could result in a document modification if the new value will be committed. OBS: THIS EVENT IS VERY IMPORTANT. If no editingOccured() event is received, the value from the editor will not be committed when the editing is stopped. See editingStopped(EditingEvent) for more information.


commitValue

void commitValue(EditingEvent event)
Commit the given value inside the document without stopping the editing. Will only commit if a new string value is provided and only if the value that must be committed is different from the current value. Normally, this kind of event should be preceded by an editingOccured() event.

Parameters:
event - Editing event. Currently only the string value from within is of interest.

Oxygen XML Editor 14.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.