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


Java HorizontalPanel.setSpacing方法代码示例

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


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

示例1: createSeparatorPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void createSeparatorPanel() {
	separatorPanel = new HorizontalPanel();
	separatorPanel.setSpacing(1);
	separatorPanel.setWidth("100%");
	separatorPanel.addStyleName(ThemeStyles.get().style().borderTop());
	separatorPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	separatorPanel
			.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
	separatorPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
	separatorPanel.add(new Label(UIMessages.INSTANCE
			.separator(DEFAULT_CSV_SEPARATOR)));
	separatorTextField = new TextField();
	separatorTextField.setText(DEFAULT_CSV_SEPARATOR);
	separatorTextField.setWidth(30);

	separatorPanel.add(separatorTextField);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:18,代码来源:JoinDataDialog.java

示例2: CompanyRowView

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public CompanyRowView() {

		name = new Label();

		display = new Image( "images/display.png" );
		quickEdit = new Image( "images/quickEdit.png" );
		edit = new Image( "images/edit.png" );
		delete = new Image( "images/delete.png" );

		HorizontalPanel hp = new HorizontalPanel();
		hp.setSpacing( 2 );
		hp.add( name );
		hp.add( display );
		hp.add( quickEdit );
		hp.add( edit );
		hp.add( delete );

		initWidget( hp );

	}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:21,代码来源:CompanyRowView.java

示例3: initializew3wPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void initializew3wPanel() {
	w3wPanel = new HorizontalPanel();
	w3wPanel.setSpacing(5);
	w3wPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
	StyleInjector.inject(".w3wPanel { " + "background: #E0ECF8;"
			+ "border-radius: 5px 10px;" + "opacity: 0.8}");
	w3wPanel.setStyleName("w3wPanel");
	w3wPanel.setWidth("415px");

	wordsLabel = new Label();
	w3wAnchor = new AnchorBuilder().setHref("https://what3words.com/")
			.setText(UIMessages.INSTANCE.what3Words())
			.setTitle("https://what3words.com/").build();
	w3wAnchor.getElement().getStyle().setColor("#FF0000");
	w3wAnchor.setVisible(false);
	w3wPanel.add(w3wAnchor);
	w3wPanel.add(wordsLabel);
}
 
开发者ID:geowe,项目名称:geowe-core,代码行数:19,代码来源:BasicToolBar.java

示例4: createTargetPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void createTargetPanel() {
    HorizontalPanel hp= new HorizontalPanel();
    Widget modTarget= GwtUtil.makeLinkButton(_prop.getTitle("modTarget"),
                                             _prop.getTip("modTarget"),
                                             new ClickHandler() {
                                                 public void onClick(ClickEvent ev) {
                                                     setTargetCard(TARGET_PANEL);
                                                 }
                                             });
    hp.add(_targetDesc);
    hp.setSpacing(5);
    hp.add(modTarget);

    updateTargetDesc();


    _targetPanelHolder.setWidget(_targetPanel);

    _targetCards.add(_targetPanelHolder);
    _targetCards.add(hp);
    _targetCards.add(hideTargetLabel);
    setTargetCard(TARGET_DESC);
    _targetCards.addStyleName("image-select-target-area");
}
 
开发者ID:lsst,项目名称:firefly,代码行数:25,代码来源:ImageSelectPanel.java

示例5: getEditionToolGroup1Tools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getEditionToolGroup1Tools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	horizontalGroup.setSpacing(5);

	horizontalGroup.add(reshapeTool);
	horizontalGroup.add(resizeTool);
	horizontalGroup.add(rotateTool);

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

示例6: getDrawToolGroup2Tools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getDrawToolGroup2Tools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	horizontalGroup.setSpacing(5);
	horizontalGroup.add(lineStringTool);
	horizontalGroup.add(pointTool);
	horizontalGroup.add(circleTool);

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

示例7: getZoomToolGroup2Tools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getZoomToolGroup2Tools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	horizontalGroup.setSpacing(5);

	horizontalGroup.add(zoomIn);
	horizontalGroup.add(zoomOut);
	horizontalGroup.add(zoomToSeletionTool);

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

示例8: createPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private Widget createPanel() {
	String comboWidth = "150px";

	vectorFormatCombo = new VectorFormatComboBox(comboWidth,
			VectorFormat.getSupportedExportVectorFormat());
	vectorFormatCombo.addSelectionHandler(getVectorComboSelectionHandler());
	vectorFormatCombo.setValue(VectorFormat.GEO_JSON_FORMAT);
	epsgCombo = new ProjectionComboBox(comboWidth);
	
	
	downloadFileButton = new TextButton(
			UIMessages.INSTANCE.downloadfileText());
	downloadFileButton.setIcon(ImageProvider.INSTANCE.download32());
	downloadFileButton.setIconAlign(IconAlign.TOP);
	
	gitHubButton = new TextButton(
			"GitHub");
	gitHubButton.setIcon(ImageProvider.INSTANCE.github32());
	gitHubButton.setIconAlign(IconAlign.TOP);

	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle().setBackgroundColor("#E0ECF8");
	horizontalGroup.setSpacing(10);

	VerticalPanel vPanel = new VerticalPanel();
	vPanel.setSpacing(5);
	vPanel.add(vectorFormatCombo);
	vPanel.add(epsgCombo);

	horizontalGroup.add(vPanel);
					
	horizontalGroup.add(downloadFileButton);
	horizontalGroup.add(gitHubButton);
	
	return horizontalGroup;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:37,代码来源:ExportDataDialog.java

示例9: getCSVComboPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private void getCSVComboPanel() {
	comboPanel = new HorizontalPanel();
	comboPanel.setWidth("100%");
	comboPanel.addStyleName(ThemeStyles.get().style().borderTop());
	comboPanel.setSpacing(5);
	comboPanel.setVisible(false);
	comboPanel.add(new Label(UIMessages.INSTANCE.bindableAttribute()));
	comboPanel.add(csvAttributeCombo);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:10,代码来源:JoinDataDialog.java

示例10: getEditionToolGroup2Tools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getEditionToolGroup2Tools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	horizontalGroup.setSpacing(5);

	horizontalGroup.add(dragTool);
	horizontalGroup.add(deleteTool);
	horizontalGroup.add(copyElementTool);

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

示例11: getHorizontalPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getHorizontalPanel() {
	final HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.setSpacing(5);
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	return horizontalGroup;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:8,代码来源:GeoprocessDialog.java

示例12: createAttrPanel

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel createAttrPanel(){
	HorizontalPanel hPanel = new HorizontalPanel();
	hPanel.setSpacing(10);
	hPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	hPanel.addStyleName(ThemeStyles.get().style().borderTop());
	hPanel.add(getAttrCombo());
	hPanel.add(getAttrValuePanel());
	
	return hPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:11,代码来源:AttributeSearchDialog.java

示例13: getSaveToolGroup1Tools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private Widget getSaveToolGroup1Tools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);
	horizontalGroup.setSpacing(5);
	horizontalGroup.add(saveLayerTool);
	horizontalGroup.add(exportLayerTool);
	//horizontalGroup.add(saveProjectTool);
	return horizontalGroup;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:11,代码来源:MenuPanelWidget.java

示例14: initialize

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
public void initialize(GridEditing<FeatureAttributeBean> gridEditing,
		ListStore<FeatureAttributeBean> featureAttributes) {
	this.gridEditing = gridEditing;
	this.featureAttributes = featureAttributes;
	setHeaderVisible(false);
	addStyleName(ThemeStyles.get().style().borderBottom());
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.setSpacing(5);
	horizontalGroup.add(getEditButton());
	horizontalGroup.add(getClearButton());
	horizontalGroup.add(getWKTButton());
	horizontalGroup.add(getExportCSVButton());
	setWidget(horizontalGroup);
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:15,代码来源:FeatureInfoToolBar.java

示例15: getMapGroupTools

import com.google.gwt.user.client.ui.HorizontalPanel; //导入方法依赖的package包/类
private HorizontalPanel getMapGroupTools() {
	HorizontalPanel horizontalGroup = new HorizontalPanel();
	horizontalGroup.setSpacing(5);
	horizontalGroup.getElement().getStyle()
			.setVerticalAlign(VerticalAlign.MIDDLE);

	horizontalGroup.add(layerManagerTool);
	horizontalGroup.add(layerCatalogTool);
	horizontalGroup.add(basicToolBarTool);

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


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