You use the handler tag to write an event handler. This tag’s attributes are summarized in Table 5.1.
Name | Usage | Type | Default | Accessibility |
---|---|---|---|---|
args | Tag only | string | final | |
Description. The list of arguments for this event handler. | ||||
method | Tag only | string | final | |
Description. The name of the method that will be invoked by this handler. | ||||
name | Tag only | reference | this | final |
Description. The name of the event this handler must respond to. | ||||
reference | Tag only | string | final | |
Description. The name of the variable that will be set to this object when the application started. |
You will see examples of the handler tag in the sections to come.