本文整理汇总了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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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)));
}
示例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;
}
示例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;
}