Creating Listeners
GUI Designer enables you to create listeners for components. The components that have listeners, are
marked with
a special icon
that shows up when such component
is selected. From the components in the Form Workspace and in the Components tree view, you can quickly
navigate
to the respective source code.
To create a listener
- Select component in the Form Workspace, or in the Components tree view.
- On the context menu, choose Create Listener, or press Ctrl+O.
- From the Create Listener pop-up menu, select the desired listener type.
- In the Select Method to Override dialog box, select the desired method. Optionally, specify whether you want the JavaDoc comment for this method to be copied to the target file, and press OK. The stub method that overrides the specified method, is added to the bound class.
- If you would like modify the body of the stub method, edit the Overridden Method Body file template:
In the File Templates dialog, open the Code tab, and edit the template as required.
To navigate from a component to listener
See Also
Reference:
Last modified: 13 July 2016