com.bstek.dorado.common.event
public class ClientEventHolder extends java.lang.Object
Constructor and Description |
---|
ClientEventHolder(java.lang.Class<? extends ClientEventSupported> ownerType) |
ClientEventHolder(ClientEventSupported owner) |
Modifier and Type | Method and Description |
---|---|
void |
addClientEventListener(java.lang.String eventName,
ClientEvent eventListener)
添加一个事件监听器。
|
protected void |
checkEventAvailable(java.lang.String eventName) |
void |
clearClientEventListeners(java.lang.String eventName)
清除所有某事件中的监听器。
|
java.util.Map<java.lang.String,java.util.List<ClientEvent>> |
getAllClientEventListeners()
返回所有已添加的事件监听器。
|
java.util.List<ClientEvent> |
getClientEventListeners(java.lang.String eventName)
根据事件名返回所有已添加的事件监听器。
|
public ClientEventHolder(java.lang.Class<? extends ClientEventSupported> ownerType)
ownerType
- 宿主对象的Class类型public ClientEventHolder(ClientEventSupported owner)
owner
- 宿主对象public void addClientEventListener(java.lang.String eventName, ClientEvent eventListener)
eventName
- 事件名eventListener
- 事件监听器protected void checkEventAvailable(java.lang.String eventName)
public java.util.List<ClientEvent> getClientEventListeners(java.lang.String eventName)
eventName
- 事件名public void clearClientEventListeners(java.lang.String eventName)
eventName
- 事件名public java.util.Map<java.lang.String,java.util.List<ClientEvent>> getAllClientEventListeners()
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.