• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Viewport类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.Viewport的典型用法代码示例。如果您正苦于以下问题:Java Viewport类的具体用法?Java Viewport怎么用?Java Viewport使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Viewport类属于com.sencha.gxt.widget.core.client.container包,在下文中一共展示了Viewport类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onModuleLoad

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
public void onModuleLoad() 
{
	Viewport viewport = new Viewport();
	ToolBrowser s = new ToolBrowser();
	viewport.setWidget(s);
	RootLayoutPanel.get().add(viewport);
}
 
开发者ID:VanAndelInstitute,项目名称:vaitools,代码行数:8,代码来源:Vaitools.java


示例2: ShellView

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
public ShellView() {
  // // Viewport fomatieren
  Viewport viewport = new Viewport();
  // Shell erzeugen
  shell = new BorderLayoutContainer();
  headerArea = new SimpleContainer();
  toolbarArea = new ContentPanel();
  content = new SimpleContainer();
  content.setSize("100%", "100%");

  createApplicationShell();

  viewport.add(shell);
  initWidget(viewport);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:16,代码来源:ShellView.java


示例3: ShellView

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
public ShellView() {
  // // Viewport fomatieren
  Viewport viewport = new Viewport();
  // Shell erzeugen
  shell = new BorderLayoutContainer();
  headerArea = new SimpleContainer();
  toolbarArea = new ContentPanel();
  content = new SimpleContainer();
  content.setSize("100%", "100%");
  createApplicationShell();
  viewport.add(shell);
  // Aufruf init wegen Composite
  initWidget(viewport);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:15,代码来源:ShellView.java


示例4: Platform

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
public Platform(ZUser user){
	platformContext=new PlatformContext(user);
	viewport=(Viewport) uiBinder.createAndBindUi(this);
	platformContext.getPlatformBus().registPlaceHandler(this);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:6,代码来源:Platform.java


示例5: onModuleLoad

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
@Override
public void onModuleLoad() {

	Viewport viewport = new Viewport();
	viewport.addStyleName("x-viewport");

	BorderLayoutContainer borderLayoutContainer = new BorderLayoutContainer();
       borderLayoutContainer.setBorders(true);
       
       VerticalLayoutContainer north = new VerticalLayoutContainer();
       north.add(new HTML("<div class=\"olms-title\">Open License Management Server</div>"));
       
       BorderLayoutContainer.BorderLayoutData northData = new BorderLayoutContainer.BorderLayoutData(150);
       northData.setCollapsible(false);
       northData.setSplit(false);
       northData.setCollapseMini(false);
       northData.setMargins(new Margins(0, 5, 0, 5));
       northData.setSize(50);
       
       ContentPanel west = new ContentPanel();
       west.add(new HTML("This is west panel"));
       
       BorderLayoutContainer.BorderLayoutData westData = new BorderLayoutContainer.BorderLayoutData(250);
       westData.setCollapsible(true);
       westData.setSplit(true);
       westData.setCollapseMini(true);
       westData.setMargins(new Margins(0, 5, 0, 5));

	CenterLayoutContainer centerLayoutContainer = new CenterLayoutContainer();
	TextButton textButton = new TextButton("Click Me!");
	textButton.addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			Window basicWindow = new Window();
			basicWindow.setHeadingHtml("GXT CookBook | Recipe One");
			basicWindow.setClosable(true);
			basicWindow.setSize("250px", "50px");
			// prepare content to show
			VerticalLayoutContainer textPanel = new VerticalLayoutContainer();
			textPanel.addStyleName("text-panel");
			//setStyleAttribute("padding", "15px");
			textPanel.add(new HTML("<div>This is our first recipe from GXT Cookbook, how are we doing so far ...</div>"));
			// place content on the window
			// and display it.
			basicWindow.add(textPanel);
			basicWindow.show();		
		}
	});
	centerLayoutContainer.add(textButton);

       MarginData centerData = new MarginData();

       borderLayoutContainer.setNorthWidget(north, northData);
       borderLayoutContainer.setWestWidget(west, westData);
    borderLayoutContainer.setCenterWidget(centerLayoutContainer, centerData);

	viewport.add(borderLayoutContainer);
	RootPanel.get().add(viewport);		
}
 
开发者ID:izaynutdinov,项目名称:open-license-management-server,代码行数:60,代码来源:Main.java


示例6: onModuleLoad

import com.sencha.gxt.widget.core.client.container.Viewport; //导入依赖的package包/类
@Override
public void onModuleLoad() {

	Viewport mainPanel = new Viewport();

	RootPanel.get().add(mainPanel);

	Highcharts.setOptions(new Highcharts.Options().setGlobal(new Global().setUseUTC(false)));

	ClientFactory clientFactory = new ClientFactoryImpl();

	EventBus eventBus = clientFactory.getEventBus();
	PlaceController placeController = clientFactory.getPlaceController();

	// Start ActivityManager
	ActivityMapper activityMapper = new MainActivityMapper(clientFactory);
	ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
	activityManager.setDisplay(mainPanel);

	// Start PlaceHistoryHandler with our PlaceHistoryMapper
	MainPlaceHistoryMapper historyMapper = GWT.create(MainPlaceHistoryMapper.class);
	PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);

	historyHandler.register(placeController, eventBus, new MainPlace());

	// Goes to the default place
	historyHandler.handleCurrentHistory();

	Notification.showNotification("Stratehm", "IMPORTANT: This service will shutdown in few days. See <a href=\"\">here</a> for more details.");

}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:32,代码来源:MultipoolStatsClientEntryPoint.java



注:本文中的com.sencha.gxt.widget.core.client.container.Viewport类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Transaction类代码示例发布时间:2022-05-23
下一篇:
Java Persistence类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap