AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
listEventHandlers (String typename) yoix.event
listEventHandlers (Object obj)  
listEventHandlers ()  
 
Returns an Array of String elements that form the maximal list of event handlers that the specified object type will accept. Note that handlers not directly related to the object type, such as menu event handlers, are not listed. If no arguments is supplied, the list of all possible event handlers is generated. To list the handlers for a specific object type, either a String argument that is the type name or an Object argument that is an instance of the type itself can be supplied.

Types should be limited to GUI component objects as those are the only object with which event handlers function. If the supplied type is not appropriate, a NULL is returned, otherwise an Array of at least size zero is returned. If the supplied type name corresponds to no existing type, an error exception is generated.
 
 Example:   The program,
import yoix.*.*;

Array  handlers;

handlers = listEventHandlers("JButton");
while (handlers@sizeof > 0)
    printf("%s\n", *handlers++);
prints all event handlers that a JButton can use.
 
 Return:   Array
 
 See Also:   actionPerformed, adjustmentValueChanged, caretUpdate, componentHidden, componentMoved, componentResized, componentShown, dragDropEnd, dragEnter, dragExit, dragGestureRecognized, dragMouseMoved, dragOver, drop, dropActionChanged, focusGained, focusLost, hyperlinkActivated, hyperlinkEntered, hyperlinkExited, invocationAction, invocationBrowse, invocationChange, invocationEdit, invocationEditImport, invocationEditKey, invocationRun, invocationSelection, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, stateChanged, textValueChanged, valueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened

 

Yoix is a registered trademark of AT&T Inc.