本文整理汇总了Java中com.sencha.gxt.widget.core.client.form.TextField类的典型用法代码示例。如果您正苦于以下问题:Java TextField类的具体用法?Java TextField怎么用?Java TextField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextField类属于com.sencha.gxt.widget.core.client.form包,在下文中一共展示了TextField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: 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
示例17: 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
示例18: 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
示例19: 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,项目名称:sig-seguimiento-vehiculos,代码行数:38,代码来源:GitHubExportDialog.java
示例20: 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
注:本文中的com.sencha.gxt.widget.core.client.form.TextField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论