The handler Tag

You use the handler tag to write an event handler. This tag’s attributes are summarized in Table 5.1.

Table 5.1. The handler tag’s attributes
NameUsageTypeDefaultAccessibility
argsTag onlystring final
 Description. The list of arguments for this event handler.
methodTag onlystring final
 Description. The name of the method that will be invoked by this handler.
nameTag onlyreferencethisfinal
 Description. The name of the event this handler must respond to.
referenceTag onlystring 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset