public abstract class MolPluginRenderer
extends javax.faces.render.Renderer
Renderer offers functionalities for the specific renderers of
MolPluginCore-derived molecular structure plugin components.| Constructor and Description |
|---|
MolPluginRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected static String |
generateDivStyle(MolPluginCore plugin)
Generate the inline css style for the <div> element of the rendered
editor or viewer.
|
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object submittedValue) |
protected String |
getValueAsString(javax.faces.context.FacesContext context,
MolPluginCore component)
Converts a component's value to a string by invoking the component's
converter's
Converter.getAsString(FacesContext, UIComponent, Object)
method. |
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Rendererpublic Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object submittedValue) throws javax.faces.convert.ConverterException
getConvertedValue in class javax.faces.render.Rendererjavax.faces.convert.ConverterExceptionprotected String getValueAsString(javax.faces.context.FacesContext context, MolPluginCore component)
Converter.getAsString(FacesContext, UIComponent, Object)
method. If no converter is defined, it just returns the value.context - FacesContext for the request we are processingcomponent - component of the molecular structure plugin to be encodedprotected static String generateDivStyle(MolPluginCore plugin)
plugin - component of the molecular structure pluginCopyright © 2021 Leibniz Institute of Plant Biochemistry (IPB), Halle (Saale), Germany. All rights reserved.