|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.fckeditor.FCKeditor
public class FCKeditor
Java represantation of the FCKeditor. This class creates the html code for the FCKeditor based on the following things:
PropertiesLoader
Constructor Summary | |
---|---|
FCKeditor(javax.servlet.http.HttpServletRequest request,
java.lang.String instanceName)
Just a wrapper to FCKeditor . |
|
FCKeditor(javax.servlet.http.HttpServletRequest request,
java.lang.String instanceName,
java.lang.String width,
java.lang.String height,
java.lang.String toolbarSet,
java.lang.String value,
java.lang.String basePath)
Main constructor. All important settings are done here and will be preset by the defaults taken from PropertiesLoader . |
Method Summary | |
---|---|
java.lang.String |
createHtml()
Minimum implementation, see ticket #27 for detailed information. |
FCKeditorConfig |
getConfig()
Get the advanced configuration set. By adding elements to this collection you can override the settings specified in the config.js file. |
void |
setBasePath(java.lang.String basePath)
Sets the directory where the FCKeditor resides on the server. Remarks: Avoid using relative paths. |
void |
setConfig(FCKeditorConfig config)
Set the advanced configuation set. |
void |
setHeight(java.lang.String height)
Set the height of the textarea |
void |
setInstanceName(java.lang.String instanceName)
Set the unique name of the editor |
void |
setToolbarSet(java.lang.String toolbarSet)
Set the name of the toolbar to display |
void |
setValue(java.lang.String value)
Set the initial value to be edited as HTML markup. |
void |
setWidth(java.lang.String width)
Set the width of the textarea |
java.lang.String |
toString()
This method simply wraps to createHtml() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FCKeditor(javax.servlet.http.HttpServletRequest request, java.lang.String instanceName, java.lang.String width, java.lang.String height, java.lang.String toolbarSet, java.lang.String value, java.lang.String basePath)
PropertiesLoader
. Any parameter except instanceName
failing Utils.isNotBlank(String)
will be ignored.
request
- request objectinstanceName
- unique namewidth
- widthheight
- heighttoolbarSet
- toolbarSet name
java.lang.IllegalArgumentException
- when instanceName is not valid HTML idpublic FCKeditor(javax.servlet.http.HttpServletRequest request, java.lang.String instanceName)
FCKeditor
.
request
- request objectinstanceName
- unique nameMethod Detail |
---|
public void setInstanceName(java.lang.String instanceName)
instanceName
- namepublic void setValue(java.lang.String value)
value
- valuepublic void setBasePath(java.lang.String basePath)
basePath
- pathpublic void setToolbarSet(java.lang.String toolbarSet)
toolbarSet
- toolbar namepublic void setWidth(java.lang.String width)
width
- widthpublic void setHeight(java.lang.String height)
height
- heightpublic FCKeditorConfig getConfig()
public void setConfig(FCKeditorConfig config)
config
- configuration collectionpublic java.lang.String toString()
createHtml()
.
toString
in class java.lang.Object
createHtml()
public java.lang.String createHtml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |