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


Java TextField.setAllowBlank方法代码示例

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


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

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

示例2: getAuthenticationPanel

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private VerticalPanel getAuthenticationPanel() {
	final VerticalPanel panel = new VerticalPanel();

	panel.setWidth("150px");
	panel.setSpacing(10);
	Anchor anchor = new AnchorBuilder().setHref("http://www.geowe.org")
			.setImage(new Image(ImageProvider.INSTANCE.geoweSquareLogo()))
			.build();
	panel.add(anchor);

	userNameField = new TextField();
	userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setWidth(120);
	userNameField.setAllowBlank(false);
	// userNameField.focus();
	panel.add(userNameField);

	passwordField = new PasswordField();
	passwordField.setTitle(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setEmptyText(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setWidth(120);
	passwordField.setAllowBlank(false);
	panel.add(passwordField);

	progressImage = new Image(ImageProvider.INSTANCE.circleProgress());
	progressImage.setVisible(false);
	panel.add(progressImage);
	return panel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:31,代码来源:Welcome.java

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

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

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

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

示例7: 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,项目名称:sig-seguimiento-vehiculos,代码行数:28,代码来源:LoadRasterLayerDialog.java

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

示例9: createLayout

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

示例10: CardEditGroup

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
public CardEditGroup(final GroupPresenter presenter){
	this.presenter=presenter;
	this.model=presenter.getGroupModel();
	name=new TextField();
	name.setAllowBlank(false);
	desc=new TextArea();
	
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	centerContainer.setScrollMode(ScrollMode.AUTOY);
	
	FieldSet one=new FieldSet();
	one.setHeadingText("基本信息");
	VerticalLayoutContainer p1 = new VerticalLayoutContainer();
	p1.add(new FieldLabel(name, "名称"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
	p1.add(new FieldLabel(desc, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
	one.add(p1);
	
	centerContainer.add(one,new MarginData(5));
	
	final FieldSet two=new FieldSet();
	two.setHeadingText("配置项信息");
	configs=new TextArea();
	configs.setResizable(TextAreaInputCell.Resizable.BOTH);
	configs.addValidator(FormatUtil.propValidator);
	configs.setWidth(800);
	configs.setHeight(150);
	two.add(configs);
	
	centerContainer.add(two,new MarginData(5));
	
	final FieldSet three=new FieldSet();
	three.setHeadingText("资源信息");
	resources=new TextArea();
	resources.setResizable(Resizable.BOTH);
	resources.setWidth(800);
	resources.setHeight(150);
	resources.addValidator(FormatUtil.resourceValidator);
	three.add(resources);
	centerContainer.add(three,new MarginData(5));
	
	setCenter(centerContainer);
	
	addButton(new TextButton("返回", new SelectHandler() {
		public void onSelect(SelectEvent event) {
			presenter.display(presenter.getGroupModel());
		}
	}));
	addButton(upload);
	addButton(save);
	
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:52,代码来源:CardEditGroup.java

示例11: NewJobWindow

import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
public NewJobWindow(PlatformBus bus,GroupModel groupModel){
	this.bus=bus;
	this.groupModel=groupModel;
	setModal(true);
	setHeight(150);
	setWidth(350);
	
	setHeadingText(groupModel.getName()+" 下新建任务");
	
	formPanel=new FormPanel();
	VerticalLayoutContainer p=new VerticalLayoutContainer();
	formPanel.add(p);
	
	name=new TextField();
	name.setAllowBlank(false);
	p.add(new FieldLabel(name, "任务名称"),new VerticalLayoutData(1,-1));
	
	ListStore<Map<String, String>> jobTypeStore=new ListStore<Map<String, String>>(new ModelKeyProvider<Map<String, String>>() {
		public String getKey(Map<String, String> item) {
			return item.get("name");
		}
	});
	Map<String, String> javamain=new HashMap<String, String>();
	javamain.put("name", JobModel.MapReduce);
	jobTypeStore.add(javamain);
	Map<String, String> shell=new HashMap<String, String>();
	shell.put("name", JobModel.SHELL);
	jobTypeStore.add(shell);
	Map<String, String> hive=new HashMap<String, String>();
	hive.put("name", JobModel.HIVE);
	jobTypeStore.add(hive);
	jobType=new ComboBox<Map<String, String>>(jobTypeStore,new LabelProvider<Map<String, String>>() {
		public String getLabel(Map<String, String> item) {
			return item.get("name");
		}
	});
	jobType.setAllowBlank(false);
	jobType.setTypeAhead(true);
	jobType.setTriggerAction(TriggerAction.ALL);
	jobType.setEditable(false);
	
	
	jobType.setStore(jobTypeStore);
	
	p.add(new FieldLabel(jobType, "任务类型"),new VerticalLayoutData(1, -1));
	
	add(formPanel);
	addButton(save);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:50,代码来源:NewJobWindow.java


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