Packagecom.whirled.contrib.avrg.probe
Classpublic class FunctionPanel
InheritanceFunctionPanel Inheritance flash.display.Sprite

Panel to display an array of FunctionSpec objects. This includes their names and parameters as well as a way to edit the parameters and call each function individually. A ParameterPanel is used to display each function's parameters.

See also

com.whirled.contrib.avrg.probe.FunctionSpec
com.whirled.contrib.avrg.probe.ParameterPanel


Protected Properties
 PropertyDefined by
  _ctrl : AVRGameControl
FunctionPanel
  _functions : Object
FunctionPanel
  _output : TextField
FunctionPanel
  _selected : FunctionEntry
FunctionPanel
  _sequenced : Boolean
FunctionPanel
  _sequenceId : int = 0
[static]
FunctionPanel
Public Methods
 MethodDefined by
  
FunctionPanel(ctrl:AVRGameControl, functions:Array, sequenced:Boolean)
Creates a new function panel.
FunctionPanel
Protected Methods
 MethodDefined by
  
FunctionPanel
  
FunctionPanel
  
FunctionPanel
  
output(str:String):void
FunctionPanel
  
parseParameters(entry:FunctionEntry, local:Boolean):Array
FunctionPanel
  
setupGrid(functions:Array):GridPanel
FunctionPanel
Property detail
_ctrlproperty
protected var _ctrl:AVRGameControl
_functionsproperty 
protected var _functions:Object
_outputproperty 
protected var _output:TextField
_selectedproperty 
protected var _selected:FunctionEntry
_sequencedproperty 
protected var _sequenced:Boolean
_sequenceIdproperty 
protected static var _sequenceId:int = 0
Constructor detail
FunctionPanel()constructor
public function FunctionPanel(ctrl:AVRGameControl, functions:Array, sequenced:Boolean)

Creates a new function panel. Function names are in the left hand column. Clicking on a function name displays the parameter panel on the right. Clicking on the parameter panel call button invokes the function.

Parameters
ctrl:AVRGameControl — the game control to use to display feedback when a function is called
 
functions:Array — array of FunctionSpec objects
 
sequenced:Boolean — whether to pass in an extra sequence paramter when invoking functions - the passed value is incremented each time a call is made
Method detail
handleCallClick()method
protected function handleCallClick(evt:ButtonEvent):voidParameters
evt:ButtonEvent
handleFunctionClick()method 
protected function handleFunctionClick(evt:ButtonEvent):voidParameters
evt:ButtonEvent
makeGenericCallback()method 
protected function makeGenericCallback(fn:FunctionSpec):FunctionParameters
fn:FunctionSpec

Returns
Function
output()method 
protected function output(str:String):voidParameters
str:String
parseParameters()method 
protected function parseParameters(entry:FunctionEntry, local:Boolean):ArrayParameters
entry:FunctionEntry
 
local:Boolean

Returns
Array
setupGrid()method 
protected function setupGrid(functions:Array):GridPanelParameters
functions:Array

Returns
GridPanel