public abstract class AbstractField<F extends AbstractField<F>> extends java.lang.Object implements Field
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractField(java.lang.String type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
F |
help(java.lang.String value)
Adds some help text to the field.
|
F |
label(java.lang.String label) |
F |
optional() |
F |
readOnly() |
F |
validation(java.lang.String value) |
F |
value(java.lang.Object value) |
F |
visibleIf(java.lang.String value) |
protected AbstractField(java.lang.String type,
java.lang.String name)
public F optional()
public F readOnly()
public F visibleIf(java.lang.String value)
public F label(java.lang.String label)
public F validation(java.lang.String value)
public F help(java.lang.String value)
@file: prefix and append the path to an HTML fragment file. The path
to this file is relative to the src/app of the static Web application.
For an extension, prefix the path with the extension path, for example extension/git/.
For the actual HTML file, use the html.$class.$field.tpl.html format, for example: help.net.nemerosa.ontrack.extension.git.model.GitConfiguration.indexationInterval.tpl.html.