|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.valid.FieldTracking
public class FieldTracking
Default implementation of IFieldTracking.
| Method Summary | |
|---|---|
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. |
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). |
String |
getInput()
Returns the invalid input recorded for the field. |
boolean |
getRenderError()
Whether or not any errors found should cause field decoration / error renderers to render. |
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(String value)
|
void |
setRenderError(boolean value)
Sets whether or not to render errors for this tracking. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IFormComponent getComponent()
IFieldTracking
getComponent in interface IFieldTrackingpublic IRender getErrorRenderer()
IFieldTrackingtoString() that does
not produce markup, but is a simple message.
getErrorRenderer in interface IFieldTrackingIRender responsible for rendering the error, or null if none is set.ValidatorException.ValidatorException(String, IRender,
ValidationConstraint)public void setErrorRenderer(IRender value)
public String getInput()
IFieldTracking
getInput in interface IFieldTrackingpublic void setInput(String value)
public String getFieldName()
IFieldTracking
getFieldName in interface IFieldTrackingpublic ValidationConstraint getConstraint()
IFieldTracking
getConstraint in interface IFieldTrackingValidationConstraint that caused the field error.public void setConstraint(ValidationConstraint constraint)
public boolean isInError()
IFieldTrackingrenderer.
isInError in interface IFieldTrackingpublic boolean getRenderError()
IFieldTracking
getRenderError in interface IFieldTrackingpublic void setRenderError(boolean value)
IFieldTracking
setRenderError in interface IFieldTrackingvalue - Whether or not to render errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||