PublicEvent
From Web Computing Documentation
(Difference between revisions)
(Created page with "<div class="class_definition"> interface '''<big>PublicEvent</big>''' <T> </div> *henkolib **henkolib.events ***henkolib.events.PublicEvent") |
|||
Line 6: | Line 6: | ||
**henkolib.events |
**henkolib.events |
||
***[[PublicEvent|henkolib.events.PublicEvent]] |
***[[PublicEvent|henkolib.events.PublicEvent]] |
||
+ | |||
+ | ==Public functions== |
||
+ | |||
+ | <div class="class_function_definition"> |
||
+ | '''subscribe''' (func : T->Void) |
||
+ | </div> |
||
+ | :{| |
||
+ | |'''func''' |
||
+ | |Callback function. |
||
+ | |} |
||
+ | |||
+ | Subscribe the given callback function expecting the PublicEvent template object as a parameter, returning void. |
||
+ | |||
+ | <div class="class_function_definition"> |
||
+ | '''subscribe''' (func : T->Void) |
||
+ | </div> |
||
+ | :{| |
||
+ | |'''func''' |
||
+ | |Callback function. |
||
+ | |} |
||
+ | |||
+ | Unsubscribe the given callback function |
Revision as of 13:26, 16 August 2011
interface PublicEvent <T>
- henkolib
- henkolib.events
- henkolib.events.PublicEvent
- henkolib.events
Public functions
subscribe (func : T->Void)
func Callback function.
Subscribe the given callback function expecting the PublicEvent template object as a parameter, returning void.
subscribe (func : T->Void)
func Callback function.
Unsubscribe the given callback function