public class FieldTracking extends java.lang.Object implements IFieldTracking, java.io.Serializable
IFieldTracking.| Modifier and Type | Method and Description |
|---|---|
IFormComponent |
getComponent()
Returns the field component.
|
ValidationConstraint |
getConstraint()
Returns the validation constraint that was violated by the input.
|
IRender |
getErrorRenderer()
Returns an object that will render the error message.
|
java.lang.String |
getFieldName()
Returns the name of the field, that is, the name assigned by the form (this will differ from
the component's id when any kind of looping operation is in effect).
|
java.lang.String |
getInput()
Returns the invalid input recorded for the field.
|
boolean |
isInError()
Returns true if the field is in error (that is, if it has an error message
renderer. |
void |
setConstraint(ValidationConstraint constraint) |
void |
setErrorRenderer(IRender value) |
void |
setInput(java.lang.String value) |
public IFormComponent getComponent()
IFieldTrackinggetComponent in interface IFieldTrackingpublic IRender getErrorRenderer()
IFieldTrackingtoString() that does not produce markup, but is a simple message.getErrorRenderer in interface IFieldTrackingValidatorException.ValidatorException(String, IRender, ValidationConstraint)public void setErrorRenderer(IRender value)
public java.lang.String getInput()
IFieldTrackinggetInput in interface IFieldTrackingpublic void setInput(java.lang.String value)
public java.lang.String getFieldName()
IFieldTrackinggetFieldName in interface IFieldTrackingpublic ValidationConstraint getConstraint()
IFieldTrackinggetConstraint in interface IFieldTrackingpublic void setConstraint(ValidationConstraint constraint)
public boolean isInError()
IFieldTrackingrenderer.isInError in interface IFieldTracking