|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.ClientBehaviorSupportImpl
public class ClientBehaviorSupportImpl
Constructor Summary | |
---|---|
ClientBehaviorSupportImpl(JavaScriptSupport javascriptSupport,
Environment environment)
|
Method Summary | |
---|---|
void |
addFormFragment(String clientId,
boolean alwaysSubmit,
String showFunctionName,
String hideFunctionName)
Deprecated. Use addFormFragment(String, boolean, String, String, String) instead |
void |
addFormFragment(String clientId,
boolean alwaysSubmit,
String showFunctionName,
String hideFunctionName,
String visibilityBoundFunctionName)
Adds a new client-side Tapestry.FormFragment object. |
void |
addFormFragment(String clientId,
String showFunctionName,
String hideFunctionName)
Deprecated. Use addFormFragment(String,boolean,String,String) instead |
void |
addFormInjector(String clientId,
Link link,
InsertPosition insertPosition,
String showFunctionName)
Adds a new client-side Tapestry.FormInjector object. |
void |
addValidation(Field field,
String validationName,
String message,
Object constraint)
Collects field validation information. |
void |
addZone(String clientId,
String showFunctionName,
String updateFunctionName)
Adds a new client-side Tapestry.Zone object. |
void |
commit()
Invoked at the end of rendering to commit (to the JavaScriptSupport ) any accumulated
validations. |
void |
linkZone(String linkId,
String elementId,
Link eventLink)
Sets the client-side onclick handler for an <a> element to perform an Ajax update of a zone. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientBehaviorSupportImpl(JavaScriptSupport javascriptSupport, Environment environment)
Method Detail |
---|
public void addZone(String clientId, String showFunctionName, String updateFunctionName)
ClientBehaviorSupport
addZone
in interface ClientBehaviorSupport
clientId
- client-side id of the element that will be updated by the zoneshowFunctionName
- name of the function used to initially show the zone (if not visible), or null for
defaultupdateFunctionName
- name of function used to highlight the function after an update, or null for defaultpublic void linkZone(String linkId, String elementId, Link eventLink)
ClientBehaviorSupport
linkZone
in interface ClientBehaviorSupport
linkId
- id of the link to Ajax enableelementId
- id of an element that has been previously registered as a Zonepublic void addFormFragment(String clientId, String showFunctionName, String hideFunctionName)
addFormFragment(String,boolean,String,String)
instead
ClientBehaviorSupport
addFormFragment
in interface ClientBehaviorSupport
clientId
- client-side id of the element that will be made visible or invisibleshowFunctionName
- name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible,
or null for the defaulthideFunctionName
- name of the function used to make the SubForm invisible, or null for the defaultpublic void addFormFragment(String clientId, boolean alwaysSubmit, String showFunctionName, String hideFunctionName)
addFormFragment(String, boolean, String, String, String)
instead
ClientBehaviorSupport
addFormFragment
in interface ClientBehaviorSupport
clientId
- client-side id of the element that will be made visible or invisiblealwaysSubmit
- if true, the fragment ignores client-side visiblility and always submits its valuesshowFunctionName
- name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible,
or null for the defaulthideFunctionName
- name of the function used to make the SubForm invisible, or null for the defaultpublic void addFormFragment(String clientId, boolean alwaysSubmit, String showFunctionName, String hideFunctionName, String visibilityBoundFunctionName)
ClientBehaviorSupport
addFormFragment
in interface ClientBehaviorSupport
clientId
- client-side id of the element that will be made visible or invisiblealwaysSubmit
- if true, the fragment ignores client-side visiblility and always submits its valuesshowFunctionName
- name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible,
or null for the defaulthideFunctionName
- name of the function used to make the SubForm invisible, or null for the defaultvisibilityBoundFunctionName
- name of the function used to bound the isDeepVisible search, or null for the defaultpublic void addFormInjector(String clientId, Link link, InsertPosition insertPosition, String showFunctionName)
ClientBehaviorSupport
addFormInjector
in interface ClientBehaviorSupport
clientId
- client-side id of the element that identifiess where the new content will be placedlink
- action request link used to trigger the server-side object, to render the new contentinsertPosition
- where the new content should go (above or below the element)showFunctionName
- name of function (of the Tapestry.ElementEffect object) used to make the new element
visible, or null for the defaultpublic void addValidation(Field field, String validationName, String message, Object constraint)
ClientBehaviorSupport
addValidation
in interface ClientBehaviorSupport
field
- for which validation is being generatedvalidationName
- name of validation method (see Tapestry.Validation in tapestry.js)message
- the error message to display if the field is invalidconstraint
- additional constraint value, or null for validations that don't require a constraintpublic void commit()
JavaScriptSupport
) any accumulated
validations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |