com.bstek.dorado.common.event
public abstract class ClientEventSupportedObject extends java.lang.Object implements ClientEventSupported
Constructor and Description |
---|
ClientEventSupportedObject() |
Modifier and Type | Method and Description |
---|---|
void |
addClientEventListener(java.lang.String eventName,
ClientEvent eventListener)
添加一个事件监听器。
|
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 void addClientEventListener(java.lang.String eventName, ClientEvent eventListener)
ClientEventSupported
addClientEventListener
in interface ClientEventSupported
eventName
- 事件名。eventListener
- 事件监听器。public java.util.List<ClientEvent> getClientEventListeners(java.lang.String eventName)
ClientEventSupported
getClientEventListeners
in interface ClientEventSupported
eventName
- 事件名。public void clearClientEventListeners(java.lang.String eventName)
ClientEventSupported
clearClientEventListeners
in interface ClientEventSupported
eventName
- 事件名。public java.util.Map<java.lang.String,java.util.List<ClientEvent>> getAllClientEventListeners()
ClientEventSupported
getAllClientEventListeners
in interface ClientEventSupported
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.