org.apache.myfaces.custom.htmlEditor
Class HtmlEditor
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.html.HtmlInputText
org.apache.myfaces.component.html.ext.HtmlInputText
org.apache.myfaces.custom.htmlEditor.HtmlEditor
- All Implemented Interfaces:
- javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, UserRoleAware, javax.faces.component.ValueHolder
- public class HtmlEditor
- extends HtmlInputText
HTML Editor using the kupu library.
http://kupu.oscom.org/
- Version:
- $Revision: 1.15 $ $Date: 2005/01/03 03:49:31 $
$Log: HtmlEditor.java,v $
Revision 1.15 2005/01/03 03:49:31 svieujot
trim returned text
Revision 1.14 2005/01/02 20:39:16 svieujot
HtmlEditor can now process HTML documents and HTML fragments.
Revision 1.13 2004/12/24 13:21:50 matzew
organized imports
Revision 1.12 2004/12/09 05:16:44 svieujot
Simplify by extending html.ext.HtmlInputText instead of extending UIInput and implementing UserRolesAware.
Revision 1.11 2004/12/08 04:36:27 svieujot
Cancel last *source attributes, and make style and styleClass more modular.
Revision 1.10 2004/12/08 04:13:56 svieujot
Add styleSource and styleClassSource for the htmlEditor source window.
Revision 1.9 2004/12/06 04:26:07 svieujot
Make HtmlEditor UserRoleAware.
Revision 1.8 2004/12/06 03:34:57 svieujot
Typo
Revision 1.7 2004/12/06 01:03:42 svieujot
Bugfix : getter now use boolean instead of Boolean, and setters created.
Revision 1.6 2004/12/04 22:25:36 svieujot
*** empty log message ***
Revision 1.5 2004/12/04 03:26:28 svieujot
Various bug fixes
Revision 1.4 2004/12/04 00:40:25 svieujot
htmlEditor : add style and styleClass attributes.
Revision 1.3 2004/12/04 00:20:00 svieujot
htmlEditor : Add a formular mode, and more sensible defaults.
Revision 1.2 2004/12/03 21:59:09 svieujot
Initial set of htmlEditor attributes.
Revision 1.1 2004/12/02 22:28:30 svieujot
Add an x:htmlEditor based on the Kupu library.
- Author:
- Sylvain Vieujot (latest modification by $Author: svieujot $)
Fields inherited from class javax.faces.component.UIInput |
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Methods inherited from class javax.faces.component.html.HtmlInputText |
getAccesskey, getAlt, getDir, getLang, getMaxlength, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getSize, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setAlt, setDir, setDisabled, setLang, setMaxlength, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setSize, setTabindex, setTitle |
Methods inherited from class javax.faces.component.UIInput |
addValidator, addValueChangeListener, broadcast, compareValues, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate |
Methods inherited from class javax.faces.component.UIOutput |
getConverter, getLocalValue, getValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
getConverter, getLocalValue, getValue, setConverter |
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
- See Also:
- Constant Field Values
HtmlEditor
public HtmlEditor()
getFamily
public java.lang.String getFamily()
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class HtmlInputText
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class HtmlInputText
getStyle
public java.lang.String getStyle()
setStyle
public void setStyle(java.lang.String style)
getStyleClass
public java.lang.String getStyleClass()
setStyleClass
public void setStyleClass(java.lang.String styleClass)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String _type)
isTypeDocument
public boolean isTypeDocument()
isAllowEditSource
public java.lang.Boolean isAllowEditSource()
isAddKupuLogo
public boolean isAddKupuLogo()
setAddKupuLogo
public void setAddKupuLogo(boolean addKupuLogo)
isShowPropertiesToolBox
public boolean isShowPropertiesToolBox()
setShowPropertiesToolBox
public void setShowPropertiesToolBox(boolean showPropertiesToolBox)
isShowLinksToolBox
public boolean isShowLinksToolBox()
setShowLinksToolBox
public void setShowLinksToolBox(boolean showLinksToolBox)
isShowImagesToolBox
public boolean isShowImagesToolBox()
setShowImagesToolBox
public void setShowImagesToolBox(boolean showImagesToolBox)
isShowTablesToolBox
public boolean isShowTablesToolBox()
setShowTablesToolBox
public void setShowTablesToolBox(boolean showTablesToolBox)
isShowDebugToolBox
public boolean isShowDebugToolBox()
setShowDebugToolBox
public void setShowDebugToolBox(boolean showTablesToolBox)
isShowAnyToolBox
public boolean isShowAnyToolBox()
isEnableFlexiTools
public boolean isEnableFlexiTools()
setEnableFlexiTools
public void setEnableFlexiTools(boolean formularMode)
getValueAsHtmlDocument
public java.lang.String getValueAsHtmlDocument(javax.faces.context.FacesContext context)
getValueFromDocument
public java.lang.String getValueFromDocument(java.lang.String text)