Class JsonSchemaEditorRenderer


  • public class JsonSchemaEditorRenderer
    extends org.primefaces.renderkit.InputRenderer
    PrimeFaces component (renderer) for the JsonSchemaEditor component. Provides a visual editor for JSON Schemas.
    Since:
    8.5.0
    • Field Summary

      • Fields inherited from class org.primefaces.renderkit.InputRenderer

        ARIA_FILTER
      • Fields inherited from class javax.faces.render.Renderer

        PASSTHROUGH_RENDERER_LOCALNAME_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void decode​(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)  
      void encodeEnd​(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)  
      protected void encodeHiddenInput​(javax.faces.context.FacesContext context, JsonSchemaEditor editor, String clientId)
      Encodes the hidden input for the JavaScript widget.
      • Methods inherited from class org.primefaces.renderkit.InputRenderer

        createStyleClass, createStyleClass, getConvertedValue, isDisabled, isReadOnly, renderAccessibilityAttributes, renderAccessibilityAttributes, renderAccessibilityAttributesHidden, renderARIACombobox, renderARIAInvalid, renderARIARequired, renderRTLDirection, shouldDecode
      • Methods inherited from class org.primefaces.renderkit.CoreRenderer

        buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, encodeIndexedId, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getIconOnlyButtonText, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, logDevelopmentWarning, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderAttribute, renderButtonValue, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
      • Methods inherited from class javax.faces.render.Renderer

        convertClientId, encodeBegin, encodeChildren, getRendersChildren
    • Constructor Detail

      • JsonSchemaEditorRenderer

        public JsonSchemaEditorRenderer()
    • Method Detail

      • decode

        public void decode​(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
        Overrides:
        decode in class javax.faces.render.Renderer
      • encodeEnd

        public void encodeEnd​(javax.faces.context.FacesContext context,
                              javax.faces.component.UIComponent component)
                       throws IOException
        Overrides:
        encodeEnd in class javax.faces.render.Renderer
        Throws:
        IOException
      • encodeHiddenInput

        protected void encodeHiddenInput​(javax.faces.context.FacesContext context,
                                         JsonSchemaEditor editor,
                                         String clientId)
                                  throws IOException
        Encodes the hidden input for the JavaScript widget. This is the input element that is passed to tagify during initialization.
        Parameters:
        context - The Faces context.
        editor - The component to be rendered.
        clientId - Client ID of the current component that is processed.
        Throws:
        IOException - When the data could not be written to the ResponseWriter.