com.bstek.dorado.view
public abstract class ClientEventSupportedElement extends AbstractViewElement implements ClientEventSupported
Constructor and Description |
---|
ClientEventSupportedElement() |
Modifier and Type | Method and Description |
---|---|
void |
addClientEventListener(java.lang.String eventName,
ClientEvent eventListener)
添加一个事件监听器。
|
void |
clearClientEventListeners(java.lang.String eventName)
清除所有某事件中的监听器。
|
protected ClientEventHolder |
createClientEventHolder() |
java.util.Map<java.lang.String,java.util.List<ClientEvent>> |
getAllClientEventListeners()
返回所有已添加的事件监听器。
|
java.util.List<ClientEvent> |
getClientEventListeners(java.lang.String eventName)
根据事件名返回所有已添加的事件监听器。
|
getId, getInnerElements, getMetaData, getParent, getTags, getUserData, getView, isIgnored, registerInnerElement, setId, setIgnored, setMetaData, setParent, setTags, setUserData, unregisterInnerElement
protected ClientEventHolder createClientEventHolder()
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.