Packagecom.divillysausages.gameobjeditor.component
Classpublic class CheckboxComponent
InheritanceCheckboxComponent Inheritance GOEComponent Inheritance Object

The component we use by default when we're dealing with booleans



Public Properties
 PropertyDefined By
 InheritedhasReadAccess : Boolean
[read-only] Does this component edit a variable that has read access?
GOEComponent
 Inheritedheight : Number
[read-only] The height of the component
GOEComponent
 Inheritedtype : String
[read-only] The type of the component.
GOEComponent
 Inheritedwidth : Number
[read-only] The width of the component
GOEComponent
Protected Properties
 PropertyDefined By
 Inheritedm_component : Component = null
GOEComponent
 Inheritedm_editVar : EditableVar = null
GOEComponent
 Inheritedm_obj : * = null
GOEComponent
 Inheritedm_spacing : Number = 5.0
GOEComponent
Public Methods
 MethodDefined By
  
CheckboxComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new CheckboxComponent
CheckboxComponent
  
destroy():void
[override] Destroys the CheckboxComponent and clears it for garbage collection
CheckboxComponent
  
update():void
[override] Updates the CheckboxComponent to always match our object's variable
CheckboxComponent
Constructor Detail
CheckboxComponent()Constructor
public function CheckboxComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)

Creates a new CheckboxComponent

Parameters
obj:* — The object that we're dealing with
 
variable:EditableVar — The EditableVar object that holds our variable info
 
parent:DisplayObjectContainer (default = null) — The DisplayObjectContainer to add this component to
 
x:Number (default = 0.0) — The component x position
 
y:Number (default = 0.0) — The component y position
Method Detail
destroy()method
override public function destroy():void

Destroys the CheckboxComponent and clears it for garbage collection

update()method 
override public function update():void

Updates the CheckboxComponent to always match our object's variable