| Frames | No Frames |
Class Summary | |
| xp.events.Broadcaster | A class for broadcasting messages. |
| xp.events.ButtonEditorEvent | Broadcast ButtonEditor event. |
| xp.events.ChartMouseEvent | An event broadcast when the mouse intereacts with chart data points. |
| xp.events.CommandEvent | Broadcast when a command is fired. |
| xp.events.CompletedEvent | Broadcast a completed event. |
| xp.events.ContentLoaderListener | ContentLoaderListener |
| xp.events.DialogResultEvent | DialogResultEvent Broadcast when a dialog is closed. |
| xp.events.DragDropEvent | DragDropEvent An event raiased when dragging and dropping. The event is cancelable. Set the cancel property to true to cancel the action. |
| xp.events.Event | The base class for all events. This class is also used for all events without event arguments. |
| xp.events.EventBroadcaster | A class for broadcasting messages. |
| xp.events.EventDelegate | The EventDelegate class creates a DOM3 compliant wrapper to let you invoke an event handler in the context of the original object, rather than in the context of the second object with optional arguments |
| xp.events.EventDispatcher | EventDispatcher |
| xp.events.EventHandler | The EventHandler class provides support for dynamically generating event listeners whose methods execute a simple statement involving an incoming event object and a target object You don't generally deal directly with EventHandler instances. Instead, you use the EventHandler create methods to create an object that implements a listener interface. This listener object uses an EventHandler object behind the scenes to encapsulate information about the event, the object on which to perform an action when the event occurs, the action (method) to be performed, and any argument to the method. The simplest use of EventHandler is to install a listener that calls a method on the target object with no arguments. In the following example we create a listener that invokes the toFront method on an instance of Frame myButton.addEventListener(EventHandler.create(frame, "toFront")); When myButton is pressed, the statement frame.toFront() will be executed. One could get the same effect using the Delegate class The next simplest use of EventHandler is to extract a property value from the first argument of the method in the listener interface (typically an event object) and use it to set the value of a property in the target object. In the following example we create an EventListener that sets the nextFocusableComponent property of the target object to the value of the "source" property of the event. EventHandler.create(target, "nextFocusableComponent", "source") Probably the most common use of EventHandler is to extract a property value from the source of the event object and set this value as the value of a property of the target object. In the following example we create a listener that sets the "label" property of the target object to the value of the "text" property of the source (the value of the "source" property) of the event. EventHandler.createHandler(button, "label", "source.text") The event property may be be "qualified" with an arbitrary number of property prefixes delimited with the "." character. The "qualifying" names that appear before the "." characters are taken as the names of properties that should be applied, left-most first, to the event object. For example, the following listener EventHandler.createHandler(source, "a", "b.c.d") might be written as the following inner class (assuming all the properties had canonical getter methods and returned the appropriate types): //Equivalent code using an inner class instead of EventHandler. var actionListener = { source:this, handleEvent:function(e:Event) { source.setA(e.target.getB().getC().isD()); } } |
| xp.events.EventTypes | Event type constants and definitions. |
| xp.events.FaultEvent | Broadcast a fault event. |
| xp.events.HotKeyListener | |
| xp.events.ItemChangeEvent | Broadcast when the an item is changing |
| xp.events.ItemEvent | An event broadcast with a collection item. |
| xp.events.KeyEvent | Broadcast when a key is pressed or released. |
| xp.events.KeyListener | KeyListener Listens for key events and callsback to keyUp(code) or keyDown(code) methods in the parent |
| xp.events.ListItemEvent | An event raised by a List Item when the mouse rolls over or out. |
| xp.events.MarkerEvent | An event broadcast when a marker needs to be shown. |
| xp.events.MenuEvent | Broadcast when a Menu is about to be activated. |
| xp.events.MenuItemEvent | Broadcast when a MenuItem is selected. |
| xp.events.ModelChangedEvent | Broadcast when items in the collection have been modified in some way. |
| xp.events.MouseListener | Listens for mouse events and callsback to mouseHandler method in the parent |
| xp.events.MouseMoveEvent | An event broadcast when some action is taken in relation to a cell |
| xp.events.MouseWheelEvent | An event broadcast when some action is taken in relation to a cell |
| xp.events.MouseWheelListener | Listens for mouse wheel events and callsback to mouseWheel(delta:Number, target:MovieClip) method in the parent |
| xp.events.NodeEvent | Class for all Node Events |
| xp.events.PanelEvent | PanelEvent Broadcast Panel event. |
| xp.events.ProgressEvent | Broadcast Triggered while content is loading. |
| xp.events.PropertyChangedEvent | Broadcast when an property changes. |
| xp.events.ResponseEvent | Broadcast a questionable event. |
| xp.events.ResultEvent | Broadcast a result event. |
| xp.events.RPCStatusEvent | Broadcast when a call to a service is initiated, to inform the user of the status of the operation. |
| xp.events.RPCValidateParamsEvent | Broadcast when a the params on a call need to be validated |
| xp.events.StateEvent | Broadcast a boolean state event. |
| xp.events.ValueChangedEvent | Broadcast when a controls value has been modified in some way. |
| xp.events.XMLModelChangedEvent | Broadcast when nodes in an xml document have been modified in some way. |
Interface Summary | |
| xp.events.IDispatcher | Interface implemented by all event dispatchers |
| xp.events.IRoutable | Interface implemented by all objects that can route events. |