|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IFieldTracking
public IRender getErrorRenderer()
IFieldTracking
toString()
of the renderer can be used as a simple error message.
getErrorRenderer
in interface IFieldTracking
public void setErrorRenderer(IRender value)
public String getInput()
IFieldTracking
getInput
in interface IFieldTracking
public void setInput(String value)
public String getFieldName()
IFieldTracking
getFieldName
in interface IFieldTracking
public ValidationConstraint getConstraint()
IFieldTracking
getConstraint
in interface IFieldTracking
public void setConstraint(ValidationConstraint constraint)
public boolean isInError()
IFieldTracking
renderer
.
isInError
in interface IFieldTracking
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |