}
};
add(hideInPortlet);
hideInPortlet.add(new InspectorBug("inspector", page));
add(new Label("exampleTitle", exampleTitle));
Link link = new Link("sources")
{
@SuppressWarnings("unchecked")
@Override
public void onClick()
{
setResponsePage(new SourcesPage((Class<? extends Page>)getPage().getClass()));
}
};
add(link);
PopupSettings settings = new PopupSettings(PageMap.forName("sources"),
PopupSettings.RESIZABLE);
settings.setWidth(800);
settings.setHeight(600);
settings.setWindowName("sources");
link.setPopupSettings(settings);
}