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

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YDAT | YWAIT | Byzgraf | FAQs
actionPerformed (ActionEvent event) yoix.event
 
The actionPerformed event handler is a special user-defined Function that can be added to a component when it is created and that will be called automatically with a single ActionEvent argument as described below. An actionPerformed event handler can only be added via addEventHandler after a component is created, but an existing actionPerformed event handler can be assigned new values. Assigning NULL to actionPerformed disables its functionality until a non-NULL value is assigned to it.

The actionPerformed event handler is triggered in the following components under the circumstances indicated:
Button when the button is pressed
Canvas when a mouse click occurs
JButton when the button is pressed
JCanvas when a mouse click occurs
JCheckBox when the box is checked or unchecked
JCheckBoxMenuItem when the menu item is checked or unchecked
JFileChooser when the buttons within the file chooser are pressed
JMenuItem when the menu item is selected
JRadioButton when the button is set or unset
JRadioButtonMenuItem when the menu item is set or unset
JTextCanvas when a mouse click occurs
JTextField when the keyboard key corresponding to key code yoix.swing.KeyCode.VK_ENTER is pressed
TableColumn when a selection is made within the column
TextCanvas when a mouse click occurs
TextField when the keyboard key corresponding to key code yoix.awt.KeyCode.VK_ENTER is pressed
Additionally, components that have a popup field for accommodating one of PopupMenu or JPopupMenu use an actionPerformed event handler for menu item selection, in which case the command field of the ActionEvent contains the text of the selected menu item. Similarly, components that have a menubar field also use the actionPerformed event handler for menu item selection.
 
 Return:   none
 
 See Also:   ActionEvent, addEventHandler, adjustmentValueChanged, caretUpdate, componentHidden, componentMoved, componentResized, componentShown, dragDropEnd, dragEnter, dragExit, dragGestureRecognized, dragMouseMoved, dragOver, drop, dropActionChanged, Event, focusGained, focusLost, hyperlinkActivated, hyperlinkEntered, hyperlinkExited, invocationAction, invocationBrowse, invocationChange, invocationEdit, invocationEditKey, invocationRun, invocationSelection, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, removeEventHandler, stateChanged, textValueChanged, valueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened

 

Yoix is a registered trademark of AT&T Intellectual Property.