|
JSignal | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--GLOBALS
Method Summary | |
<static> void
|
j_signal_delete(<int> sid)
Removes a signal from the registry; along with all registered handlers. |
<static> void
|
j_signal_emit(<Object> obj, <int> sid, <Array> data)
Emits a signal. |
<static> void
|
j_signal_emit_by_name(<Object> obj, <int> name, <Array> data)
Similiar to j_signal_emit but accepts a signal name instead of a signal identifier. |
<static> void
|
j_signal_handler_block(<Object> obj, <int> hid)
Temporarily deactivates the specified handler. |
<static> int
|
j_signal_handler_connect(<Object> obj, <String> name, <Function> cb, <Object> data)
Connects a callback function to a signal for a particular object. |
<static> int
|
j_signal_handler_connect_global(<String> name, <Function> cb, <Object> data)
Connects a callback function to a signal that is registered as a global signal (created via j_signal_new_global). |
<static> void
|
j_signal_handler_disconnect(<Object> obj, <int> hid)
Disconnects (deletes) a specified handler. |
<static> boolean
|
j_signal_handler_is_connected(<Object> obj, <int> hid)
Determines if a specified handler is connected to the given instance. |
<static> void
|
j_signal_handler_unblock(<Object> obj, <int> hid)
Removes a block placed upon a handler. |
<static> Array
|
j_signal_list_all_ids(<ObjectType> ctype)
Retrieves a list of signal identifiers for a given class type. |
<static> Array
|
j_signal_list_ids(<ObjectType> ctype)
Retrieves a list of signal identifiers registered by the given class type. |
<static> int
|
j_signal_lookup(<String> name, <ObjectType> ctype)
Given the name of the signal and the class it connects to, gets the signal's identifier. |
<static> String
|
j_signal_name(<int> sid)
Given the signal's identifier returns the signal's name. |
<static> int
|
j_signal_new(<String> name, <ObjectType> ctype)
Registers a new signal. |
<static> int
|
j_signal_new_global(<String> name)
Registers a new global signal that can be used (emitted) by any and all objects. |
Method Detail |
<static> void j_signal_delete(<int> sid)
sid
- The signal identifier to be removed.
<static> void j_signal_emit(<Object> obj, <int> sid, <Array> data)
obj
- The instance emitting the signal
sid
- The id of the signal to emit
data
- Collection of name => value pairs detailing the event
<static> void j_signal_emit_by_name(<Object> obj, <int> name, <Array> data)
objparameter has - within its prototype - a member named
parentwhich points to the constructor of the object's superclass.
obj
- The instance emitting the signal
name
- The name of the signal to emit
data
- Collection of name => value pairs detailing the event
<static> void j_signal_handler_block(<Object> obj, <int> hid)
obj
- The instance on which the handler is defined
hid
- The handler's identifier
<static> int j_signal_handler_connect(<Object> obj, <String> name, <Function> cb, <Object> data)
obj
- The instance to register to
name
- The name of the signal to recieve
cb
- A pointer to the callback function
data
- Data to be passed to the callback pointer.
<static> int j_signal_handler_connect_global(<String> name, <Function> cb, <Object> data)
name
- The name of the signal to recieve
cb
- A pointer to the callback function
data
- Data to be passed to the callback pointer.
<static> void j_signal_handler_disconnect(<Object> obj, <int> hid)
obj
- Instance the handler is currently attached to
hid
- Handler identifier
<static> boolean j_signal_handler_is_connected(<Object> obj, <int> hid)
obj
- handler-owning instance
hid
- Handler identifier
<static> void j_signal_handler_unblock(<Object> obj, <int> hid)
obj
- The instance on which the handler is defined
hid
- The handler's identifier
<static> Array j_signal_list_all_ids(<ObjectType> ctype)
ctype
- A reference to the class constructor
<static> Array j_signal_list_ids(<ObjectType> ctype)
ctype
- A reference to the class constructor
<static> int j_signal_lookup(<String> name, <ObjectType> ctype)
name
- The signals name
ctype
- The type that the signal is registered under
<static> String j_signal_name(<int> sid)
sid
- Signal identifier
<static> int j_signal_new(<String> name, <ObjectType> ctype)
name
- The name of the signal
ctype
- The class from which this signal will originate.
<static> int j_signal_new_global(<String> name)
name
- The name of the signal
|
JSignal | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |