/** * @param labelDescription the labelDescription to set * @return this for chaining. */ public FieldProperties<T> setLabelDescription(final String labelDescription) { return setLabelDescription(labelDescription, true); }
public FieldProperties<String> getAddressTextProperties(final String addressType, final String addressTextProperty) { return new FieldProperties<String>("address.addressText", new PropertyModel<String>(address, addressTextProperty)) .setLabelDescription( addressType, false); }
public FieldProperties<String> getAddressTextProperties(final String addressType, final String addressTextProperty) { return new FieldProperties<String>("address.addressText", new PropertyModel<String>(contact, addressTextProperty)) .setLabelDescription( addressType, false); }
public FieldProperties<String> getEmailProperties() { return new FieldProperties<String>("email", new PropertyModel<String>(address, "email")) .setLabelDescription("address.business") .setFieldType(FieldType.E_MAIL); }
public FieldProperties<String> getPrivateEmailProperties() { return new FieldProperties<String>("email", new PropertyModel<String>(contact, "privateEmail")) .setLabelDescription("contact.private") .setFieldType(FieldType.E_MAIL); }
public FieldProperties<String> getPhoneNumberProperties(final String property, final String labelKey, final String labelDescriptionKey, final FieldType fieldType) { return new FieldProperties<String>(labelKey, new PropertyModel<String>(contact, property)) .setLabelDescription(labelDescriptionKey) .setFieldType(fieldType); }
public FieldProperties<String> getPrivateEmailProperties() { return new FieldProperties<String>("email", new PropertyModel<String>(address, "privateEmail")) .setLabelDescription("address.private") .setFieldType(FieldType.E_MAIL); }
public FieldProperties<String> getPhoneNumberProperties(final String property, final String labelKey, final String labelDescriptionKey, final FieldType fieldType) { return new FieldProperties<String>(labelKey, new PropertyModel<String>(address, property)) .setLabelDescription(labelDescriptionKey) .setFieldType(fieldType); }
public FieldProperties<String> getEmailProperties() { return new FieldProperties<String>("email", new PropertyModel<String>(contact, "email")) .setLabelDescription("contact.business") .setFieldType(FieldType.E_MAIL); }