Package ro.sync.ecss.extensions.api
Class EditPropertiesHandlerAdapter
- java.lang.Object
-
- ro.sync.ecss.extensions.api.EditPropertiesHandlerAdapter
-
- All Implemented Interfaces:
EditPropertiesHandler
,Extension
@API(type=EXTENDABLE, src=PUBLIC) public class EditPropertiesHandlerAdapter extends java.lang.Object implements EditPropertiesHandler
Adapter class. A custom implementation to handle editing properties for an author node. For example when a user double clicks on an element tag we will invoke this extension and a specific dialog can be presented. The user can edit different facets of that element, like attributes.- Since:
- 17.1
-
-
Constructor Summary
Constructors Constructor Description EditPropertiesHandlerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEditProperties(AuthorNode authorNode)
Checks if it can edit the properties for a given node.void
editProperties(AuthorNode authorNode, AuthorAccess authorAccess)
Edit the properties for the given node.java.lang.String
getDescription()
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceExtension
- Returns:
- The description of the extension.
- See Also:
Extension.getDescription()
-
editProperties
public void editProperties(AuthorNode authorNode, AuthorAccess authorAccess)
Description copied from interface:EditPropertiesHandler
Edit the properties for the given node.- Specified by:
editProperties
in interfaceEditPropertiesHandler
- Parameters:
authorNode
- Author node to edit the properties for.authorAccess
- Author access.- See Also:
EditPropertiesHandler.editProperties(ro.sync.ecss.extensions.api.node.AuthorNode, ro.sync.ecss.extensions.api.AuthorAccess)
-
canEditProperties
public boolean canEditProperties(AuthorNode authorNode)
Description copied from interface:EditPropertiesHandler
Checks if it can edit the properties for a given node.- Specified by:
canEditProperties
in interfaceEditPropertiesHandler
- Parameters:
authorNode
- Author node to edit the properties for.- Returns:
true
if it can edit the properties of the node andfalse
if the properties of this node can't be edited.- See Also:
EditPropertiesHandler.canEditProperties(ro.sync.ecss.extensions.api.node.AuthorNode)
-
-