Action editor

If you are not familiar with the concept of Actions, first read this excerpt from "The Java Tutorial":
"If you have two ore more components that perform the same function, consider using an Action object to implement the function. An Action object is an ActionListener that provides not only action-event handling, but also centralized handling of the text, icon, and enabled state of toolbar buttons or menu items. By adding an Action to a JToolBar, JMenu or JPopupMenu, you get the following features:
A new JButton (for JToolBar) or JMenuItem (for JMenu and JPopupMenu) that is automatically added to the toolbar or menu. The button or menu item automatically uses the icon and text specified by the Action.
A registered action listener (the Action object) for the button or menu item.
Centralized handling of the button or menu item's enabled state."

With RADi, you once define a named Action object and then you can to another component (of the same layout) as value for its action property.
Note: Action objects appear as member fields of exported classes. (Just like components, an action can be anonymous or non-anonymous.) You can retrieve an action's property values with code like this:
Object ttt = action.getValue(Action.SHORT_DESCRIPTION);

Tip: To keep track of all attached actions, press <A>, this all actions' names together with their action methods as long as the key is pressed.


The Edit Action dialog

Select existing Action: Select an Action object you want to edit.
Variable name: Name of the action and name of the member field.
Anonymous: An anonymous action will not be exported if 'Export anonymous members' is deselected in the 'Export Layout Classes' dialog.
Initially enabled: If the action is disabled, its component(s) will be painted disabled, too.
Forward to method: Fill in the name of the method you want to be called when the ActionListener of this action is triggered.
Forward event: Decide if the ActionEvent shall be forwarded to the defined method or not.
Name: The text of the button or menu item to which you attach this Action.
Enable text for toolbar button: Show or hide a toolbar button's label text.
Action command: A string you can retrieve with ActionEvent.getActionCommand().
Short description: The tooltip text you want to be displayed.
Enable tooltip for menu item: In general you don't want a menu item's tooltip to be displayed, then disable this option.
Long description: You could use this for context-sensitive help.
Mnemonic: Displayed mnemonic.
Accelerator: You can define a for the action.
Icon: Icon to be displayed by menu items and toolbar buttons.

See also:
Exporting layout classes
Property editors
Event editors
Custom editors
Internationalization