public AbstractFieldsetPanel<?> addPublicKey() { final FieldProperties<String> props = getPublicKeyProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextArea(TextAreaPanel.WICKET_ID, props.getModel()));// .setAutogrow(); return fs; }
public AbstractFieldsetPanel<?> addComment() { final FieldProperties<String> props = getCommentProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final MaxLengthTextArea comment = new MaxLengthTextArea(TextAreaPanel.WICKET_ID, props.getModel()); fs.add(comment, true); return fs; }
public AbstractFieldsetPanel<?> addPrivateEmail() { final FieldProperties<String> props = getPrivateEmailProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getModel()), props); return fs; }
public AbstractFieldsetPanel<?> addFingerPrint() { final FieldProperties<String> props = getFingerPringProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getModel())); return fs; }
public AbstractFieldsetPanel<?> addState(final String stateProperty) { final FieldProperties<String> props = getStateProperties(stateProperty); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getModel())); return fs; }
public AbstractFieldsetPanel<?> addTitle() { final FieldProperties<String> props = getTitleProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getModel())); return fs; }
public AbstractFieldsetPanel<?> addDivision() { final FieldProperties<String> props = getDivisionProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getModel())); return fs; }
public AbstractFieldsetPanel<?> addPosition() { final FieldProperties<String> props = getPositionTextProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); fs.add(new MaxLengthTextField(fs.getTextFieldId(), props.getPropertyModel())); return fs; }
public AbstractFieldsetPanel<?> addPublicKey() { final FieldProperties<String> props = getPublicKeyProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextArea textArea = new MaxLengthTextArea(TextAreaPanel.WICKET_ID, props.getModel()); textArea.setMarkupId("publicKey").setOutputMarkupId(true); fs.add(textArea);// .setAutogrow(); return fs; }
public AbstractFieldsetPanel<?> addEmail() { final FieldProperties<String> props = getEmailProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); textField.setMarkupId("email").setOutputMarkupId(true); fs.add(textField, props); return fs; }
public AbstractFieldsetPanel<?> addState(final String stateProperty) { final FieldProperties<String> props = getStateProperties(stateProperty); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); textField.setMarkupId("state").setOutputMarkupId(true); fs.add(textField); return fs; }
public AbstractFieldsetPanel<?> addTitle() { final FieldProperties<String> props = getTitleProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); textField.setMarkupId("title").setOutputMarkupId(true); fs.add(textField); return fs; }
public AbstractFieldsetPanel<?> addPosition() { final FieldProperties<String> props = getPositionTextProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getPropertyModel()); textField.setMarkupId("position").setOutputMarkupId(true); fs.add(textField); return fs; }
public AbstractFieldsetPanel<?> addPrivateEmail() { final FieldProperties<String> props = getPrivateEmailProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); textField.setMarkupId("privateEmail").setOutputMarkupId(true); fs.add(textField, props); return fs; }
public AbstractFieldsetPanel<?> addPhoneNumber(final String property, final String labelKey, final String labelDescriptionKey, final FieldType fieldType) { final FieldProperties<String> props = getPhoneNumberProperties(property, labelKey, labelDescriptionKey, fieldType); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final MaxLengthTextField phoneNumber = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); fs.add(phoneNumber, props); phoneNumber.add(new PhoneNumberValidator()); return fs; }
public AbstractFieldsetPanel<?> addCity(final String cityProperty) { final FieldProperties<String> props = getCityProperties(cityProperty); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); MaxLengthTextField textField = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); textField.setMarkupId("city").setOutputMarkupId(true); fs.add(textField); return fs; }
public AbstractFieldsetPanel<?> addPhoneNumber(final String property, final String labelKey, final String labelDescriptionKey, final FieldType fieldType) { final FieldProperties<String> props = getPhoneNumberProperties(property, labelKey, labelDescriptionKey, fieldType); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final MaxLengthTextField phoneNumber = new MaxLengthTextField(fs.getTextFieldId(), props.getModel()); fs.add(phoneNumber, props); phoneNumber.setMarkupId("phoneNumber").setOutputMarkupId(true); phoneNumber.add(new PhoneNumberValidator()); return fs; }
public AbstractFieldsetPanel<?> addFormOfAddress() { final FieldProperties<FormOfAddress> props = getFormOfAddressProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final LabelValueChoiceRenderer<FormOfAddress> formChoiceRenderer = new LabelValueChoiceRenderer<FormOfAddress>(form, FormOfAddress.values()); fs.addDropDownChoice(props.getModel(), formChoiceRenderer.getValues(), formChoiceRenderer).setRequired(true) .setNullValid(false).getDropDownChoice().setMarkupId("form").setOutputMarkupId(true); return fs; }
public AbstractFieldsetPanel<?> addContactStatus() { final FieldProperties<ContactStatus> props = getContactStatusProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final LabelValueChoiceRenderer<ContactStatus> contactStatusChoiceRenderer = new LabelValueChoiceRenderer<ContactStatus>( form, ContactStatus.values()); fs.addDropDownChoice(props.getModel(), contactStatusChoiceRenderer.getValues(), contactStatusChoiceRenderer) .setRequired(true) .setNullValid(false).getDropDownChoice().setMarkupId("contactStatus").setOutputMarkupId(true); return fs; }
public AbstractFieldsetPanel<?> addAddressStatus() { final FieldProperties<AddressStatus> props = getAddressStatusProperties(); final AbstractFieldsetPanel<?> fs = gridBuilder.newFieldset(props); final LabelValueChoiceRenderer<AddressStatus> addressStatusChoiceRenderer = new LabelValueChoiceRenderer<AddressStatus>( form, AddressStatus.values()); fs.addDropDownChoice(props.getModel(), addressStatusChoiceRenderer.getValues(), addressStatusChoiceRenderer) .setRequired(true) .setNullValid(false).getDropDownChoice().setMarkupId("addressStatus").setOutputMarkupId(true); return fs; }