|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.web.forms.FieldRefresher
public abstract class FieldRefresher
Refreshes the value of a field (or fields) before the field is displayed to the user. Refreshed values are typically retrieved from a database.
Constructor Summary | |
---|---|
FieldRefresher()
|
Method Summary | |
---|---|
boolean |
isSubmitValid(FormData fd)
There must be a way to figure out if the client hacked/delete/modified the form before submitting it. |
abstract void |
refresh(FormData fd)
Refresh the value of the field. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldRefresher()
Method Detail |
---|
public abstract void refresh(FormData fd) throws java.io.IOException, java.sql.SQLException
It is possible for the specified form data to be null.
fd
- the form data object, possibly null if there
is no submit data.
java.io.IOException
java.sql.SQLException
public boolean isSubmitValid(FormData fd)
Dependency.isSubmitDataValid(fc.web.forms.FormData)
method.
This method can be implemented to check the submitted values and return
true if the submit was valid, false otherwise.
The default implementation always returns true.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |