|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AriaEventHandler
Specifies an event handler for Aria. Most of the common events are handled. The class's implementations are intended as a mixin for a panel class such as Page and should not be used directly
Copyright (c) Formaria Ltd., 2008
License: see license.txt
$Revision: 1.7 $
| Method Summary | |
|---|---|
MethodReference |
addHandler(java.lang.Object comp,
long eventType,
java.lang.String methodName)
Adds an event handler. |
MethodReference |
addHandler(java.lang.Object srcObj,
java.lang.String methodName,
java.lang.String adderMethod,
java.lang.String listenerInterface,
long eventMask,
java.lang.Object listener)
Adds a handler for action events |
void |
addHandler(PageSupport xpage,
java.lang.Object targetComp,
java.lang.String typeStr,
java.lang.String methodName)
|
void |
addListener(java.lang.Object comp,
java.lang.String listenerName,
java.lang.String argType,
java.lang.Object listener)
Adds a listener for an event type. |
void |
clearMouseClick()
Clear the mouse click tracking |
java.lang.reflect.Method |
findEvent(java.lang.Object src,
long eventType)
Lookup an event for a component. |
java.util.EventObject |
getCurrentEvent()
Get the current event |
ValidationHandler |
getValidationHandler()
Get the validation handler reference. |
boolean |
invoke(long eventType,
java.util.EventObject evt)
Invokes an event. |
boolean |
isFocusChangeSuppressed()
Check the focus change status |
void |
removeHandlers(java.lang.Object comp)
Remove all the event handlers for a particular object |
void |
suppressFocusEvents(boolean suppress)
Used by messageboxes and other dialogs to prevent the display of the dialog causing extra focus events from being fired. |
boolean |
wasMouseClicked()
A utility method used to determine if the last event corrseponds to a mouse click. |
boolean |
wasMouseDoubleClicked()
A utility method used to determine if the last event corrseponds to a mouse double click. |
boolean |
wasMouseRightClicked()
A utility method used to determine if the last event corrseponds to a mouse right click. |
| Method Detail |
|---|
ValidationHandler getValidationHandler()
boolean invoke(long eventType,
java.util.EventObject evt)
eventType - the event typeevt - the event object
void removeHandlers(java.lang.Object comp)
comp - the object whose events are being removed
MethodReference addHandler(java.lang.Object comp,
long eventType,
java.lang.String methodName)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
eventType - long value indicating the mask of the event to be handledcomp - the component that fires the eventmethodName - the method to be invoked in response to the object
java.lang.ClassNotFoundException - throw if the class cannot be located
java.lang.NoSuchMethodException - throw if the named method cannot be located
MethodReference addHandler(java.lang.Object srcObj,
java.lang.String methodName,
java.lang.String adderMethod,
java.lang.String listenerInterface,
long eventMask,
java.lang.Object listener)
srcObj - the menu item that fires the eventsmethodName - the method to be invoked in response to the action eventadderMethod - the adder method name e.g. addActionListenerlistenerInterface - the listener interface e.g. java.awt.event.ActionListenereventMask - the event mask e.g. AWTEvent.ACTION_EVENT_MASKlistener - the listener implementation, usually the page's this pointerActionListener,
ActionEvent
void addListener(java.lang.Object comp,
java.lang.String listenerName,
java.lang.String argType,
java.lang.Object listener)
comp - the component that fires eventslistenerName - the name of the listener interfaceargType - the listener argumentslistener - the listener implementation, usually the page's this pointervoid clearMouseClick()
boolean wasMouseClicked()
boolean wasMouseDoubleClicked()
boolean wasMouseRightClicked()
java.util.EventObject getCurrentEvent()
boolean isFocusChangeSuppressed()
void suppressFocusEvents(boolean suppress)
suppress - true to suppress focus events
java.lang.reflect.Method findEvent(java.lang.Object src,
long eventType)
src - The Object which contains the eventeventType - The id of the event required
void addHandler(PageSupport xpage,
java.lang.Object targetComp,
java.lang.String typeStr,
java.lang.String methodName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||