/** * Construct. * * @param id * component id * @param emailAddress * the email input value */ public EmailTextField(String id, final String emailAddress) { this(id, Model.of(emailAddress)); }
/** * Creates an external image * * @param id * the component id * @param src * the source URL */ public ExternalImage(String id, Serializable src) { this(id, Model.of(src), Model.ofList(Collections.<Serializable> emptyList())); }
/** * Construct. * * @param id * component id * @param url * the url input value */ public UrlTextField(String id, final String url) { this(id, Model.of(url)); }
/** * Creates an external image * * @param id * the component id * @param src * the source URL */ public ExternalImage(String id, Serializable src) { this(id, Model.of(src), Model.ofList(Collections.<Serializable> emptyList())); }
/** * Create the model for the checkbox, defaults to {@link Boolean#FALSE}. * * @param model * @return wrapping model */ protected IModel<Boolean> newCheckBoxModel(IModel<T> model) { return Model.of(Boolean.FALSE); }
/** * Sets the step attribute * * @param step * the step attribute * @return this instance */ public NumberTextField<N> setStep(final N step) { this.step = Model.of(step); return this; }
/** * Sets the step attribute * * @param step * the step attribute * @return this instance */ public NumberTextField<N> setStep(final N step) { this.step = Model.of(step); return this; }
/** * Sets the minimum allowed value * * @param minimum * the minimum allowed value * @return this instance */ public NumberTextField<N> setMinimum(final N minimum) { this.minimum = Model.of(minimum); return this; }
/** * Constructor. * * @param id * The name of this component * @param href * the href attribute to set */ public ExternalLink(final String id, final String href) { this(id, Model.of(href)); }
/** * Sets the maximum allowed value * * @param maximum * the maximum allowed value * @return this instance */ public NumberTextField<N> setMaximum(final N maximum) { this.maximum = Model.of(maximum); return this; }
/** * Creates a new instance. */ public CSVDataExporter() { super(Model.of("CSV"), "text/csv", "csv"); }
/** * Sets the minimum allowed value * * @param minimum * the minimum allowed value * @return this instance */ public NumberTextField<N> setMinimum(final N minimum) { this.minimum = Model.of(minimum); return this; }
/** * Construct. * * @param challengeId * The id of the challenge */ public CaptchaImageResource(final String challengeId) { this(Model.of(challengeId)); }
/** * Constructor. * * @param id * The name of this component * @param href * the href attribute to set */ public ExternalLink(final String id, final String href) { this(id, Model.of(href)); }
/** * Sets the maximum allowed value * * @param maximum * the maximum allowed value * @return this instance */ public NumberTextField<N> setMaximum(final N maximum) { this.maximum = Model.of(maximum); return this; }
/** * Construct. * * @param id * component id * @param url * the url input value */ public UrlTextField(String id, final String url) { this(id, Model.of(url)); }
/** * Sets the default value if the resource key is not found. * * @param defaultValue * The default value as string if the resource key is not found. * @return this for chaining */ public StringResourceModel setDefaultValue(final String defaultValue) { return setDefaultValue(Model.of(defaultValue)); }
/** * Factory method to create <link> tag. * * @param href * the 'href' attribute of the tag as String * @return A new {@link MetaDataHeaderItem} */ public static MetaDataHeaderItem forImportLinkTag(String href) { return forImportLinkTag(Model.of(href), false); }
/** * Sets the default value if the resource key is not found. * * @param defaultValue * The default value as string if the resource key is not found. * @return this for chaining */ public StringResourceModel setDefaultValue(final String defaultValue) { return setDefaultValue(Model.of(defaultValue)); }
/** * Factory method to create <link> tag. * * @param href * the 'href' attribute of the tag as String * @return A new {@link MetaDataHeaderItem} */ public static MetaDataHeaderItem forImportLinkTag(String href) { return forImportLinkTag(Model.of(href), false); }