The Java EE 5 Tutorial

Summary of the Application Classes

Table 13–2 summarizes all the classes needed to implement the image map component.

Table 13–2 Image Map Classes

Class 

Function 

AreaSelectedEvent

The ActionEvent indicating that an AreaComponent from the MapComponent has been selected.

AreaTag

The tag handler that implements the area custom tag.

MapTag

The tag handler that implements the map custom tag.

AreaComponent

The class that defines AreaComponent, which corresponds to the area custom tag.

MapComponent

The class that defines MapComponent, which corresponds to the map custom tag.

AreaRenderer

This Renderer performs the delegated rendering for AreaComponent.

ImageArea

The bean that stores the shape and coordinates of the hotspots. 

LocaleBean

The backing bean for the chooselocale.jsp page.

The Duke's Bookstore source directory, called bookstore-dir, is tut-install/javaeetutorial5/examples/web/bookstore6/src/java/com/sun/bookstore6/. The event and listener classes are located in bookstore-dir/listeners/. The tag handlers are located in bookstore-dir/taglib/. The component classes are located in bookstore-dir/components/. The renderer classes are located in bookstore-dir/renderers/. ImageArea is located in bookstore-dir/model/. LocaleBean is located in bookstore-dir/backing/.