Packagecom.threerings.util
Classpublic class Controller



Protected Properties
 PropertyDefined by
  _controlledPanel : IEventDispatcher
The panel currently being controlled.
Controller
Public Methods
 MethodDefined by
  
handleAction(cmd:String, arg:Object):Boolean
Handle an action that was generated by our panel or some child.
Controller
  
postAction(cmd:String, arg:Object = null):void
Post an action so that it can be handled by this controller or another controller above it in the display list.
Controller
Protected Methods
 MethodDefined by
  
setControlledPanel(panel:IEventDispatcher):void
Set the panel being controlled.
Controller
Property detail
_controlledPanelproperty
protected var _controlledPanel:IEventDispatcher

The panel currently being controlled.

Method detail
handleAction()method
public function handleAction(cmd:String, arg:Object):Boolean

Handle an action that was generated by our panel or some child.

Parameters
cmd:String
 
arg:Object

Returns
Boolean — true if the specified action was handled, false otherwise. When creating your own controller, override this function and return true for any command handled, and call super for any unknown commands.
postAction()method 
public final function postAction(cmd:String, arg:Object = null):void

Post an action so that it can be handled by this controller or another controller above it in the display list.

Parameters
cmd:String
 
arg:Object (default = null)
setControlledPanel()method 
protected function setControlledPanel(panel:IEventDispatcher):void

Set the panel being controlled.

Parameters
panel:IEventDispatcher