Class EditImageHandler
java.lang.Object
ro.sync.exml.workspace.api.images.handlers.ImageHandler
ro.sync.exml.workspace.api.images.handlers.EditImageHandler
- Direct Known Subclasses:
XMLImageHandler
Special handler for editing images which are either embedded or referenced.
- Since:
- 18
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Edit the URL that represents an embedded image.abstract String
editImage
(EmbeddedImageContentProvider contentProvider) Edits the document fragment that represents an embedded image.Methods inherited from class ro.sync.exml.workspace.api.images.handlers.ImageHandler
canHandleFileType, clearCache, getImage, getImageLayoutInformation
-
Constructor Details
-
EditImageHandler
public EditImageHandler()
-
-
Method Details
-
editImage
public abstract String editImage(EmbeddedImageContentProvider contentProvider) throws CannotEditException Edits the document fragment that represents an embedded image.- Parameters:
contentProvider
- The image content provider.- Returns:
- The fragment representing the result of the edit, or null if the edit was canceled.
- Throws:
CannotEditException
- If this handler does not support resource editing.
-
editImage
Edit the URL that represents an embedded image.- Parameters:
url
- The URL to be edited.- Returns:
- true If the URL content was modified.
- Throws:
CannotEditException
- If this handler does not support resource editing.
-