Package | com.jacksondunstan.signals |
Class | public class Signal1 |
Property | Defined by | ||
---|---|---|---|
numSlots : uint [read-only]
Get the number of slots the signal has
| Signal1 |
Method | Defined by | ||
---|---|---|---|
Add a slot to be called during dispatch()
| Signal1 | ||
dispatch(arg:*):void
Call all of the slots the signal has.
| Signal1 | ||
getSlotIndex(slot:Slot1):int
Get the index of a slot in the list of slots this signal has
| Signal1 | ||
Check if the signal has a slot
| Signal1 | ||
removeAllSlots():void
Remove all slots so that they are not called during dispatch()
| Signal1 | ||
removeSlot(slot:Slot1):void
Remove a slot so that it is not called during dispatch()
| Signal1 |
numSlots | property |
numSlots:uint
[read-only]Get the number of slots the signal has
Implementation public function get numSlots():uint
addSlot | () | method |
public function addSlot(slot:Slot1):void
Add a slot to be called during dispatch()
Parametersslot:Slot1 — Slot to add. This function has no effect if the slot is
null or the signal already has the slot.
|
dispatch | () | method |
public function dispatch(arg:*):void
Call all of the slots the signal has. Calls to addSlot() or removeSlot() by any slot in response to these calls will not change which slots are called or the order in which they are called during this particular dispatch.
Parametersarg:* — Argument to pass to the slots
|
getSlotIndex | () | method |
public function getSlotIndex(slot:Slot1):int
Get the index of a slot in the list of slots this signal has
Parametersslot:Slot1 |
int — The index of the given slot in the list of slots this signal
has or -1 if this signal does not have the given slot
|
hasSlot | () | method |
public function hasSlot(slot:Slot1):Boolean
Check if the signal has a slot
Parametersslot:Slot1 — Slot to check
|
Boolean — If the signal has the given slot
|
removeAllSlots | () | method |
public function removeAllSlots():void
Remove all slots so that they are not called during dispatch()
removeSlot | () | method |
public function removeSlot(slot:Slot1):void
Remove a slot so that it is not called during dispatch()
Parametersslot:Slot1 — Slot to remove. This function has no effect if the slot
is null or the signal does not have the slot.
|