|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientBehaviorSupport
Collects details about zone usage for efficient initialization of the client side objects. This has grown to include
the client-side behavior associated with FormFragments.
Zone| 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,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 |
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. |
| Method Detail |
|---|
void addZone(String clientId,
String showFunctionName,
String updateFunctionName)
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 default
void linkZone(String linkId,
String elementId,
Link eventLink)
linkId - id of the link to Ajax enableelementId - id of an element that has been previously registered as a ZoneeventLink -
void addFormFragment(String clientId,
String showFunctionName,
String hideFunctionName)
addFormFragment(String,boolean,String,String,String) instead
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 default
void addFormFragment(String clientId,
boolean alwaysSubmit,
String showFunctionName,
String hideFunctionName)
addFormFragment(String,boolean,String,String,String) instead
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 default
void addFormFragment(String clientId,
boolean alwaysSubmit,
String showFunctionName,
String hideFunctionName,
String visibilityBoundFunctionName)
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 default
void addFormInjector(String clientId,
Link link,
InsertPosition insertPosition,
String showFunctionName)
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 default
void addValidation(Field field,
String validationName,
String message,
Object constraint)
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 constraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||