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


Java HorizontalLayoutContainer.add方法代码示例

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


在下文中一共展示了HorizontalLayoutContainer.add方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: OwnerJobTrend

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
public OwnerJobTrend(){
	date=new DateField();
	date.setEditable(false);
	date.setAllowBlank(false);
	date.setValue(new Date());
	
	HorizontalLayoutContainer form=new HorizontalLayoutContainer();
	form.add(new FieldLabel(date,"日期"),new HorizontalLayoutData());
	form.add(submit,new HorizontalLayoutData());
	
	container.add(form,new VerticalLayoutData(1,30));
	container.addAttachHandler(new Handler() {
		public void onAttachOrDetach(AttachEvent event) {
			submit.fireEvent(new SelectEvent());
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:18,代码来源:OwnerJobTrend.java

示例3: RunningJobTrend

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
public RunningJobTrend(){
	start=new DateField();
	start.setEditable(false);
	start.setValue(new Date(new Date().getTime()-7*24*60*60*1000L));
	end=new DateField();
	end.setEditable(false);
	end.setValue(new Date());
	HorizontalLayoutContainer form=new HorizontalLayoutContainer();
	form.add(new FieldLabel(start, "起始日期"),new HorizontalLayoutData(0.3,1));
	form.add(new FieldLabel(end,"截止日期"),new HorizontalLayoutData(0.3, 1));
	form.add(submit,new HorizontalLayoutData(-1,-1));
	
	container.add(form,new VerticalLayoutData(1, 30));
	
	container.addAttachHandler(new Handler() {
		public void onAttachOrDetach(AttachEvent event) {
			submit.fireEvent(new SelectEvent());
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:21,代码来源:RunningJobTrend.java

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: createTopPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createTopPanel() {
	String fieldWidth = "225px";
	VerticalPanel infoPanel = new VerticalPanel();
	infoPanel.setSpacing(5);

	projectNameField = new TextField();		
	projectNameField.setEnabled(true);
	projectNameField.setWidth(fieldWidth);
	infoPanel.add(new Label(UIMessages.INSTANCE.projectFileName()));
	infoPanel.add(projectNameField);
	
	projectTitleField = new TextField();
	projectTitleField.setEnabled(true);
	projectTitleField.setWidth("280px");
	infoPanel.add(new Label(UIMessages.INSTANCE.projectTitle()));
	infoPanel.add(projectTitleField);
	
	projectVersionField = new TextField();
	projectVersionField.setValue(PROJECT_VERSION);
	projectVersionField.setEnabled(false);
	projectVersionField.setWidth("125px");
	infoPanel.add(new Label(UIMessages.INSTANCE.projectVersion()));
	infoPanel.add(projectVersionField);
	
	vectorLayerCountField = new TextField();		
	vectorLayerCountField.setEnabled(false);
	vectorLayerCountField.setWidth("125px");
	infoPanel.add(new Label(UIMessages.INSTANCE.projectTotalVectorLayer()));
	infoPanel.add(vectorLayerCountField);
			
	projectDescriptionField = new TextArea();
	projectDescriptionField.setEnabled(true);
	projectDescriptionField.setWidth("280px");
	
	
	infoPanel.add(new Label(UIMessages.INSTANCE.projectDescription()));
	infoPanel.add(projectDescriptionField);
	
	HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();

	hPanel.add(infoPanel);

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

示例10: createTopPanel

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createTopPanel() {
	
	HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();

	VerticalPanel infoPanel = new VerticalPanel();
	infoPanel.setSpacing(5);

	layerNameField = new TextField();
	layerNameField.setEnabled(false);
	layerNameField.setWidth(FIELD_WIDTH);
	infoPanel.add(new Label(UIMessages.INSTANCE.asdLayerNameLabel()));
	infoPanel.add(layerNameField);


	infoPanel.add(createAttrPanel());
	infoPanel.add(createSearchButtonPanel());

	hPanel.add(infoPanel);

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

示例11: createLayout

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createLayout() {
	HorizontalLayoutContainer mainContainer = new HorizontalLayoutContainer();
	String fieldWidth = "225px";

	// ----- Left Panel ----
	VerticalPanel layerDataContainer = new VerticalPanel();
	layerDataContainer.setWidth("250px");
	layerDataContainer.setSpacing(5);

	layerName = new TextField();
	layerName.setWidth(fieldWidth);
	layerName.setAllowBlank(false);
	layerDataContainer.add(new Label(UIMessages.INSTANCE
			.gdidLayerNameLabel()));
	layerDataContainer.add(layerName);

	projectionName = new ProjectionComboBox(fieldWidth);
	projectionName.setEmptyText(UIMessages.INSTANCE
			.asdAttributeComboEmptyText());
	layerDataContainer.add(new Label(UIMessages.INSTANCE
			.gdidProjectionLabel()));
	layerDataContainer.add(projectionName);

	Label padding = new Label("");
	padding.setHeight("75px");
	layerDataContainer.add(padding);

	vectorFormatCombo = new VectorFormatComboBox("120px",
			VectorFormat.getSupportedImportFormat());
	dataFormatField = new FieldLabel(vectorFormatCombo,
			UIMessages.INSTANCE.gdidDataFormatLabel());

	layerDataContainer.add(dataFormatField);
	dataFormatField.setVisible(false);

	// ----- Right Panel ----

	mainContainer.add(layerDataContainer);
	mainContainer.add(createTabPanel());

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

示例12: getBaseFieldSet

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
public FieldSet getBaseFieldSet() {
		if(baseFieldSet==null){
			baseFieldSet=new FieldSet();
			baseFieldSet.setHeadingText("基本信息");
			baseFieldSet.setHeight(260);
			
			HorizontalLayoutContainer layoutContainer=new HorizontalLayoutContainer();
			baseFieldSet.add(layoutContainer);
			
			VerticalLayoutContainer leftContainer = new VerticalLayoutContainer();
			leftContainer.setWidth(400);
			VerticalLayoutContainer rightContainer=new VerticalLayoutContainer();
			rightContainer.setWidth(300);
			layoutContainer.add(leftContainer,new HorizontalLayoutData(-1,1));
			layoutContainer.add(rightContainer,new HorizontalLayoutData(-1,1));
			
			baseId=new FieldLabel(getLabel(),"id");
			baseName=new FieldLabel(getLabel(),"名称");
			baseOwner=new FieldLabel(getLabel(),"所有人");
			baseDesc=new FieldLabel(new Label("",true),"描述");
			baseJobType=new FieldLabel(getLabel(),"任务类型");
			baseScheduleType=new FieldLabel(new Label(),"调度类型");
			baseCron=new FieldLabel(getLabel(),"定时表达式");
			baseAuto=new FieldLabel(getLabel(),"自动调度");
			timezone=new FieldLabel(getLabel(),"任务时区");
			offRaw=new FieldLabel(getLabel(),"启动延时");
			jobCycle=new FieldLabel(getLabel(),"任务周期");
			baseDepJobs=new FieldLabel(getLabel(),"依赖任务");
			baseDepCycle=new FieldLabel(getLabel(),"依赖周期");
			baseFollers=new FieldLabel(getLabel(),"关注人员");
			baseAdmins=new FieldLabel(getLabel(),"管理员");
//			host=new FieldLabel(getLabel(),"Host");
			hostGroupId=new FieldLabel(getLabel(),"host组id");
			hostGroupName=new FieldLabel(getLabel(),"host组名");
			rollTime = new FieldLabel(getLabel(),"失败重试次数");
			rollInterval = new FieldLabel(getLabel(),"重试时间间隔");
			jobPriority = new FieldLabel(getLabel(),"任务优先级");
			maxTime = new FieldLabel(getLabel(), "预计时长");
			importantContacts = new FieldLabel(getLabel(), "重要联系人");
			
			leftContainer.add(baseId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(baseName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(baseOwner,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(baseDesc,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(importantContacts,new VerticalLayoutContainer.VerticalLayoutData(1,-1));
			leftContainer.add(baseFollers,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(baseAdmins,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(hostGroupId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			leftContainer.add(hostGroupName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			
			rightContainer.add(baseJobType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(baseScheduleType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(baseCron,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(baseAuto,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(baseDepJobs,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(baseDepCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(timezone,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(offRaw,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(jobCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(jobPriority,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(rollTime,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(rollInterval,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			rightContainer.add(maxTime, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
			
			
			//leftContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));

		}
		return baseFieldSet;
	}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:71,代码来源:CardInfo.java

示例13: createView

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private void createView() {
  container = new FramedPanel();
  container.setHeight("400px");
  container.setHeaderVisible(true);
  container.setHeadingText("User Role");

  VerticalLayoutContainer vlc01 = new VerticalLayoutContainer();
  container.add(vlc01);

  HorizontalLayoutContainer hlc01 = new HorizontalLayoutContainer();
  vlc01.add(hlc01,
            new VerticalLayoutContainer.VerticalLayoutData(1,
                                                           180));
  hlc01.add(gridRolesChoices,
            new HorizontalLayoutContainer.HorizontalLayoutData(1,
                                                               1,
                                                               new Margins(0,
                                                                           0,
                                                                           6,
                                                                           0)));
  hlc01.add(addButton,
            new HorizontalLayoutContainer.HorizontalLayoutData(-1,
                                                               -1,
                                                               new Margins(141,
                                                                           3,
                                                                           6,
                                                                           12)));

  HorizontalLayoutContainer hlc02 = new HorizontalLayoutContainer();
  vlc01.add(hlc02,
            new VerticalLayoutContainer.VerticalLayoutData(1,
                                                           180));
  hlc02.add(gridSelectedRoles,
            new HorizontalLayoutContainer.HorizontalLayoutData(1,
                                                               1,
                                                               new Margins(0,
                                                                           0,
                                                                           0,
                                                                           0)));
  hlc02.add(removeButton,
            new HorizontalLayoutContainer.HorizontalLayoutData(-1,
                                                               -1,
                                                               new Margins(143,
                                                                           3,
                                                                           3,
                                                                           12)));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:48,代码来源:UserRoleView.java

示例14: getBaseFieldSet

import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
public FieldSet getBaseFieldSet() {
	if(baseFieldSet==null){
		baseFieldSet=new FieldSet();
		baseFieldSet.setHeadingText("基本信息");
		baseFieldSet.setHeight(220);
		
		HorizontalLayoutContainer layoutContainer=new HorizontalLayoutContainer();
		baseFieldSet.add(layoutContainer);
		
		VerticalLayoutContainer leftContainer = new VerticalLayoutContainer();
		leftContainer.setWidth(300);
		VerticalLayoutContainer rightContainer=new VerticalLayoutContainer();
		rightContainer.setWidth(300);
		layoutContainer.add(leftContainer,new HorizontalLayoutData(-1,1));
		layoutContainer.add(rightContainer,new HorizontalLayoutData(-1,1));
		
		baseId=new FieldLabel(getLabel(),"id");
		baseName=new FieldLabel(getLabel(),"名称");
		baseOwner=new FieldLabel(getLabel(),"所有人");
		baseDesc=new FieldLabel(new Label("",true),"描述");
		baseJobType=new FieldLabel(getLabel(),"任务类型");
		baseScheduleType=new FieldLabel(new Label(),"调度类型");
		baseCron=new FieldLabel(getLabel(),"定时表达式");
		baseAuto=new FieldLabel(getLabel(),"自动调度");
		timezone=new FieldLabel(getLabel(),"任务时区");
		offRaw=new FieldLabel(getLabel(),"启动延时");
		jobCycle=new FieldLabel(getLabel(),"任务周期");
		baseDepJobs=new FieldLabel(getLabel(),"依赖任务");
		baseDepCycle=new FieldLabel(getLabel(),"依赖周期");
		baseFollers=new FieldLabel(getLabel(),"关注人员");
		baseAdmins=new FieldLabel(getLabel(),"管理员");
		host=new FieldLabel(getLabel(),"Host");
		
		leftContainer.add(baseId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		leftContainer.add(baseName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		leftContainer.add(baseOwner,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		leftContainer.add(baseDesc,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseJobType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseScheduleType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseCron,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseAuto,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseDepJobs,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(baseDepCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(timezone,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(offRaw,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(jobCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		rightContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		leftContainer.add(baseFollers,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		leftContainer.add(baseAdmins,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		//leftContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));

	}
	return baseFieldSet;
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:55,代码来源:CardInfo.java


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