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


Java TextField.setWidth方法代码示例

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


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

示例1: createSeparatorPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的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: createCommitPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private Widget createCommitPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");		
	panel.setSpacing(10);				
	
	fileNameField = new TextField();
	fileNameField.setTitle(UIMessages.INSTANCE.gitHubFileNameField());
	fileNameField.setEmptyText(UIMessages.INSTANCE.gitHubFileNameField());
	fileNameField.setWidth(FIELD_WIDTH);
	panel.add(fileNameField);
			
	messageField = new TextField();
	messageField.setTitle(UIMessages.INSTANCE.gitHubMessageCommitField());
	messageField.setEmptyText(UIMessages.INSTANCE.gitHubMessageCommitField());
	messageField.setWidth(FIELD_WIDTH);
	panel.add(messageField);

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

示例3: createPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的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: getTMSPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getTMSPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");
	panel.setSpacing(10);

	urlTMSField = new TextField();
	urlTMSField.setTitle(UIMessages.INSTANCE.lrasterdUrlField());
	urlTMSField.setWidth(FIELD_WIDTH);
	urlTMSField.setAllowBlank(false);

	panel.add(urlTMSField);

	nameTMSField = new TextField();
	nameTMSField.setTitle(UIMessages.INSTANCE.lrasterdLayerNameField(""));
	nameTMSField.setAllowBlank(false);
	nameTMSField.setWidth(FIELD_WIDTH);
	panel.add(nameTMSField);

	formatTMSField = new TextField();
	formatTMSField.setTitle(UIMessages.INSTANCE.lrasterdImageFormatField());
	formatTMSField.setAllowBlank(false);
	formatTMSField.setWidth(FIELD_WIDTH);
	panel.add(formatTMSField);

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

