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.boolean
Indicates that the value is set to default.boolean
isEmpty()
Indicates that the value of this field is empty.boolean
isSet()
Indicates that the value of this field is set.void
Set the value of this field.void
Set the field to its default value.void
Remote validation is not supported, therefore, this method will throw UnsupportedOperationException, always.
-
Method Details
-
getName
Returns the name of the field.- Specified by:
getName
in 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:
getType
in 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:
isSet
in 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:
isEmpty
in 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:
isDefault
in 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:
get
in 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:
set
in 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:
setToDefault
in 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:
validate
in interfaceFormField<T>
- Parameters:
value
- The value to validate.- Throws:
UnsupportedOperationException
- Always.- Since:
- 5.0.102
-