com.gwtext.client.core
Class EventManager
java.lang.Object
com.gwtext.client.core.EventManager
public class EventManager
- extends java.lang.Object
Registers event handlers that want to receive a normalized EventObject instead of the standard browser event and
provides several useful events directly.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventManager
public EventManager()
addListener
public static void addListener(com.google.gwt.user.client.Element element,
java.lang.String eventName,
EventCallback cb,
ListenerConfig config)
- Appends an event handler to an element.
- Parameters:
element
- the elementeventName
- the event namecb
- the callback to execute on eventconfig
- the listener config
onDocumentReady
public static void onDocumentReady(Function cb)
- Fires when the document is ready (before onload and before images are loaded).
Can alternatively use the GWT entry point mechanism.
- Parameters:
cb
- callback to execute
addTextResizeListener
public static void addTextResizeListener(TextResizeListener listener)