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


Java VerticalLayoutContainer.add方法代码示例

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


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

示例1: getFilePanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private FormPanel getFilePanel() {
	VerticalLayoutContainer layoutContainer = new VerticalLayoutContainer();

	file = new FileUploadField();
	file.setName(UIMessages.INSTANCE.gdidFileUploadFieldText());
	file.setAllowBlank(false);

	layoutContainer.add(new FieldLabel(file, UIMessages.INSTANCE.file()),
			new VerticalLayoutData(-18, -1));
	layoutContainer.add(new Label(UIMessages.INSTANCE.maxFileSizeText()),
			new VerticalLayoutData(-18, -1));

	uploadPanel = new FormPanel();
	uploadPanel.setMethod(Method.POST);
	uploadPanel.setEncoding(Encoding.MULTIPART);
	uploadPanel.setAction("fileuploadzip.do");
	uploadPanel.setWidget(layoutContainer);

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

示例2: createFilePanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private FormPanel createFilePanel() {
	final VerticalLayoutContainer layoutContainer = new VerticalLayoutContainer();

	file = new FileUploadField();
	file.setName(UIMessages.INSTANCE.gdidFileUploadFieldText());
	file.setAllowBlank(false);

	layoutContainer.add(new FieldLabel(file, UIMessages.INSTANCE.file()),
			new VerticalLayoutData(-18, -1));
	layoutContainer.add(new Label(UIMessages.INSTANCE.maxFileSizeText()),
			new VerticalLayoutData(-18, -1));

	uploadPanel = new FormPanel();
	uploadPanel.setMethod(Method.POST);
	uploadPanel.setEncoding(Encoding.MULTIPART);
	uploadPanel.setAction("fileupload.do");
	uploadPanel.setWidget(layoutContainer);

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

示例3: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
	
	VerticalLayoutContainer container = new VerticalLayoutContainer();
	container.setScrollMode(ScrollMode.AUTO);
	container.setSize("450px", "160px");
			
	Label bboxLabel = new Label("Bbox (" + UIMessages.INSTANCE.lowerLeftXField() + ", " + UIMessages.INSTANCE.lowerLeftYField() + 
			", " + UIMessages.INSTANCE.upperRightXField() + ", " + UIMessages.INSTANCE.upperRightYField() + ")");
	bboxLabel.getElement().getStyle().setFontWeight(FontWeight.BOLD);		
	container.add(bboxLabel);
	bboxField = new TextField();
	bboxField.setEmptyText(UIMessages.INSTANCE.bboxFieldCustomExtent());		
	bboxField.setWidth("450px");
	container.add(bboxField);	
	return container;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:17,代码来源:CustomExtentDialog.java

示例4: createGridPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private HorizontalPanel createGridPanel() {
	HorizontalPanel hPanel = new HorizontalPanel();
	hPanel.setSize("510px", "320px");
	
	vehicleStore = new ListStore<VehicleJSO>(vehicleProps.key());
	vehiculeGrid = createGrid(vehicleStore, vehicleProps);
	
	vehiculeGrid.getSelectionModel().addSelectionChangedHandler(
			new SelectionChangedHandler<VehicleJSO>() {
				@Override
				public void onSelectionChanged(
						SelectionChangedEvent<VehicleJSO> event) {
					List<VehicleJSO> selected = event.getSelection();						
					vehicleToolBar.setVehicles(selected);						
				}
			});

	VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
	gridContainer.setWidth(500);
	gridContainer.setHeight(320);
	gridContainer.add(vehiculeGrid, new VerticalLayoutData(1, 1));				
	hPanel.add(gridContainer);
	hPanel.add(vehicleToolBar);
	return hPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:26,代码来源:VehicleDialog.java

示例5: ContentView

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public ContentView() {
  tabs = new HashMap<>();
  contentContaineer = new VerticalLayoutContainer();
  contentContaineer.setBorders(false);
  tabPanel = new TabPanel();
  tabUebersicht = new TabItemConfig("Portal");
  // Tab-Panel
  tabPanel.setBorders(false);
  tabPanel.setBodyBorder(false);
  tabPanel.setTabScroll(true);
  // Portal-Tab (immer vorhanden)
  tabUebersicht.setClosable(false);
  tabUebersicht.setEnabled(true);
  tabPanel.add(createUebersicht(),
               tabUebersicht);
  contentContaineer.add(tabPanel,
                        new VerticalLayoutData(1,
                                               1));
  createAndAddGridPortlet();
  bind();
  initWidget(contentContaineer);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:23,代码来源:ContentView.java

示例6: CardUserInfo

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public CardUserInfo(UserPresenter presenter) {
	this.presenter = presenter;
	addButton(edituser);
	if (presenter.getZuser().getUid().equals(UserUtil.admin)) {
		addButton(checkuser);
	}
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	VerticalLayoutContainer p = new VerticalLayoutContainer();
	luid=new Label();
	lname=new Label();
	luserType=new Label();
	leffective=new Label();
	lemail=new Label("");
	phoneContent=new HTMLPanel("");
	descriptionContent=new HTMLPanel("");
	p.add(new FieldLabel(luid, "用户账号"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(lname,"用户姓名"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(luserType,"用户状态"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(leffective,"用户类型"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(lemail, "邮箱地址"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(phoneContent, "手机号码"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(descriptionContent, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	
	centerContainer.add(p);
	setCenter(centerContainer);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:27,代码来源:CardUserInfo.java

示例7: FileManagerViewImpl

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public FileManagerViewImpl(final PlatformContext context,
		FileManagerPresenter presenter) {
	this.fileManagerPresenter = presenter;
	this.context = context;
	container = uiBinder.createAndBindUi(this);
	myDoc.add(getMyTreeGrid());
	
	
	VerticalLayoutContainer commonContainer=new VerticalLayoutContainer();
	commonContainer.setScrollMode(ScrollMode.AUTOY);
	commonContainer.add(getCommonDocFilter(),
			new VerticalLayoutData(1, 30, new Margins(4, 20, 4, 4)));
	commonContainer.add(getCommonTreeGrid(), new VerticalLayoutData(1, 1));
	commonDoc.add(commonContainer);
	
	container.setActiveWidget(myDoc);
	
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:19,代码来源:FileManagerViewImpl.java

示例8: getBaseFieldSet

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public FieldSet getBaseFieldSet() {
	if(baseFieldSet==null){
		baseFieldSet=new FieldSet();
		baseFieldSet.setHeadingText("基本信息");
		
		VerticalLayoutContainer p = new VerticalLayoutContainer();
		
		baseId=new Label();
		baseName=new Label();
		baseOwner=new Label();
		baseDesc=new Label();
		baseFollers=new Label();
		baseAdmins=new Label();
		
		p.add(new FieldLabel(baseId, "id"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		p.add(new FieldLabel(baseName,"名称"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		p.add(new FieldLabel(baseOwner,"所有人"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		p.add(new FieldLabel(baseDesc,"描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		p.add(new FieldLabel(baseFollers,"关注人员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		p.add(new FieldLabel(baseAdmins,"管理员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
		baseFieldSet.add(p);
	}
	return baseFieldSet;
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:25,代码来源:CardInfo.java

示例9: initBorderLayout

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private void initBorderLayout() {
    BorderLayoutData westBorderLayoutData = new BorderLayoutContainer.BorderLayoutData() {
        {
            setSize(250);
            setMargins(new Margins(5, 0, 5, 5));
            setCollapseMini(true);
            setCollapsible(true);
        }
    };

    mainLayoutPanel.setWestWidget(navigatorPanel, westBorderLayoutData);
    BorderLayoutData eastBorderLayoutData = new BorderLayoutContainer.BorderLayoutData() {
        {
            setSize(250);
            setMargins(new Margins(5, 5, 5, 0));
        }
    };
    mainLayoutPanel.setEastWidget(propertiesPanel, eastBorderLayoutData);
    mainLayoutPanel.setCenterWidget(previewPanel, new MarginData(5));
    
    verticalLayoutContainer = new VerticalLayoutContainer();
    verticalLayoutContainer.add(paletePanel, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    verticalLayoutContainer.add(mainLayoutPanel, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    mainContentPanel.add(verticalLayoutContainer);
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:26,代码来源:MainPanel.java

示例10: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
	final VerticalLayoutContainer panel = new VerticalLayoutContainer();
	
	longitudTextField = new TextField();
	longitudTextField.setTitle(UIMessages.INSTANCE.longitude());
	longitudTextField.setAllowBlank(false);

	longitudTextField.setWidth(FIELD_WIDTH);

	final FieldLabel longitudLabel = new FieldLabel(longitudTextField,
			UIMessages.INSTANCE.longitude());
	panel.add(longitudLabel, new VerticalLayoutData(1, -1));
	
	latitudTextField = new TextField();
	latitudTextField.setTitle(UIMessages.INSTANCE.latitude());
	latitudTextField.setWidth(FIELD_WIDTH);
	latitudTextField.setAllowBlank(false);

	final FieldLabel latitudLabel = new FieldLabel(latitudTextField,
			UIMessages.INSTANCE.latitude());
	panel.add(latitudLabel, new VerticalLayoutData(1, -1));

	initializeFields();

	epsgCombo = new ProjectionComboBox(FIELD_WIDTH);
	epsgCombo.setValue("WGS84");
	final FieldLabel epsgLabel = new FieldLabel(epsgCombo,
			UIMessages.INSTANCE.lidProjectionLabel());
	panel.add(epsgLabel, new VerticalLayoutData(1, -1));
	return panel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:32,代码来源:CoordinateGeolocationDialog.java

示例11: createContainerTab

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer createContainerTab(final String titleTab) {
	final VerticalLayoutContainer container = new VerticalLayoutContainer();
	container.add(layerTrees.get(titleTab).getToolbar(),
			new VerticalLayoutData());

	container.add(layerTrees.get(titleTab).getTree());
	return container;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:9,代码来源:LayerManagerWidget.java

示例12: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
	final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
	vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	final GitHubRepositoryAttributeBeanProperties props = GWT
			.create(GitHubRepositoryAttributeBeanProperties.class);
	repositoryStore = new ListStore<GitHubRepositoryAttributeBean>(props.key());

	final ColumnConfig<GitHubRepositoryAttributeBean, Integer> idCol = new ColumnConfig<GitHubRepositoryAttributeBean, Integer>(
			props.attributeId(), 190, "Id");		
	final ColumnConfig<GitHubRepositoryAttributeBean, String> nameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeName(), 190, UIMessages.INSTANCE.gitHubColumNameRepo());
	final ColumnConfig<GitHubRepositoryAttributeBean, String> descriptionCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.description(), 200, UIMessages.INSTANCE.gitHubColumDescriptionRepo());
	
	final ColumnConfig<GitHubRepositoryAttributeBean, String> fullNameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeFullName(), 200, "Full Name");

	final List<ColumnConfig<GitHubRepositoryAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubRepositoryAttributeBean, ?>>();
	//columns.add(idCol);
	columns.add(nameCol);
	columns.add(descriptionCol);		
	//columns.add(fullNameCol);

	final ColumnModel<GitHubRepositoryAttributeBean> columModel = new ColumnModel<GitHubRepositoryAttributeBean>(
			columns);

	grid = new Grid<GitHubRepositoryAttributeBean>(
			repositoryStore, columModel);
	//grid.setSelectionModel(new CellSelectionModel<GitHubRepositoryAttributeBean>());
	grid.getColumnModel().getColumn(0).setHideable(false);
	grid.setAllowTextSelection(true);
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);		
	grid.setBorders(false);
	setGridDragable(grid);
	
	vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(5, 0, 0, 0)));		

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

示例13: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel(final Geoprocesses spatialOperation) {
	panel = new VerticalLayoutContainer();
	panel.add(new Label(UIMessages.INSTANCE.descAnalysisText()));
	panel.add(new HTML("<HR>"));
	panel.add(new HTML("<BR>"));
	createGeoprocessAndDistanceField(spatialOperation);
	createComboLayer(LAYER_COMBO_1, COMBO1_ID, VALIDATE_LAYER_1_BUTTON);
	createComboLayer(LAYER_COMBO_2, COMBO2_ID, VALIDATE_LAYER_2_BUTTON);
	panel.add(new HTML("<BR>"));
	panel.add(new HTML("<HR>"));
	panel.add(new Label(UIMessages.INSTANCE.sodInfoText()));
	return panel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:14,代码来源:GeoprocessDialog.java

示例14: getVerticalGroupButtons

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer getVerticalGroupButtons() {
	VerticalLayoutContainer verticalLayoutContainer = new VerticalLayoutContainer();
	verticalLayoutContainer.add(createMapTabPanel());
	verticalLayoutContainer.add(createFirstTabPanel());
	verticalLayoutContainer.add(createSecondTabPanel());

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

示例15: getZoomToolTab

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer getZoomToolTab() {
	VerticalLayoutContainer verticalLayoutContainer = new VerticalLayoutContainer();
	verticalLayoutContainer.add(getZoomToolGroupTools());
	verticalLayoutContainer.add(getZoomToolGroup2Tools());

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


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