Package com.day.cq.wcm.api.components
Class JcrToolbarItem
java.lang.Object
com.day.cq.wcm.api.components.JcrToolbarItem
- All Implemented Interfaces:
Toolbar.Item
Implements a custom toolbar item that can be initialized with a node reflecting
a widget description.
-
Constructor Summary
ConstructorsConstructorDescriptionJcrToolbarItem(Node node) Creates a custom editing action from the given node -
Method Summary
-
Constructor Details
-
JcrToolbarItem
Creates a custom editing action from the given node- Parameters:
node- the node- Throws:
RepositoryException- if a repository error occurs
-
-
Method Details
-
write
Serialize to JSON writer.- Specified by:
writein interfaceToolbar.Item- Parameters:
writer- the writer- Throws:
JSONException- if a JSON error occurs.
-