public class EventDispatcher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventDispatcher.AbstractEventListener |
static interface |
EventDispatcher.Event |
| Constructor and Description |
|---|
EventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEventListener(EventDispatcher.AbstractEventListener listener)
add event listener
|
static void |
clear()
For only test purpose
|
static void |
fireEvent(EventDispatcher.Event event)
fire event, notify listeners.
|
public static void addEventListener(EventDispatcher.AbstractEventListener listener)
public static void fireEvent(EventDispatcher.Event event)
public static void clear()
Copyright © 2018–2019 Alibaba Group. All rights reserved.