|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.form.ValidationMessagesImpl
org.apache.tapestry.form.FormComponentContributorContextImpl
public class FormComponentContributorContextImpl
Implementation of FormComponentContributorContext
.
Constructor Summary | |
---|---|
FormComponentContributorContextImpl(Locale locale,
IRequestCycle cycle,
IFormComponent field)
|
Method Summary | |
---|---|
void |
addInitializationScript(IComponent target,
String script)
Adds initialization javascript code that will be executed on page/content/etc load. |
void |
addSubmitHandler(String submitListener)
Adds initialization to register a submit handler on the client side. |
JSONObject |
getProfile()
The javascript object profile being built by this context to validate/translate form values. |
void |
includeClasspathScript(String path)
Includes the indicated script; the path is a path on the classpath. |
void |
registerForFocus(int priority)
Registers a field for automatic focus. |
Methods inherited from class org.apache.tapestry.form.ValidationMessagesImpl |
---|
formatValidationMessage, getLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.form.ValidationMessages |
---|
formatValidationMessage, getLocale |
Constructor Detail |
---|
public FormComponentContributorContextImpl(Locale locale, IRequestCycle cycle, IFormComponent field)
Method Detail |
---|
public void includeClasspathScript(String path)
FormComponentContributorContext
includeClasspathScript
in interface FormComponentContributorContext
public void addSubmitHandler(String submitListener)
FormComponentContributorContext
addSubmitHandler
in interface FormComponentContributorContext
submitListener
- either the name of a submit listener ("myListener"), or an inline implementation
of a listener function ("function(event) { ... } ").public void addInitializationScript(IComponent target, String script)
FormComponentContributorContext
addInitializationScript
in interface FormComponentContributorContext
target
- The component the script is being added for.script
- The javascript code to execute.public void registerForFocus(int priority)
FormComponentContributorContext
registerForFocus
in interface FormComponentContributorContext
priority
- a priority level used to determine whether the registered field becomes the focus
field. Constants for this purpose are defined in ValidationConstants
.FormBehavior.registerForFocus(IFormComponent, int)
public JSONObject getProfile()
FormComponentContributorContext
FormBehavior
.
getProfile
in interface FormComponentContributorContext
JSONObject
profile.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |