Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.services » [javadoc | source]
public interface: ClientBehaviorSupport [javadoc | source]

All Known Implementing Classes:

Collects details about zone usage for efficient initialization of the client side objects. This has grown to include the client-side behavior associated with org.apache.tapestry5.corelib.components.FormFragment s.
Method from org.apache.tapestry5.internal.services.ClientBehaviorSupport Summary:
addFormFragment,   addFormInjector,   addValidation,   addZone,   linkZone
Method from org.apache.tapestry5.internal.services.ClientBehaviorSupport Detail:
 public  void addFormFragment(String clientId,
    String showFunctionName,
    String hideFunctionName)
    Adds a new client-side Tapestry.FormFragment object. FormFragment's are used to make parts of a client-side form visible or invisible, which involves interactions with both the server-side and client-side validation.
 public  void addFormInjector(String clientId,
    Link link,
    InsertPosition insertPosition,
    String showFunctionName)
    Adds a new client-side Tapestry.FormInjector object. FormInjectors are used to extend an existing Form with new content.
 public  void addValidation(Field field,
    String validationName,
    String message,
    Object constraint)
    Collects field validation information.
 public  void addZone(String clientId,
    String showFunctionName,
    String updateFunctionName)
    Adds a new client-side Tapestry.Zone object. Zones are linked to a an element (typically, a <div>). A Zone may have handlers used to initially show it, or to highlight it when its content changes. Such handlers are referenced by name, as functions of the Tapestry.ElementEffect object.
 public  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.