Class MonacoEditorFramedRenderer


  • public class MonacoEditorFramedRenderer
    extends org.primefaces.renderkit.InputRenderer
    Default renderer for the inline monaco editor that creates a new instance in an iframe for better scoping.
    Since:
    10.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String CALLBACK_SIGNATURE  
      protected java.lang.Class<TEditor> componentClass  
      • Fields inherited from class org.primefaces.renderkit.InputRenderer

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

        PASSTHROUGH_RENDERER_LOCALNAME_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      MonacoEditorFramedRenderer()
      Default no-arg constructor for this widget renderer invoked by the framework.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addBaseWidgetProperties​(javax.faces.context.FacesContext context, org.primefaces.util.WidgetBuilder wb, TEditor monacoEditor)  
      protected void addWidgetProperties​(javax.faces.context.FacesContext context, org.primefaces.util.WidgetBuilder wb, MonacoEditorFramed monacoEditor)  
      protected void array​(org.primefaces.util.WidgetBuilder wb, java.lang.String key, java.lang.Iterable<java.lang.String> values)  
      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, TEditor monacoEditor)  
      protected void encodeMarkup​(javax.faces.context.FacesContext context, TEditor monacoEditor)  
      protected void encodeMonacoEditor​(javax.faces.context.FacesContext context, MonacoEditorFramed monacoEditor)  
      protected void encodeScript​(javax.faces.context.FacesContext context, TEditor monacoEditor)  
      java.lang.Object getConvertedValue​(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue)  
      protected java.lang.String getLanguage​(TEditor monacoEditor)  
      protected java.lang.String getMainStyleClass()  
      protected java.lang.String getWidgetName()  
      protected boolean isEntireEditorDisabled​(TEditor monacoEditor)  
      • Methods inherited from class org.primefaces.renderkit.InputRenderer

        createStyleClass, createStyleClass, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CALLBACK_SIGNATURE

        protected static final java.lang.String CALLBACK_SIGNATURE
        See Also:
        Constant Field Values
      • componentClass

        protected final java.lang.Class<TEditor extends MonacoEditorCommon<TEditorOpts>> componentClass
    • Constructor Detail

      • MonacoEditorFramedRenderer

        public MonacoEditorFramedRenderer()
        Default no-arg constructor for this widget renderer invoked by the framework.
    • Method Detail

      • addWidgetProperties

        protected void addWidgetProperties​(javax.faces.context.FacesContext context,
                                           org.primefaces.util.WidgetBuilder wb,
                                           MonacoEditorFramed monacoEditor)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeMonacoEditor

        protected final void encodeMonacoEditor​(javax.faces.context.FacesContext context,
                                                MonacoEditorFramed monacoEditor)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getMainStyleClass

        protected java.lang.String getMainStyleClass()
      • getWidgetName

        protected java.lang.String getWidgetName()
      • decode

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

        protected final void encodeHiddenInput​(javax.faces.context.FacesContext context,
                                               TEditor monacoEditor)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getConvertedValue

        public final java.lang.Object getConvertedValue​(javax.faces.context.FacesContext context,
                                                        javax.faces.component.UIComponent component,
                                                        java.lang.Object submittedValue)
        Overrides:
        getConvertedValue in class org.primefaces.renderkit.InputRenderer
      • addBaseWidgetProperties

        protected final void addBaseWidgetProperties​(javax.faces.context.FacesContext context,
                                                     org.primefaces.util.WidgetBuilder wb,
                                                     TEditor monacoEditor)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • isEntireEditorDisabled

        protected boolean isEntireEditorDisabled​(TEditor monacoEditor)
      • getLanguage

        protected java.lang.String getLanguage​(TEditor monacoEditor)
      • array

        protected final void array​(org.primefaces.util.WidgetBuilder wb,
                                   java.lang.String key,
                                   java.lang.Iterable<java.lang.String> values)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeEnd

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

        protected final void encodeMarkup​(javax.faces.context.FacesContext context,
                                          TEditor monacoEditor)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • encodeScript

        protected final void encodeScript​(javax.faces.context.FacesContext context,
                                          TEditor monacoEditor)
                                   throws java.io.IOException
        Throws:
        java.io.IOException