new ActionManager()
A util to manager all named actions for special widgets.
Methods
-
(static) getActionClassOfName(name, widgetOrClass, checkSupClasses) → {Class}
-
Returns action class associated with name for a specific widget class.
Parameters:
Name Type Description name
String widgetOrClass
Variant Widget instance of widget class. checkSupClasses
Bool When true, if action is not found in current widget class, super classes will also be checked. Returns:
- Type
- Class
-
(static) registerNamedActionClass(name, actionClass, targetWidgetClass)
-
Register a named action to a special widget class.
Parameters:
Name Type Description name
String actionClass
Class targetWidgetClass
Class -
(static) unregisterNamedActionClass(name, targetWidgetClass)
-
Unregister a named action from a special widget class.
Parameters:
Name Type Description name
String targetWidgetClass
Class