.addCircleArea(new BookmarkablePageLink<Page2>("page2", Page2.class), 160, 50, 35)
.addPolygonArea(new BookmarkablePageLink<Page3>("page3", Page3.class), 212, 79, 241, 4, 279, 54, 212, 79)
.add(RelativePathPrefixHandler.RELATIVE_PATH_BEHAVIOR));
// Popup example
PopupSettings popupSettings = new PopupSettings("popuppagemap").setHeight(500)
.setWidth(500);
add(new BookmarkablePageLink<Void>("popupLink", Popup.class).setPopupSettings(popupSettings));
// Popup example
add(new BookmarkablePageLink<Void>("popupButtonLink", Popup.class).setPopupSettings(popupSettings));
// External site link
add(new ExternalLink("google", "http://www.google.com", "Click this link to go to Google"));
// And that link as a popup
PopupSettings googlePopupSettings = new PopupSettings(PopupSettings.RESIZABLE |
PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
add(new ExternalLink("googlePopup", "http://www.google.com",
"Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));
// Shared resource link