Package de.espirit.firstspirit.forms
Interface RemoteFormField<T>
- Type Parameters:
T- Type of value, seeget(),getType(), andvalidate(Object).
- All Superinterfaces:
FormField<T>
Language specific property container of a form's field. It differs from
FormField in that
any method call might result in a RemoteFormData.InaccessibleException, if the remote field is no longer
accessible.- Since:
- 5.0.102
-
Method Summary
Modifier and TypeMethodDescriptionget()Provides the current value of the field.getName()Returns the name of the field.getType()Get the type of the field's value.booleanIndicates that the value is set to default.booleanisEmpty()Indicates that the value of this field is empty.booleanisSet()Indicates that the value of this field is set.voidSet the value of this field.voidSet the field to its default value.voidRemote validation is not supported, therefore, this method will throw UnsupportedOperationException, always.
-
Method Details
-
getName
Returns the name of the field.- Specified by:
getNamein interfaceFormField<T>- Returns:
- The field's name.
- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
getType
Get the type of the field's value.- Specified by:
getTypein interfaceFormField<T>- Returns:
- The field's type.
- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
isSet
Indicates that the value of this field is set.- Specified by:
isSetin interfaceFormField<T>- Returns:
true, iff field is set.- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
isEmpty
Indicates that the value of this field is empty.- Specified by:
isEmptyin interfaceFormField<T>- Returns:
true, iff field evaluates to empty.- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
isDefault
Indicates that the value is set to default.- Specified by:
isDefaultin interfaceFormField<T>- Returns:
true, iff field is set to default.- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
get
Provides the current value of the field.- Specified by:
getin interfaceFormField<T>- Returns:
- The field's value.
- Throws:
RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
set
void set(Object value) throws InappropriateValueException, UnsupportedOperationException, RemoteFormData.InaccessibleException Set the value of this field.- Specified by:
setin interfaceFormField<T>- Parameters:
value- The value to be set.- Throws:
InappropriateValueException- If the given value is not appropriate for this field.UnsupportedOperationException- If the field does not support setting its value.RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
- See Also:
-
setToDefault
Set the field to its default value.- Specified by:
setToDefaultin interfaceFormField<T>- Throws:
UnsupportedOperationException- If the field does not support setting its value.RemoteFormData.InaccessibleException- If the field is (no longer) accessible.- Since:
- 5.0.102
-
validate
Remote validation is not supported, therefore, this method will throw UnsupportedOperationException, always.- Specified by:
validatein interfaceFormField<T>- Parameters:
value- The value to validate.- Throws:
UnsupportedOperationException- Always.- Since:
- 5.0.102
-