當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。