本文整理汇总了Java中com.sencha.gxt.widget.core.client.form.TextField.setTitle方法的典型用法代码示例。如果您正苦于以下问题:Java TextField.setTitle方法的具体用法?Java TextField.setTitle怎么用?Java TextField.setTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sencha.gxt.widget.core.client.form.TextField
的用法示例。
在下文中一共展示了TextField.setTitle方法的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;
}
示例2: 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;
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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;
}
示例8: 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;
}
示例9: initDistanceTextField
import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private void initDistanceTextField() {
distanceTextField = new TextField();
distanceTextField.setTitle("Distance");
distanceTextField.setWidth(WIDTH_DISTANCE_FIELD);
clearDistanceTextField();
}
示例10: createPanel
import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
private Widget createPanel() {
userNameField = new TextField();
userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setWidth(FIELD_WIDTH);
repositoryField = new TextField();
repositoryField.setTitle("Repositorio");
repositoryField.setEmptyText("Introduce repositorio");
repositoryField.setWidth(FIELD_WIDTH);
pathField = new TextField();
pathField.setTitle(UIMessages.INSTANCE.gitHubPathNameField());
pathField.setEmptyText(UIMessages.INSTANCE.gitHubPathNameField());
pathField.setWidth(FIELD_WIDTH);
TextButton repositoryButton = new TextButton("...");
TextButton pathButton = new TextButton("...");
TextButton loadFilesButton = new TextButton(UIMessages.INSTANCE.loadFiles());
final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
vPanel.add(userNameField);
final HorizontalPanel repositoryPanel = new HorizontalPanel();
repositoryPanel.add(repositoryField);
repositoryPanel.add(repositoryButton);
vPanel.add(repositoryPanel);
final HorizontalPanel pathPanel = new HorizontalPanel();
pathPanel.add(pathField);
pathPanel.add(pathButton);
vPanel.add(pathPanel);
vPanel.add(loadFilesButton);
repositoryButton.addSelectHandler(getRepository());
pathButton.addSelectHandler(getPath());
loadFilesButton.addSelectHandler(requestGetFiles());
vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
final GitHubFileListAttributeBeanProperties props = GWT
.create(GitHubFileListAttributeBeanProperties.class);
repositoryStore = new ListStore<GitHubFileListAttributeBean>(
props.key());
final ColumnConfig<GitHubFileListAttributeBean, String> nameCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
props.attributeName(), 400,
UIMessages.INSTANCE.gitHubColumNameRepo());
// final ColumnConfig<GitHubFileListAttributeBean, String> typeCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
// props.attributeType(), 200, "Type");
final List<ColumnConfig<GitHubFileListAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubFileListAttributeBean, ?>>();
columns.add(nameCol);
//columns.add(typeCol);
final ColumnModel<GitHubFileListAttributeBean> columModel = new ColumnModel<GitHubFileListAttributeBean>(
columns);
grid = new Grid<GitHubFileListAttributeBean>(repositoryStore,
columModel);
// grid.setSelectionModel(new
// CellSelectionModel<GitHubRepositoryAttributeBean>());
grid.getColumnModel().getColumn(0).setHideable(false);
grid.setAllowTextSelection(true);
grid.getView().setStripeRows(true);
grid.getView().setColumnLines(true);
grid.setBorders(false);
GridSelectionModel<GitHubFileListAttributeBean> sm = new GridSelectionModel<GitHubFileListAttributeBean>();
sm.setSelectionMode(SelectionMode.SINGLE);
grid.setSelectionModel(sm);
setGridDragable(grid);
vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(30, 0, 0, 0)));
return vPanel;
}
示例11: GitHubImportTab
import com.sencha.gxt.widget.core.client.form.TextField; //导入方法依赖的package包/类
public GitHubImportTab() {
super();
setWidth(350);
userNameField = new TextField();
userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setWidth(150);
repositoryField = new TextField();
repositoryField.setTitle("Repositorio");
repositoryField.setEmptyText("Introduce repositorio");
repositoryField.setWidth(150);
pathField = new TextField();
pathField.setTitle(UIMessages.INSTANCE.gitHubPathNameField());
pathField.setEmptyText(UIMessages.INSTANCE.gitHubPathNameField());
pathField.setWidth(FIELD_WIDTH);
TextButton repositoryButton = new TextButton("...");
TextButton pathButton = new TextButton("...");
TextButton loadFilesButton = new TextButton(
UIMessages.INSTANCE.loadFiles());
final HorizontalPanel repositoryPanel = new HorizontalPanel();
repositoryPanel.add(userNameField);
repositoryPanel.add(repositoryField);
repositoryPanel.add(repositoryButton);
add(repositoryPanel);
final HorizontalPanel pathPanel = new HorizontalPanel();
pathPanel.add(pathField);
pathPanel.add(pathButton);
add(pathPanel);
add(loadFilesButton);
repositoryButton.addSelectHandler(getRepository());
pathButton.addSelectHandler(getPath());
loadFilesButton.addSelectHandler(requestGetFiles());
addStyleName(ThemeStyles.get().style().borderBottom());
final GitHubFileListAttributeBeanProperties props = GWT
.create(GitHubFileListAttributeBeanProperties.class);
fileStore = new ListStore<GitHubFileListAttributeBean>(
props.key());
final ColumnConfig<GitHubFileListAttributeBean, String> nameCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
props.attributeName(), 330,
UIMessages.INSTANCE.gitHubColumNameRepo());
final List<ColumnConfig<GitHubFileListAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubFileListAttributeBean, ?>>();
columns.add(nameCol);
final ColumnModel<GitHubFileListAttributeBean> columModel = new ColumnModel<GitHubFileListAttributeBean>(
columns);
grid = new Grid<GitHubFileListAttributeBean>(fileStore,
columModel);
grid.getView().setAutoFill(false);
grid.setWidth(260);
grid.getColumnModel().getColumn(0).setHideable(false);
grid.setAllowTextSelection(true);
grid.getView().setStripeRows(true);
grid.getView().setColumnLines(true);
grid.setBorders(false);
setGridDragable(grid);
add(grid, new VerticalLayoutData(1, 1, new Margins(5, 0, 0, 0)));
}