Packagecom.divillysausages.gameobjeditor.component
Classpublic class GOEComponent
InheritanceGOEComponent Inheritance Object
Subclasses CheckboxComponent, ColourComponent, ComboBoxComponent, InputComponent, SliderComponent, StepperComponent, WatchComponent

The base class for a Game Object Editor component



Public Properties
 PropertyDefined By
  hasReadAccess : Boolean
[read-only] Does this component edit a variable that has read access?
GOEComponent
  height : Number
[read-only] The height of the component
GOEComponent
  type : String
[read-only] The type of the component.
GOEComponent
  width : Number
[read-only] The width of the component
GOEComponent
Protected Properties
 PropertyDefined By
  m_component : Component = null
GOEComponent
  m_editVar : EditableVar = null
GOEComponent
  m_obj : * = null
GOEComponent
  m_spacing : Number = 5.0
GOEComponent
Public Methods
 MethodDefined By
  
GOEComponent(obj:*, variable:EditableVar)
Creates the new component
GOEComponent
  
destroy():void
Destroys the component and clears it for garbage collection
GOEComponent
  
update():void
Updates the info on the component
GOEComponent
Property Detail
hasReadAccessproperty
hasReadAccess:Boolean  [read-only]

Does this component edit a variable that has read access?


Implementation
    public function get hasReadAccess():Boolean
heightproperty 
height:Number  [read-only]

The height of the component


Implementation
    public function get height():Number
m_componentproperty 
protected var m_component:Component = null

m_editVarproperty 
protected var m_editVar:EditableVar = null

m_objproperty 
protected var m_obj:* = null

m_spacingproperty 
protected var m_spacing:Number = 5.0

typeproperty 
type:String  [read-only]

The type of the component. Use the statics from the EditableTypes class


Implementation
    public function get type():String
widthproperty 
width:Number  [read-only]

The width of the component


Implementation
    public function get width():Number
Constructor Detail
GOEComponent()Constructor
public function GOEComponent(obj:*, variable:EditableVar)

Creates the new component

Parameters
obj:* — The object that we're editing
 
variable:EditableVar — All the info about the variable that we're editing
Method Detail
destroy()method
public function destroy():void

Destroys the component and clears it for garbage collection

update()method 
public function update():void

Updates the info on the component