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


Java TextField类代码示例

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


TextField类属于com.sencha.gxt.widget.core.client.form包,在下文中一共展示了TextField类的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: 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

示例3: createPrompt

import com.sencha.gxt.widget.core.client.form.TextField; //导入依赖的package包/类
private void createPrompt() {
	final TextField epsgTextField = new TextField();
	epsgTextField.setText(layer.getProjection().getProjectionCode());
	epsgTextField.setEnabled(false);
	final PromptMessageBox messageBox = new PromptMessageBox(
			 UIMessages.INSTANCE.celtPromptTitle(), UIMessages.INSTANCE.celtPromptLabel());

	messageBox.add(epsgTextField);
	messageBox.getButton(PredefinedButton.OK).addSelectHandler(
			new SelectHandler() {
				@Override
				public void onSelect(final SelectEvent event) {
					final String value = messageBox.getValue();
					layerManagerWidget.addVector(createVectorLayer(
							selectedFeatures, value));
				}
			});
	messageBox.show();
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:20,代码来源:CreateNewLayerTool.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: 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

示例7: getTextField

import com.sencha.gxt.widget.core.client.form.TextField; //导入依赖的package包/类
public TextField getTextField() {
   final FileManagerGridInlineEditingTextField textField = new FileManagerGridInlineEditingTextField();
   textField.addFocusHandler(new FocusHandler() {
	@Override
	public void onFocus(FocusEvent event) {
		String text = textField.getText();
		if(text!=null&&!text.trim().isEmpty()) {
			int length=text.lastIndexOf('.');
			if(length<0) {
				length=text.length();
			}
			textField.select(0, length);
		}
	}
});
   return textField;
 }
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:18,代码来源:FileManagerGridInlineEditing.java

示例8: createField

import com.sencha.gxt.widget.core.client.form.TextField; //导入依赖的package包/类
public <T> Field<T> createField(Class<T> clazz) {
    if (clazz.getName().equals(String.class.getName())) {
        return (Field<T>) new TextField() {
            {
                setValue("");
            }
        };
    }
    if (clazz.getName().equals(Boolean.class.getName())) {
        return (Field<T>) new CheckBox() {
            {
                setValue(true);
            }
        };
    }
    throw new RuntimeException("Could not create field for class: " + clazz);
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:18,代码来源:EditorFieldFactory.java

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

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

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

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

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

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

示例15: addFocusHandler

import com.sencha.gxt.widget.core.client.form.TextField; //导入依赖的package包/类
private void addFocusHandler(final TextField textField) {
	textField.addFocusHandler(new FocusHandler() {
		@Override
		public void onFocus(FocusEvent event) {
			lastFocusedTextField = textField;
			colorPicker.slide(true);
		}
	});
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:10,代码来源:ColorStyleTab.java


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