|
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.AuthorInplaceContext
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class AuthorInplaceContext
Context where an edit component will be used. Contains all the information required to build the editor.
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.
Constructor Summary | |
---|---|
AuthorInplaceContext(java.util.Map<java.lang.String,java.lang.Object> arguments,
AuthorElement elem,
Styles styles,
AuthorSchemaManager schemaManager,
AuthorAccess authorAccess,
java.lang.Object parentHost)
The editor context. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getArguments()
|
java.lang.String |
getAttributeToEdit()
|
static java.lang.String |
getAttributeToEdit(java.lang.String toEdit)
Checks if the property InplaceEditorCSSConstants.PROPERTY_EDIT specifies
an attribute to be edited. |
AuthorAccess |
getAuthorAccess()
|
AuthorElement |
getElem()
Get the element being edited. |
java.lang.String |
getErrorMessage()
|
java.lang.Object |
getParentHost()
The parent host in which the editor will be added or the renderer will be painted. |
Point |
getRelativeMouseLocation()
If the mouse is currently hovering the area of this editor this represents the X,Y location relative to the editor bounds. |
AuthorSchemaManager |
getSchemaManager()
|
Styles |
getStyles()
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets an error message encountered while building the context. |
void |
setRelativeMousePosition(Point relativeMousePosition)
If the mouse is currently hovering the area of this editor this represents the X,Y location relative to the editor bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorInplaceContext(java.util.Map<java.lang.String,java.lang.Object> arguments, AuthorElement elem, Styles styles, AuthorSchemaManager schemaManager, AuthorAccess authorAccess, java.lang.Object parentHost)
arguments
- The editor argumentselem
- The element being edited.styles
- The styles of the element where the editing takes placeschemaManager
- Provides support for obtaining information about what elements, attributes can be inserted
in a given context.authorAccess
- Provides access to different functions.parentHost
- The parent host in which the editor will be added or the renderer will be
painted. If we are in the stand-alone Oxygen version this will be a JPanel.
If we are in the Oxygen Eclipse plug-in this will be a Composite. For SWT,
an editor will require the parent in order to create itself.Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
InplaceEditorArgumentKeys
.public java.lang.String getAttributeToEdit()
null
no attribute was specified in which case the text should be edited.public static java.lang.String getAttributeToEdit(java.lang.String toEdit)
InplaceEditorCSSConstants.PROPERTY_EDIT
specifies
an attribute to be edited.
toEdit
- The value of the property InplaceEditorCSSConstants.PROPERTY_EDIT
null
if no attribute name was specified.public AuthorElement getElem()
public AuthorSchemaManager getSchemaManager()
public AuthorAccess getAuthorAccess()
public java.lang.Object getParentHost()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- An error message encountered while building the context.public java.lang.String getErrorMessage()
public Styles getStyles()
public void setRelativeMousePosition(Point relativeMousePosition)
null
if the mouse is not over the editor.
This information is relevant only when the editor is painted. When editing
is started the editor can just add mouse listeners onto itself.
relativeMousePosition
- The mouse location if the mouse is over the editor.public Point getRelativeMouseLocation()
null
if the mouse is not over the editor.
This information is relevant only when the editor is painted. When editing
is started the editor can just add mouse listeners onto itself.
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |