Implement Action as an Extension
Usage | Use this to define a custom action menu. For example, add an action, reorder the existing actions, enable/disable an action, and remove actions to suit your requirements. |
Elements | ![*](bullet.gif) String actionId ![*](bullet.gif) String commaSeparatedAssetId ![*](bullet.gif) String positionParam |
Interface | See the sample code |
Abstract base class | ActionListener |
Processing | When a list of actions for an action menu is retrieved, the following steps are performed for each known action: ![*](bullet.gif) create an instance of class ![*](bullet.gif) implement the method processAction of type String. |
Provided by | BusinessUI |
Code | See the sample code |
You can find sample code for defining the action menu as an extension point in the file CentraSiteBUIExtension.gwt.xml that is provided in the demos folder under the CentraSite installation folder.
<!-- Use ActionListener by default -->
<replace-with
class="com.softwareag.centrasite.bui.extension.client.action.ActionListener">
<when-type-is
class="com.softwareag.centrasite.bui.extension.core.client.IActionListener"/>
</replace-with>