Class ActionManager
ActionManager is a helper class that provides common Action Behaviours that can be used by any IActionControl implementation.
Inheritance
Namespace: DotNetNuke.UI.Containers
Assembly: DotNetNuke.dll
Syntax
public class ActionManager : object
Constructors
| Improve this Doc View SourceActionManager(IActionControl)
Initializes a new instance of the ActionManager class.
Declaration
public ActionManager(IActionControl actionControl)
Parameters
Type | Name | Description |
---|---|---|
IActionControl | actionControl |
Properties
| Improve this Doc View SourceActionControl
Gets or sets the Action Control that is connected to this ActionManager instance.
Declaration
public IActionControl ActionControl { get; set; }
Property Value
Type | Description |
---|---|
IActionControl |
ModuleContext
Gets the ModuleInstanceContext instance that is connected to this ActionManager instance.
Declaration
protected ModuleInstanceContext ModuleContext { get; }
Property Value
Type | Description |
---|---|
ModuleInstanceContext |
Methods
| Improve this Doc View SourceDisplayControl(DNNNodeCollection)
DisplayControl determines whether the associated Action control should be displayed.
Declaration
public bool DisplayControl(DNNNodeCollection objNodes)
Parameters
Type | Name | Description |
---|---|---|
DNNNodeCollection | objNodes |
Returns
Type | Description |
---|---|
System.Boolean | true if the nodes should be displayed, otherwise false. |
GetAction(Int32)
GetAction gets the action associated with the id.
Declaration
public ModuleAction GetAction(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The Id. |
Returns
Type | Description |
---|---|
ModuleAction | The ModuleAction instance or null. |
GetAction(String)
GetAction gets the action associated with the commandName.
Declaration
public ModuleAction GetAction(string commandName)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | The command name. |
Returns
Type | Description |
---|---|
ModuleAction | The ModuleAction instance or null. |
GetClientScriptURL(ModuleAction, WebControl)
GetClientScriptURL gets the client script to attach to the control's client side onclick event.
Declaration
public void GetClientScriptURL(ModuleAction action, WebControl control)
Parameters
Type | Name | Description |
---|---|---|
ModuleAction | action | The Action. |
WebControl | control | The Control. |
IsVisible(ModuleAction)
IsVisible determines whether the action control is Visible.
Declaration
public bool IsVisible(ModuleAction action)
Parameters
Type | Name | Description |
---|---|---|
ModuleAction | action | The Action. |
Returns
Type | Description |
---|---|
System.Boolean | true if the action is visible, otherwise false. |
ProcessAction(ModuleAction)
ProcessAction processes the action.
Declaration
public bool ProcessAction(ModuleAction action)
Parameters
Type | Name | Description |
---|---|---|
ModuleAction | action | The Action. |
Returns
Type | Description |
---|---|
System.Boolean | true if the action was processed, otherwise false (if it's a custom action that can't be found). |
ProcessAction(String)
ProcessAction processes the action.
Declaration
public bool ProcessAction(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The Id of the Action. |
Returns
Type | Description |
---|---|
System.Boolean | true if the action was processed, otherwise false (if it's a custom action that can't be found). |