Controller class

A PureMVC MultiCore IController implementation.

In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:

See INotification, ICommand

Implemented types

Constructors

Controller(String key)
Constructor. [...]

Properties

commandMap Map<String, Function>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
multitonKey String
read / write, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
view IView
read / write

Methods

executeCommand(INotification note) → void
Execute the ICommand previously registered as the handler for INotifications with the given notification's name. [...]
override
hasCommand(String noteName) bool
Check if an ICommand is registered for a given INotification name with the IController. [...]
override
initializeController() → void
Initialize the IController Multiton instance. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerCommand(String noteName, Function commandFactory) → void
Register an INotification to ICommand mapping with the Controller. [...]
override
removeCommand(String noteName) → void
Remove a previously registered INotification to ICommand mapping from the IController. [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

instanceMap Map<String, IController>
read / write

Static Methods

getInstance(String key) IController
IController Multiton Factory method. [...]
removeController(String key) → void
Remove an IController instance. [...]