Packagecom.divillysausages.gameobjeditor.component
Classpublic class WatchComponent
InheritanceWatchComponent Inheritance GOEComponent Inheritance Object

The component we use when we want to just watch a variable, or when we try to edit a variable that's just read-only



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
  
WatchComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)
Creates a new WatchComponent
WatchComponent
 Inherited
destroy():void
Destroys the component and clears it for garbage collection
GOEComponent
  
update():void
[override] Updates the WatchComponent to always match our object's variable
WatchComponent
Constructor Detail
WatchComponent()Constructor
public function WatchComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0)

Creates a new WatchComponent

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
update()method
override public function update():void

Updates the WatchComponent to always match our object's variable