Package com.day.cq.wcm.api.components
Class JcrToolbarItem
- java.lang.Object
-
- com.day.cq.wcm.api.components.JcrToolbarItem
-
- All Implemented Interfaces:
Toolbar.Item
public class JcrToolbarItem extends java.lang.Object implements Toolbar.Item
Implements a custom toolbar item that can be initialized with a node reflecting a widget description.
-
-
Constructor Summary
Constructors Constructor Description JcrToolbarItem(Node node)
Creates a custom editing action from the given node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(JSONWriter writer)
Serialize to JSON writer.
-
-
-
Constructor Detail
-
JcrToolbarItem
public JcrToolbarItem(Node node) throws RepositoryException
Creates a custom editing action from the given node- Parameters:
node
- the node- Throws:
RepositoryException
- if a repository error occurs
-
-
Method Detail
-
write
public void write(JSONWriter writer) throws JSONException
Serialize to JSON writer.- Specified by:
write
in interfaceToolbar.Item
- Parameters:
writer
- the writer- Throws:
JSONException
- if a JSON error occurs.
-
-