WT Toolkit 0.3.2

Class wtObject

Object
   |
   +--wtObject
Direct Known Subclasses:
wtWindowManager, wtWidget, wtVectorView, wtInput, wtVectorWidget, wtForm, wtGraphVertex, wtNotebookPage, _wtAsyncRPC, wtGraph

class wtObject


wtObject is the base class of most other classes in WT Toolkit. It simulates weak references and a proxy pattern such that memory-expensive objects (e.g. DOM nodes) can be referenced from other objects via a very cheap object. This helps mitigate the lapsed listener problem and avoids circular referencing memory leaks in Internet Explorer 6.
Defined in wt_core.js


Constructor Summary
wtObject()
            Constructs a wtObject
 
Method Summary
 void addDependency(<wtObject> obj)
           Assigns a dependency relation to this object for garbage collection purpose.
 void connect(<String> connId, <String> signalName, <wtObject> target, <String> slotName)
           Connects a signal to a slot.
 void disconnect(<String> connId, <String> signalName)
           Disconnects a signal from a slot.
 void emit(<String> signalName, <Object> evt)
           Emits a signal with an event argument.
 void endProxy()
           Disconnects the weak reference and removes the memory expensive object from the weak reference table.
 Object get(<String> name)
           Tells the value of an attribute under the weakly referenced image.
 void removeSignal(<String> signalName)
           Removes a named signl
 void removeSlot(<String> slotName)
           Removes a named slot
 void set(<String> name, <Object> value)
           Sets an attribute value under the weakly referenced image.
 void setSignal(<String> signalName)
           Creates a named signal
 void setSlot(<String> slotName, <Function> func)
           Assigned an event handler function to a named slot.
 void startProxy(<String> obj, <String> id)
           Establishes a weak reference link to a memory expensive object.
 String toString()
           Tells the string ID of the weak reference.

Constructor Detail

wtObject

wtObject()

Method Detail

addDependency

void addDependency(<wtObject> obj)

connect

void connect(<String> connId, <String> signalName, <wtObject> target, <String> slotName)

disconnect

void disconnect(<String> connId, <String> signalName)

emit

void emit(<String> signalName, <Object> evt)

endProxy

void endProxy()

get

Object get(<String> name)

removeSignal

void removeSignal(<String> signalName)

removeSlot

void removeSlot(<String> slotName)

set

void set(<String> name, <Object> value)

setSignal

void setSignal(<String> signalName)

setSlot

void setSlot(<String> slotName, <Function> func)

startProxy

void startProxy(<String> obj, <String> id)

toString

String toString()

WT Toolkit 0.3.2

Documentation generated by JSDoc on Tue Apr 10 22:43:45 2007