当前位置: 首页>>代码示例>>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;未经允许,请勿转载。