当前位置: 首页>>代码示例>>Java>>正文


Java HorizontalLayoutContainer.setSize方法代码示例

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


在下文中一共展示了HorizontalLayoutContainer.setSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showDialog

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private void showDialog(final HTML info) {
	final Dialog simple = new Dialog();
	simple.setHeadingText(UIMessages.INSTANCE.wmsInfo());
	HorizontalLayoutContainer container = new HorizontalLayoutContainer();
	container.setScrollMode(ScrollMode.AUTO);
	container.setSize("280px", "180px");

	container.add(replaceHref(info));
	simple.setSize("300px", "200px");
	simple.setResizable(true);
	simple.setHideOnButtonClick(true);
	simple.setPredefinedButtons(PredefinedButton.CLOSE);
	simple.setBodyStyleName("pad-text");
	simple.getBody().addClassName("pad-text");

	simple.add(container);

	simple.show();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:20,代码来源:WmsGetInfoTool.java

示例2: getHelpPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer getHelpPanel(final HTML data) {
	HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
	panel.setSize("400px", "400px");
	panel.add(data);
	ScrollSupport scrollSupport = panel.getScrollSupport();
	scrollSupport.setScrollMode(ScrollMode.AUTO);
	return panel;
}
 
开发者ID:geowe,项目名称:geowe-core,代码行数:9,代码来源:GeoprocessHelpDialog.java

示例3: getPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer getPanel(final HTML data) {
	HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
	panel.setSize("400px", "400px");
	panel.add(data);
	ScrollSupport scrollSupport = panel.getScrollSupport();
	scrollSupport.setScrollMode(ScrollMode.AUTO);
	return panel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:9,代码来源:InfoProjectTool.java

示例4: createBottomPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createBottomPanel() {
	HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
	hPanel.setSize("510px", "200px");
			
	PagingToolBar toolBar = new PagingToolBar(FEATURES_PER_PAGE);
	toolBar.setBorders(false);
	
	featureGrid = new PagingFeatureGrid(toolBar);
	featureGrid.getSelectionModel().addSelectionChangedHandler(
			new SelectionChangedHandler<VectorFeature>() {
				@Override
				public void onSelectionChanged(
						SelectionChangedEvent<VectorFeature> event) {
					setSelectedElement();
				}
			});
			
	layerInfoToolBar.setAllTools();
	
	VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
	gridContainer.setWidth(500);
	gridContainer.setHeight(200);
	gridContainer.add(featureGrid, new VerticalLayoutData(1, 1));
	gridContainer.add(toolBar, new VerticalLayoutData(1, -1));
	
	hPanel.add(gridContainer);
	hPanel.add(layerInfoToolBar);
	return hPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:30,代码来源:LayerInfoDialog.java

示例5: createBottomPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createBottomPanel() {
	HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
	hPanel.setSize("510px", "220px");

	PagingToolBar toolBar = new PagingToolBar(FEATURES_PER_PAGE);
	toolBar.setBorders(false);

	featureGrid = new PagingFeatureGrid(toolBar);
	featureGrid.getSelectionModel().addSelectionChangedHandler(
			new SelectionChangedHandler<VectorFeature>() {
				@Override
				public void onSelectionChanged(
						SelectionChangedEvent<VectorFeature> event) {
					setSelectedElements();
				}
			});

	VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
	gridContainer.setWidth(500);
	gridContainer.setHeight(220);
	gridContainer.add(featureGrid, new VerticalLayoutData(1, 1));
	gridContainer.add(toolBar, new VerticalLayoutData(1, -1));

	
	hPanel.add(gridContainer);
	hPanel.add(layerSearchToolBar);
	return hPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:29,代码来源:AttributeSearchDialog.java

示例6: createPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
	HorizontalLayoutContainer container = new HorizontalLayoutContainer();
	container.setScrollMode(ScrollMode.AUTO);
	container.setSize("300px", "260px");

	container.add(getTextPanel());

	return container;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:10,代码来源:FeatureInfoToolBar.java


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