當前位置: 首頁>>代碼示例>>Java>>正文


Java WebApplication.mountPage方法代碼示例

本文整理匯總了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);
	}
}
 
開發者ID:openwide-java,項目名稱:owsi-core-parent,代碼行數:11,代碼來源:ConsoleConfiguration.java

示例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());
		}
	}
}
 
開發者ID:openwide-java,項目名稱:owsi-core-parent,代碼行數:13,代碼來源:ConsoleConfiguration.java

示例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());
}
 
開發者ID:MarcGiffing,項目名稱:wicket-spring-boot,代碼行數:11,代碼來源:DiskStoreBrowserConfig.java

示例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());
}
 
開發者ID:MarcGiffing,項目名稱:wicket-spring-boot,代碼行數:11,代碼來源:InspectorConfig.java

示例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);
}
 
開發者ID:MarcGiffing,項目名稱:wicket-spring-boot,代碼行數:6,代碼來源:JamonConfig.java


注:本文中的org.apache.wicket.protocol.http.WebApplication.mountPage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。