CentraSite Documentation : CentraSite Developer’s Guide : Pluggable Architecture : Customizing Content Pages : Extension Points : Command for Item
Command for Item
Usage
Add a command to a menu.
Attributes
*point="com.centrasite.control.itemCommand"
*id (default: name of implementing class)
*class
Interface
ExtensionCommand
*boolean appliesTo (Item)
*String getName()
*String getImageURL()
*int getCategory()
(used for grouping of commands)
*abstract void execute(ActionContext actionContext)
Abstract base class
AbstractExtensionCommand
Processing
*When a list of commands for a menu item is retrieved (e.g. for context menu or toolbar), the following steps are performed for each known extension:
*create an instance of class and invoke appliesTo(Item).
*If true is returned, the command is added to the list.
Provided by
CentraSite Control
Example
<extension point="com.centrasite.control.itemCommand"
id="test"
class="com.centrasite.control.extpt.junit.
DisplayRegObjKeyCommand">
</extension>
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback