|
|||||||||
| 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 |
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)
|
| 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() of the renderer can be used as a simple error message.
getErrorRenderer in interface IFieldTrackingpublic 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 IFieldTrackingpublic void setConstraint(ValidationConstraint constraint)
public boolean isInError()
IFieldTrackingrenderer.
isInError in interface IFieldTracking
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||