public class InputRichTextRenderer extends Renderer
Formerly RichTextEditArea.java
Renders a rich text editor and toolbar within an HTML "textarea" element.
The textarea is decorated using the HTMLArea JavaScript library.
HTMLArea is a free, customizable online editor. It works inside your browser. It uses a non-standard feature implemented in Internet Explorer 5.5 or better for Windows and Mozilla 1.3 or better (any platform), therefore it will only work in one of these browsers.
HTMLArea is copyright InteractiveTools.com and released under a BSD-style license. HTMLArea is created and developed upto version 2.03 by InteractiveTools.com. Version 3.0 developed by Mihai Bazon for InteractiveTools. It contains code sponsored by other companies as well.
Copyright: Copyright (c) 2004 Sakai
| Constructor and Description |
|---|
InputRichTextRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addToolbar(String toolbar) |
void |
decode(FacesContext context,
UIComponent component)
Standard decode method.
|
void |
encodeBegin(FacesContext context,
UIComponent component) |
protected int |
getSize(Object attchedFiles) |
protected String |
outputFiles(List list,
MessageFormat format,
boolean first) |
protected String |
outputFiles(Map map,
MessageFormat format,
boolean first) |
protected void |
registerWithParent(UIComponent component,
String configVar,
String clientId) |
boolean |
supportsComponentType(UIComponent component) |
protected void |
writeAdditionalConfig(FacesContext context,
UIComponent component,
String configVar,
String clientId,
String toolbar,
int widthPx,
int heightPx,
Locale locale,
ResponseWriter writer)
subclasses can override to provide additonal configuration such as add buttons, etc
|
protected void |
writeAttachedFiles(FacesContext context,
UIComponent component,
String configVar,
ResponseWriter writer,
String toolbar) |
protected void |
writeConfigurationScript(FacesContext context,
UIComponent component,
String clientId,
String toolbar,
int widthPx,
int heightPx,
String showXPath,
Locale locale,
ResponseWriter writer)
Write configuration script
|
protected void |
writeExternalScripts(Locale locale,
ResponseWriter writer) |
protected void |
writeFilesArray(ResponseWriter writer,
String arrayVar,
Object attchedFiles,
MessageFormat format,
boolean includeLabel) |
convertClientId, encodeChildren, encodeEnd, getConvertedValue, getRendersChildrenpublic boolean supportsComponentType(UIComponent component)
public void encodeBegin(FacesContext context, UIComponent component) throws IOException
encodeBegin in class RendererIOExceptionprotected void writeExternalScripts(Locale locale, ResponseWriter writer) throws IOException
contextPath - writer - IOExceptionpublic void decode(FacesContext context, UIComponent component)
protected void writeConfigurationScript(FacesContext context, UIComponent component, String clientId, String toolbar, int widthPx, int heightPx, String showXPath, Locale locale, ResponseWriter writer) throws IOException
clientId - the client idtoolbar - the toolbar configuration string (i.e from makeToolbarScript())widthPx - columnsheightPx - rowsIOExceptionprotected void writeAdditionalConfig(FacesContext context, UIComponent component, String configVar, String clientId, String toolbar, int widthPx, int heightPx, Locale locale, ResponseWriter writer) throws IOException
context - component - configVar - clientId - toolbar - widthPx - heightPx - locale - writer - IOExceptionprotected void writeAttachedFiles(FacesContext context, UIComponent component, String configVar, ResponseWriter writer, String toolbar) throws IOException
IOExceptionprotected void writeFilesArray(ResponseWriter writer, String arrayVar, Object attchedFiles, MessageFormat format, boolean includeLabel) throws IOException
IOExceptionprotected void registerWithParent(UIComponent component, String configVar, String clientId)
protected String outputFiles(Map map, MessageFormat format, boolean first)
protected String outputFiles(List list, MessageFormat format, boolean first)
protected int getSize(Object attchedFiles)
Copyright © 2003–2014 University of Michigan. All rights reserved.