CentraSite 10.5 | CentraSite Developer's Guide | Customizing CentraSite | Customization of CentraSite Business UI | Customizing CentraSite Content Page | Extending Action Menu | Implement Action as an Extension
 
Implement Action as an Extension
Usage
Use this to define a custom action in CentraSite Business UI. For example, add an action, reorder the existing actions, enable or disable an action, and remove actions to suit your requirements.
Elements
*String actionId
*String commaSeparatedAssetId
*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:
*create an instance of class.
*implement the method processAction of type String.
Provided by
BusinessUI
Code
See the sample code.
You can find sample code for defining the custom action as an extension point in the file CentraSiteBUIExtension.gwt.xml. You can find the file in the demos folder in the <CentraSiteInstall_Directory>.
<!-- 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>