Packagecom.whirled.contrib.avrg.probe
Classpublic class ParameterPanel
InheritanceParameterPanel Inheritance flash.display.Sprite

A panel for displaying controls for an array of Parameter objects and returning the parsed values. Also displays a title button intended to be used to calling the parent function.



Public Properties
 PropertyDefined by
  callButton : Button
[read-only] The button in the panel which will call the function.
ParameterPanel
Protected Properties
 PropertyDefined by
  _call : Button
ParameterPanel
  _entries : Array
ParameterPanel
  _grid : GridPanel
ParameterPanel
  _serverCall : Button
ParameterPanel
Public Methods
 MethodDefined by
  
ParameterPanel(parameters:Array, title:String = null)
Creates a new parameter panel.
ParameterPanel
  
getInputs():Array
Gets all the input values as text.
ParameterPanel
Protected Methods
 MethodDefined by
  
ParameterPanel
  
ParameterPanel
  
setNull(entry:ParameterEntry, button:Button, isNull:Boolean):void
ParameterPanel
Public Constants
 ConstantDefined by
  CELL_HEIGHT : int = 25
[static] Fixed height of a parameter input line.
ParameterPanel
Property detail
_callproperty
protected var _call:Button
callButtonproperty 
callButton:Button  [read-only]

The button in the panel which will call the function.

Implementation
    public function get callButton():Button
_entriesproperty 
protected var _entries:Array
_gridproperty 
protected var _grid:GridPanel
_serverCallproperty 
protected var _serverCall:Button
Constructor detail
ParameterPanel()constructor
public function ParameterPanel(parameters:Array, title:String = null)

Creates a new parameter panel. The title will be used as the call button.

Parameters
parameters:Array — array of Parameter objects to display controls for
 
title:String (default = null) — the title of the panel
Method detail
getInputs()method
public function getInputs():Array

Gets all the input values as text. Values from the first omitted optional parameter are not included.

Returns
Array — array of Strings, one per parameter that is enabled
handleLabelClick()method 
protected function handleLabelClick(evt:ButtonEvent):voidParameters
evt:ButtonEvent
handleNullClick()method 
protected function handleNullClick(evt:ButtonEvent):voidParameters
evt:ButtonEvent
setNull()method 
protected function setNull(entry:ParameterEntry, button:Button, isNull:Boolean):voidParameters
entry:ParameterEntry
 
button:Button
 
isNull:Boolean
Constant detail
CELL_HEIGHTconstant
public static const CELL_HEIGHT:int = 25

Fixed height of a parameter input line.