public class EditorRendererBase
extends org.richfaces.renderkit.InputRendererBase
Constructor and Description |
---|
EditorRendererBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected java.lang.Class<? extends javax.faces.component.UIComponent> |
getComponentClass() |
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object submittedValue) |
protected java.lang.String |
getCssMappingSuffix(javax.faces.context.FacesContext context)
Method to get exact xcss resource URI suffix
|
protected java.lang.String |
getFormattedComponentStringValue(javax.faces.context.FacesContext context,
UIEditor component)
Method to get converted to String model value or if validation not passed submitted value for component
|
protected java.lang.String |
getSriptMappingSuffix(javax.faces.context.FacesContext context)
Method to get exact script resource URI suffix
|
java.lang.String |
getTextAreaStyle(UIEditor component)
Method to get target textarea style if width or height attributes was determined
|
boolean |
shouldRenderTinyMCE(UIEditor component)
Method to check if rendering of tinyMCE scripts needed.
|
void |
writeEditorConfigurationAttributes(javax.faces.context.FacesContext context,
UIEditor component)
Method to write tinyMCE configuration script parameters from Editor component attributes.
|
void |
writeEditorConfigurationParameters(javax.faces.context.FacesContext context,
UIEditor component)
Method to write tinyMCE configuration script parameters from property
file if it was determined through Editor configuration attribute.
|
void |
writeEditorCustomPluginsParameters(javax.faces.context.FacesContext context,
UIEditor component)
Method to write custom plugins script parameters from property
file if it was determined through Editor configuration attribute.
|
void |
writeEditorParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Method to write tinyMCE configuration script parameters which was defined
as
|
getAdditionalScripts, getScripts
encodeResourcesArray, encodeToHead, getHeaderScripts, getHeaderStyles, getStyles
addResource, decode, doEncodeBegin, doEncodeChildren, doEncodeEnd, encodeBegin, encodeChildren, encodeEnd, getResource, getSkin, getUtils, preDecode, preEncodeBegin, renderChild, renderChildren
protected java.lang.Class<? extends javax.faces.component.UIComponent> getComponentClass()
getComponentClass
in class org.richfaces.renderkit.InputRendererBase
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
getConvertedValue
in class org.richfaces.renderkit.InputRendererBase
javax.faces.convert.ConverterException
protected void doDecode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
doDecode
in class org.richfaces.renderkit.InputRendererBase
protected java.lang.String getFormattedComponentStringValue(javax.faces.context.FacesContext context, UIEditor component)
context
- - faces context instancecomponent
- - component for which method is appliedprotected java.lang.String getSriptMappingSuffix(javax.faces.context.FacesContext context)
context
- - faces context instanceprotected java.lang.String getCssMappingSuffix(javax.faces.context.FacesContext context)
context
- - faces context instancepublic void writeEditorConfigurationParameters(javax.faces.context.FacesContext context, UIEditor component) throws java.io.IOException
context
- - faces context instancecomponent
- - Editor component instancejava.io.IOException
public void writeEditorCustomPluginsParameters(javax.faces.context.FacesContext context, UIEditor component) throws java.io.IOException
context
- - faces context instancecomponent
- - Editor component instancejava.io.IOException
public void writeEditorConfigurationAttributes(javax.faces.context.FacesContext context, UIEditor component) throws java.io.IOException
context
- - faces context instancecomponent
- - Editor component instancejava.io.IOException
public void writeEditorParameters(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
context
- -
faces context instancecomponent
- -
Editor component instancejava.io.IOException
public boolean shouldRenderTinyMCE(UIEditor component)
component
- - Editor component instancepublic java.lang.String getTextAreaStyle(UIEditor component)
component
- - Editor component instanceCopyright © 2013. All Rights Reserved.