Class ClientBehaviorSupportImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void  clientId, boolean alwaysSubmit,  showFunctionName,  hideFunctionName)
      Adds a new client-side Tapestry.FormFragment object.
      void  clientId, boolean alwaysSubmit,  showFunctionName,  hideFunctionName,  visibilityBoundFunctionName)
      Adds a new client-side Tapestry.FormFragment object.
      void  clientId,  showFunctionName,  hideFunctionName)
      Adds a new client-side Tapestry.FormFragment object.
      void  clientId, Link link, InsertPosition insertPosition,  showFunctionName)
      Adds a new client-side Tapestry.FormInjector object.
      void addValidation​(Field field,  validationName,  message,  constraint)
      Collects field validation information.
      void  clientId,  showFunctionName,  updateFunctionName)
      Adds a new client-side Tapestry.Zone object.
      void  linkId,  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.

        , , , , , , , , , ,
    • Method Detail

      • addZone

        public void  clientId,
                             showFunctionName,
                             updateFunctionName)
        Description copied from interface: ClientBehaviorSupport
        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.
        Specified by:
        addZone in interface ClientBehaviorSupport
        Parameters:
        clientId - client-side id of the element that will be updated by the zone
        showFunctionName - name of the function used to initially show the zone (if not visible), or null for default
        updateFunctionName - name of function used to highlight the function after an update, or null for default
      • linkZone

        public void  linkId,
                              elementId,
                             Link eventLink)
        Description copied from interface: ClientBehaviorSupport
        Sets the client-side onclick handler for an <a> element to perform an Ajax update of a zone. Starting in Tapestry 5.4, this can be accomplished by adding a "data-update-zone" attribute to the element. The attribute value may be ^ or the id of the zone's client element.
        Specified by:
        linkZone in interface ClientBehaviorSupport
        Parameters:
        linkId - id of the link to Ajax enable
        elementId - id of an element that has been previously registered as a Zone
      • addFormFragment

        public void  clientId,
                                     showFunctionName,
                                     hideFunctionName)
        Description copied from interface: ClientBehaviorSupport
        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.
        Specified by:
        addFormFragment in interface ClientBehaviorSupport
        Parameters:
        clientId - client-side id of the element that will be made visible or invisible
        showFunctionName - name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible, or null for the default
        hideFunctionName - name of the function used to make the SubForm invisible, or null for the default
      • addFormFragment

        public void  clientId,
                                    boolean alwaysSubmit,
                                     showFunctionName,
                                     hideFunctionName)
        Description copied from interface: ClientBehaviorSupport
        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.
        Specified by:
        addFormFragment in interface ClientBehaviorSupport
        Parameters:
        clientId - client-side id of the element that will be made visible or invisible
        alwaysSubmit - if true, the fragment ignores client-side visiblility and always submits its values
        showFunctionName - name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible, or null for the default
        hideFunctionName - name of the function used to make the SubForm invisible, or null for the default
      • addFormFragment

        public void  clientId,
                                    boolean alwaysSubmit,
                                     showFunctionName,
                                     hideFunctionName,
                                     visibilityBoundFunctionName)
        Description copied from interface: ClientBehaviorSupport
        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. This implementation has been removed in 5.4; it throws an .
        Specified by:
        addFormFragment in interface ClientBehaviorSupport
        Parameters:
        clientId - client-side id of the element that will be made visible or invisible
        alwaysSubmit - if true, the fragment ignores client-side visiblility and always submits its values
        showFunctionName - name of function (of the Tapestry.ElementEffect object) used to make the SubForm visible, or null for the default
        hideFunctionName - name of the function used to make the SubForm invisible, or null for the default
        visibilityBoundFunctionName - name of the function used to bound the isDeepVisible search, or null for the default
      • addFormInjector

        public void  clientId,
                                    Link link,
                                    InsertPosition insertPosition,
                                     showFunctionName)
        Description copied from interface: ClientBehaviorSupport
        Adds a new client-side Tapestry.FormInjector object. FormInjectors are used to extend an existing Form with new content.
        Specified by:
        addFormInjector in interface ClientBehaviorSupport
        Parameters:
        clientId - client-side id of the element that identifiess where the new content will be placed
        link - action request link used to trigger the server-side object, to render the new content
        insertPosition - 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
      • addValidation

        public void addValidation​(Field field,
                                   validationName,
                                   message,
                                   constraint)
        Description copied from interface: ClientBehaviorSupport
        Collects field validation information.
        Specified by:
        addValidation in interface ClientBehaviorSupport
        Parameters:
        field - for which validation is being generated
        validationName - name of validation method (see Tapestry.Validation in tapestry.js)
        message - the error message to display if the field is invalid
        constraint - additional constraint value, or null for validations that don't require a constraint