Main Page | Packages | Class Tree | Index | Help

Package xp.events


Class Summary

xp.events.BroadcasterA class for broadcasting messages.

xp.events.ButtonEditorEventBroadcast ButtonEditor event.


xp.events.ChartMouseEventAn event broadcast when the mouse intereacts with chart data points.

xp.events.CommandEventBroadcast when a command is fired.

xp.events.CompletedEventBroadcast a completed event.

xp.events.ContentLoaderListenerContentLoaderListener


xp.events.DialogResultEventDialogResultEvent
Broadcast when a dialog is closed.


xp.events.DragDropEventDragDropEvent
An event raiased when dragging and dropping. The event is cancelable. Set the cancel property to true to cancel the action.


xp.events.EventThe base class for all events. This class is also used for all events without event arguments.

xp.events.EventBroadcasterA class for broadcasting messages.

xp.events.EventDelegateThe 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.EventDispatcherEventDispatcher


xp.events.EventHandlerThe 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.EventTypesEvent type constants and definitions.

xp.events.FaultEventBroadcast a fault event.

xp.events.HotKeyListener

xp.events.ItemChangeEventBroadcast when the an item is changing

xp.events.ItemEventAn event broadcast with a collection item.

xp.events.KeyEventBroadcast when a key is pressed or released.

xp.events.KeyListenerKeyListener Listens for key events and callsback to keyUp(code) or keyDown(code) methods in the parent

xp.events.ListItemEventAn event raised by a List Item when the mouse rolls over or out.

xp.events.MarkerEventAn event broadcast when a marker needs to be shown.

xp.events.MenuEventBroadcast when a Menu is about to be activated.

xp.events.MenuItemEventBroadcast when a MenuItem is selected.

xp.events.ModelChangedEventBroadcast when items in the collection have been modified in some way.

xp.events.MouseListenerListens for mouse events and callsback to mouseHandler method in the parent

xp.events.MouseMoveEventAn event broadcast when some action is taken in relation to a cell

xp.events.MouseWheelEventAn event broadcast when some action is taken in relation to a cell

xp.events.MouseWheelListenerListens for mouse wheel events and callsback to mouseWheel(delta:Number, target:MovieClip) method in the parent

xp.events.NodeEventClass for all Node Events

xp.events.PanelEventPanelEvent
Broadcast Panel event.


xp.events.ProgressEventBroadcast Triggered while content is loading.

xp.events.PropertyChangedEventBroadcast when an property changes.

xp.events.ResponseEventBroadcast a questionable event.

xp.events.ResultEventBroadcast a result event.

xp.events.RPCStatusEventBroadcast when a call to a service is initiated, to inform the user of the status of the operation.

xp.events.RPCValidateParamsEventBroadcast when a the params on a call need to be validated

xp.events.StateEventBroadcast a boolean state event.

xp.events.ValueChangedEventBroadcast when a controls value has been modified in some way.

xp.events.XMLModelChangedEventBroadcast when nodes in an xml document have been modified in some way.

Interface Summary

xp.events.IDispatcherInterface implemented by all event dispatchers

xp.events.IRoutableInterface implemented by all objects that can route events.



Generated on 10/30/2005 9:34:02 PM by AS2Doc