本文整理匯總了Java中org.apache.wicket.protocol.http.WebApplication.mountPage方法的典型用法代碼示例。如果您正苦於以下問題:Java WebApplication.mountPage方法的具體用法?Java WebApplication.mountPage怎麽用?Java WebApplication.mountPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.wicket.protocol.http.WebApplication
的用法示例。
在下文中一共展示了WebApplication.mountPage方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: mountPages
import org.apache.wicket.protocol.http.WebApplication; //導入方法依賴的package包/類
public void mountPages(WebApplication webApplication) {
// First section is mounted behind the base url (ie. /console/)
if (!menuSections.isEmpty()) {
webApplication.mountPage(getBaseUrl() + "/", menuSections.get(0).getPageClass());
}
// Each section is mounted with its items
for (ConsoleMenuSection menuSection : menuSections) {
mountMenuSection(menuSection, webApplication);
}
}
示例2: mountMenuSection
import org.apache.wicket.protocol.http.WebApplication; //導入方法依賴的package包/類
private void mountMenuSection(ConsoleMenuSection menuSection, WebApplication webApplication) {
String menuSectionBaseUrl = getBaseUrl() + menuSection.getUrlFragment();
webApplication.mountPage(menuSectionBaseUrl + "/", menuSection.getPageClass());
for (ConsoleMenuItem menuItem : menuSection.getMenuItems()) {
webApplication.mountPage(menuSectionBaseUrl + menuItem.getUrlFragment() + "/", menuItem.getPageClass());
for (ConsoleMenuItemRelatedPage relatedPage : menuItem.getRelatedPages()) {
webApplication.mountPage(menuSectionBaseUrl + menuItem.getUrlFragment() + relatedPage.getUrlFragment()
+ "/", relatedPage.getPageClass());
}
}
}
示例3: init
import org.apache.wicket.protocol.http.WebApplication; //導入方法依賴的package包/類
@Override
public void init(WebApplication webApplication) {
DebugPageManagerProvider pageManager = new DebugPageManagerProvider(webApplication);
webApplication.setPageManagerProvider(pageManager);
webApplication.mountPage(properties.getMountPage(), DiskStoreBrowserPage.class);
wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
.withDetail("properties", properties)
.build());
}
示例4: init
import org.apache.wicket.protocol.http.WebApplication; //導入方法依賴的package包/類
@Override
public void init(WebApplication webApplication) {
if (properties.isEnableLiveSessionsPage()) {
webApplication.mountPage(properties.getLiveSessionPageMount(), LiveSessionsPage.class);
}
wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
.withDetail("properties", properties)
.build());
}
示例5: init
import org.apache.wicket.protocol.http.WebApplication; //導入方法依賴的package包/類
@Override
public void init(WebApplication webApplication) {
webApplication.getRequestCycleListeners().add(new JamonAwareRequestCycleListener(webApplication, prop.isIncludeSourceNameInMonitorLabel()));
webApplication.mountPage(prop.getMountPage(), BootJamonAdminPage.class);
}