示例5: createAuthenticationPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private Widget createAuthenticationPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.getElement().getStyle().setBackgroundColor("#E0ECF8");
	panel.setWidth("350px");		
	panel.setSpacing(10);

	userNameField = new TextField();
	userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setWidth(FIELD_WIDTH);
	panel.add(userNameField);

	passwordField = new PasswordField();		
	passwordField.setTitle(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setEmptyText(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setWidth(FIELD_WIDTH);
	panel.add(passwordField);
	
	return panel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:GitHubExportDialog.java

示例6: getWMTSPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getWMTSPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");
	panel.setSpacing(10);

	urlWMTSField = new TextField();
	urlWMTSField.setTitle(UIMessages.INSTANCE.lrasterdUrlField());
	urlWMTSField.setWidth(FIELD_WIDTH);
	urlWMTSField.setAllowBlank(false);

	panel.add(urlWMTSField);

	nameWMTSField = new TextField();
	nameWMTSField.setTitle(UIMessages.INSTANCE
			.lrasterdLayerNameField("WMTS"));
	nameWMTSField.setAllowBlank(false);
	nameWMTSField.setWidth(FIELD_WIDTH);
	panel.add(nameWMTSField);

	formatWMTSField = new TextField();
	formatWMTSField
			.setTitle(UIMessages.INSTANCE.lrasterdImageFormatField());
	formatWMTSField.setAllowBlank(false);
	formatWMTSField.setWidth(FIELD_WIDTH);
	panel.add(formatWMTSField);

	tileMatrixSetField = new TextField();
	tileMatrixSetField.setTitle(UIMessages.INSTANCE
			.lrasterdMatrixSetField());
	tileMatrixSetField.setAllowBlank(false);
	tileMatrixSetField.setWidth(FIELD_WIDTH);
	panel.add(tileMatrixSetField);

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

示例7: createPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的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

示例8: getURLPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getURLPanel() {
	final VerticalPanel geoDataContainer = new VerticalPanel();
	geoDataContainer.setWidth("400px");
	geoDataContainer.setSpacing(3);

	geoDataContainer.add(new Label(UIMessages.INSTANCE.messageURLPanel()));

	urlTextField = new TextField();
	urlTextField.setBorders(true);
	urlTextField.setEmptyText("http://");
	urlTextField.setWidth(400);
	urlTextField.setAllowBlank(false);
	geoDataContainer.add(urlTextField);

	HorizontalPanel horizontalContainer = new HorizontalPanel();
	
	TextButton createUrlButton = new TextButton(
			UIMessages.INSTANCE.urlToShareButtonText());
	
	horizontalContainer.add(createUrlButton);
	
	createUrlButton.addSelectHandler(createUrlToShare(geoDataContainer));		
	geoDataContainer.add(horizontalContainer);
	geoDataContainer.add(createUrlToShareAnchor());

	urlShared = new TextField();
	urlShared.setBorders(true);
	urlShared.setWidth(400);
	urlShared.setVisible(false);
	geoDataContainer.add(urlShared);

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

示例9: getURLPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getURLPanel() {
	final VerticalPanel vPanel = new VerticalPanel();
	vPanel.setWidth("100%");

	vPanel.add(new Label(UIMessages.INSTANCE.messageURLPanel()));

	urlTextField = new TextField();
	urlTextField.setBorders(true);
	urlTextField.setEmptyText("http://");
	urlTextField.setWidth(390);
	urlTextField.setAllowBlank(false);
	vPanel.add(urlTextField);

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

示例10: getAttrValuePanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getAttrValuePanel() {
	VerticalPanel vPanel = new VerticalPanel();
	vPanel.setSpacing(5);
	valueAttributeField = new TextField();
	valueAttributeField.setEnabled(true);
	valueAttributeField.setWidth(FIELD_WIDTH);
	vPanel.add(new Label(UIMessages.INSTANCE.asdAttributeValueLabel()));
	vPanel.add(valueAttributeField);
	
	return vPanel;
	
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:13,代码来源:AttributeSearchDialog.java

示例11: getCompanyNamePanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getCompanyNamePanel() {
	VerticalPanel vPanel = new VerticalPanel();
	vPanel.setSpacing(5);
	companyNameField = new TextField();
	companyNameField.setEnabled(false);
	companyNameField.setWidth(FIELD_WIDTH);
	vPanel.add(new Label(UISgfMessages.INSTANCE.companyLabel()));
	vPanel.add(companyNameField);
	
	return vPanel;
	
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:13,代码来源:VehicleDialog.java

示例12: createTextField

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private TextField createTextField(final String width, final boolean allowBlank,
		final String stakeHolder) {
	final TextField newTextField = new TextField();

	newTextField.setWidth(width);
	newTextField.setAllowBlank(allowBlank);

	if (stakeHolder != null && !stakeHolder.isEmpty()) {
		newTextField.setEmptyText(stakeHolder);
	}

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

示例13: TableManagerViewImpl

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
public TableManagerViewImpl(PlatformContext context,
		TableManagerPresenter presenter) {
	this.tableManagerPresenter = presenter;
	this.context = context;
	dbNameText = new TextField();
	dbNameText.setWidth(280);
	dbNameText.setEmptyText("数据库名称");
	container = uiBinder.createAndBindUi(this);

	commonTableContainer.add(getCommonGrid(), new VerticalLayoutData(1, 1));
	commonTableContainer.add(getToolbar(), new VerticalLayoutData(1, 30));
	commonTableContainer.add(getTableInfoPanel(), new VerticalLayoutData(1,
			220, new Margins(1)));
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:15,代码来源:TableManagerViewImpl.java

示例14: createRepositoryPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private Widget createRepositoryPanel() {
	final VerticalPanel panel = new VerticalPanel();			
	panel.setWidth("350px");		
	panel.setSpacing(10);		
	
	repositoriesButton = new TextButton("...");
	repositoriesButton.setTitle(UIMessages.INSTANCE.gitHubTitleListRepo());
	
	
	final HorizontalPanel repositoryPanel = new HorizontalPanel();
	
	repositoryField = new TextField();
	repositoryField.setTitle(UIMessages.INSTANCE.gitHubRepositoryNameField());		
	repositoryField.setEmptyText(UIMessages.INSTANCE.gitHubRepositoryNameField());
	repositoryField.setWidth(FIELD_WIDTH);
	
	repositoryPanel.add(repositoryField);		
	repositoryPanel.add(repositoriesButton);
	
	panel.add(repositoryPanel);		
	
	pathField = new TextField();
	pathField.setTitle(UIMessages.INSTANCE.gitHubPathNameField());		
	pathField.setEmptyText(UIMessages.INSTANCE.gitHubPathNameField());
	pathField.setWidth(FIELD_WIDTH);
	
	TextButton pathButton = new TextButton("...");
	pathButton.addSelectHandler(getPathEvent());
	
	HorizontalPanel pathPanel = new HorizontalPanel();
	pathPanel.add(pathField);
	pathPanel.add(pathButton);
	
	panel.add(pathPanel);				

	return panel;
}
 
开发者ID:geowe,项目名称:geowe-core,代码行数:38,代码来源:GitHubExportDialog.java

示例15: getWMSPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getWMSPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");
	panel.setSpacing(10);

	urlWMSField = new TextField();
	urlWMSField.setTitle(UIMessages.INSTANCE.lrasterdUrlField());
	urlWMSField.setWidth(FIELD_WIDTH);
	urlWMSField.setAllowBlank(false);

	panel.add(urlWMSField);

	nameWMSField = new TextField();
	nameWMSField
			.setTitle(UIMessages.INSTANCE.lrasterdLayerNameField("WMS"));
	nameWMSField.setAllowBlank(false);
	nameWMSField.setWidth(FIELD_WIDTH);
	panel.add(nameWMSField);

	formatWMSField = new TextField();
	formatWMSField.setTitle(UIMessages.INSTANCE.lrasterdImageFormatField());
	formatWMSField.setAllowBlank(false);
	formatWMSField.setWidth(FIELD_WIDTH);
	panel.add(formatWMSField);

	return panel;
}
 
开发者ID:geowe,项目名称:geowe-core,代码行数:28,代码来源:LoadRasterLayerDialog.java


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