/** * Sets the label to the date field * @param label the label to set */ public void setFieldLabel(String label) { this.fDate.setFieldLabel(label); } }
@Override protected void addSourceField(LayoutContainer lc, LayoutContainer rc) { sourceField = new TextField<String>(); sourceField.setFieldLabel(getFieldLabel()); lc.add(sourceField); }
private void addAxeField() { axeField = new TextField<String>(); axeField.setFieldLabel(I18N.CONSTANTS.axe()); axeField.setMaxLength(50); add(axeField); }
private void addNameField() { nameField = new TextField<String>(); nameField.setFieldLabel(locationType.getName()); nameField.setMaxLength(50); add(nameField); nameField.addKeyListener(new KeyListener() { @Override public void componentKeyDown(ComponentEvent event) { nameTypeAheadTimer.schedule(200); } }); }
public FolderForm() { super(); binding = new FormBinding(this); UiConstants constants = GWT.create(UiConstants.class); nameField = new TextField<String>(); nameField.setFieldLabel(constants.name()); nameField.setMaxLength(PROJECT_MAX_LENGTH); nameField.setAllowBlank(false); nameField.setValidator(new BlankValidator()); binding.addFieldBinding(new FieldBinding(nameField, "name")); this.add(nameField); }
instanceName.setFieldLabel("name"); fieldSet.add(instanceName); instanceDescription.setFieldLabel("description"); fieldSet.add(instanceDescription); instanceBaseURL.setFieldLabel("base url"); fieldSet.add(instanceBaseURL); instanceUsername.setFieldLabel("username"); fieldSet.add(instanceUsername); instancePassword.setAllowBlank(false); instancePassword.setPassword(true); instancePassword.setFieldLabel("password"); fieldSet.add(instancePassword);
public PartnerForm(Set<String> existingPartnerName) { super(); binding = new FormBinding(this); UiConstants constants = GWT.create(UiConstants.class); nameField = new TextField<>(); nameField.setFieldLabel(constants.name()); nameField.setMaxLength(PartnerDTO.NAME_MAX_LENGTH); nameField.setAllowBlank(false); nameField.setValidator(new UniqueNameValidator(existingPartnerName)); binding.addFieldBinding(new FieldBinding(nameField, "name")); this.add(nameField); TextField<String> fullField = new TextField<>(); fullField.setFieldLabel(constants.description()); fullField.setMaxLength(64); binding.addFieldBinding(new FieldBinding(fullField, "fullName")); this.add(fullField); }
roleId.setFieldLabel("Id"); roleId.setReadOnly(true); roleName.setFieldLabel("Nazwa"); roleDescription.setFieldLabel("Opis roli");
userName.setFieldLabel("User name"); fieldSet.add(userName); password.setPassword(true); password.setAllowBlank(false); password.setFieldLabel("Password"); fieldSet.add(password); fullName.setFieldLabel("Full name"); fieldSet.add(fullName); eMail.setFieldLabel("e-mail"); fieldSet.add(eMail);
groupId.setFieldLabel("Id"); groupId.setReadOnly(true); groupName.setFieldLabel("Nazwa"); groupDescription.setFieldLabel("Opis");
@Override public void addComponentToForm() { fieldSet = new FieldSet(); fieldSet.setHeading("Role Information"); FormLayout layout = new FormLayout(); layout.setLabelWidth(80); fieldSet.setLayout(layout); profileName = new TextField<String>(); profileName.setAllowBlank(false); profileName.setFieldLabel("Role name"); fieldSet.add(profileName); this.formPanel.add(fieldSet); addOtherComponents(); }
public ProjectForm() { super(); binding = new FormBinding(this); UiConstants constants = GWT.create(UiConstants.class); nameField = new TextField<String>(); nameField.setFieldLabel(constants.name()); nameField.setMaxLength(PROJECT_MAX_LENGTH); nameField.setAllowBlank(false); nameField.setValidator(new BlankValidator()); binding.addFieldBinding(new FieldBinding(nameField, "name")); this.add(nameField); TextArea descriptionTextArea = new TextArea(); descriptionTextArea.setFieldLabel(constants.description()); descriptionTextArea.setMaxLength(250); binding.addFieldBinding(new FieldBinding(descriptionTextArea, "description")); this.add(descriptionTextArea); }
userName.setId(UpdateUserKey.USER_NAME_ID.getValue()); userName.setName(BeanKeyValue.USER_NAME.getValue()); userName.setFieldLabel("User Name"); fieldSet.add(userName); email.setFieldLabel("Email"); email.setId(UpdateUserKey.EMAIL_UPDATE.getValue()); email.setName(BeanKeyValue.EMAIL.getValue());
public AttributeForm() { binding = new FormBinding(this); final NumberField idField = new NumberField(); idField.setFieldLabel("ID"); idField.setReadOnly(true); binding.addFieldBinding(new FieldBinding(idField, "id")); add(idField); TextField<String> nameField = new TextField<String>(); nameField.setFieldLabel(I18N.CONSTANTS.name()); nameField.setMaxLength(AttributeDTO.NAME_MAX_LENGTH); nameField.setAllowBlank(false); nameField.setValidator(new BlankValidator()); binding.addFieldBinding(new OnlyValidFieldBinding(nameField, "name")); add(nameField); hideFieldWhenNull(idField); }
public DatabaseForm(final Dispatcher dispatcher) { binding = new FormBinding(this); TextField<String> nameField = new TextField<String>(); nameField.setFieldLabel(I18N.CONSTANTS.name()); nameField.setAllowBlank(false); nameField.setValidator(new BlankValidator()); nameField.setMaxLength(UserDatabaseDTO.MAX_NAME_LENGTH); binding.addFieldBinding(new FieldBinding(nameField, "name")); add(nameField); TextField<String> fullNameField = new TextField<String>(); fullNameField.setFieldLabel(I18N.CONSTANTS.description()); fullNameField.setMaxLength(50); binding.addFieldBinding(new FieldBinding(fullNameField, "fullName")); add(fullNameField); countryField = new RemoteComboBox<CountryDTO>(); countryField.setStore(createCountryStore(dispatcher, countryField)); countryField.setFieldLabel(I18N.CONSTANTS.country()); countryField.setValueField("id"); countryField.setDisplayField("name"); countryField.setAllowBlank(false); countryField.setEnabled(true); countryField.setTriggerAction(TriggerAction.ALL); binding.addFieldBinding(new FieldBinding(countryField, "country") { @Override public void updateModel() { ((UserDatabaseDTO) model).setCountry((CountryDTO) field.getValue()); } }); add(countryField); }
databaseField.setFieldLabel(I18N.CONSTANTS.database()); databaseField.setReadOnly(true); add(databaseField); activityField.setFieldLabel(I18N.CONSTANTS.activity()); activityField.setReadOnly(true); add(activityField);
userName.setFieldLabel(I18nProvider.getMessages().usernameLabel()); userName.addKeyListener(keyListener); add(userName); password.setMinLength(PASSWORD_MIN_LENGTH); password.setPassword(true); password.setFieldLabel(I18nProvider.getMessages().passwordLabel()); password.addKeyListener(keyListener); add(password);
nameField.setFieldLabel(I18N.CONSTANTS.name()); nameField.setMaxLength(50); nameField.addListener(Events.Change, new ProfileChangeListener("name")); organizationField.setFieldLabel(I18N.CONSTANTS.organization()); organizationField.setMaxLength(100); organizationField.addListener(Events.Change, new ProfileChangeListener("organization")); jobtitleField.setFieldLabel(I18N.CONSTANTS.jobtitle()); jobtitleField.setMaxLength(100); jobtitleField.addListener(Events.Change, new ProfileChangeListener("jobtitle"));
nameField.setFieldLabel(I18N.CONSTANTS.name()); nameField.setMaxLength(LocationTypeDTO.NAME_MAX_LENGTH); nameField.setAllowBlank(false);
nameField.setFieldLabel(constants.name()); nameField.setMaxLength(255); nameField.setAllowBlank(false);