Class WebappFormControlRenderer

java.lang.Object
ro.sync.ecss.extensions.api.webapp.formcontrols.WebappFormControlRenderer
All Implemented Interfaces:
Extension

@API(type=EXTENDABLE, src=PUBLIC) public abstract class WebappFormControlRenderer extends Object implements Extension
Common interface for server-side form control renderers used in the Web Author.
  • Constructor Details

    • WebappFormControlRenderer

      public WebappFormControlRenderer()
  • Method Details

    • renderControl

      public void renderControl(AuthorInplaceContext context, Writer out) throws IOException
      Renders the form control with the given properties.
      Parameters:
      context - The context in which the form control is rendered.
      out - The output to render the form control to.
      Throws:
      IOException
    • isChangeTrackingAware

      public boolean isChangeTrackingAware()

      The form control may be added on elements that have been inserted or deleted as a tracked change, or it may be in a content range on which there is a review comment.

      In these cases, if the method returns true, in the HTML rendering, there will be some additional HTML span elements that wrap the form-control markup (generated by the renderControl(AuthorInplaceContext, Writer) method.

      If the method returns false, comment and change markers will not be rendered over the form-control. This option is provided for backwards-compatibility reasons, so it is recommended to override this method and return true.

      Returns:
      true if the form-control is aware of comment and change-tracking markers.
      Since:
      20.1