|
||||||||||
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 representation of the FCKeditor. This representation reflects the editor in an
object-oriented way. It can be configured as any other JavaBean type class.
The final output of this class is HTML code.
Note: It's your responsibility to supply reasonable and
valid values, only request
and instanceName
will be checked
for sanity.
Constructor Summary | |
---|---|
FCKeditor(HttpServletRequest request,
String instanceName)
Class constructor with a minimal set of parameters. |
|
FCKeditor(HttpServletRequest request,
String instanceName,
String width,
String height,
String toolbarSet,
String value,
String basePath)
Class constructor with all basic parameters. |
Method Summary | |
---|---|
String |
createHtml()
Creates the HTML representation of this editor instance. |
FCKeditorConfig |
getConfig()
Deprecated. Method will be removed in FCKeditor.Java 2.6, use getConfig(String) . |
String |
getConfig(String name)
Returns a configuration option. |
void |
setBasePath(String basePath)
Sets the base path of this editor. |
void |
setConfig(FCKeditorConfig config)
Deprecated. Method will be removed in FCKeditor.Java 2.6, use setConfig(String, String) . |
void |
setConfig(String name,
String value)
Sets a configuration option. |
void |
setHeight(String height)
Sets the height of this editor. |
void |
setInstanceName(String instanceName)
Sets the unique name of this editor. |
void |
setToolbarSet(String toolbarSet)
Sets the name of the toolbar set of this editor. |
void |
setValue(String value)
Sets the initial value to be edited as HTML markup. |
void |
setWidth(String width)
Sets the width of this editor. |
String |
toString()
Creates the HTML representation of this editor instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FCKeditor(HttpServletRequest request, String instanceName, String width, String height, String toolbarSet, String value, String basePath)
properties file
.
request
- current user request instanceinstanceName
- the unique name of this editorwidth
- the desired editor width (CSS-style value)height
- the desired editor height (CSS-style value)toolbarSet
- the desired toolbar set namevalue
- the HTML markup of this editor. Markup will be properly
escaped.basePath
- the base path of this editor, absolute to the context
IllegalArgumentException
- if instanceName is empty or not a valid XHTML idpublic FCKeditor(HttpServletRequest request, String instanceName)
request
- current user request instanceinstanceName
- the unique name of this editor
IllegalArgumentException
- if instanceName is empty or not a valid HTML idMethod Detail |
---|
public void setInstanceName(String instanceName)
instanceName
- the unique name of this editor
IllegalArgumentException
- if instanceName is empty or not a valid XHTML idpublic void setValue(String value)
value
- the HTML markup of this editor. Markup will be properly
escaped.public void setBasePath(String basePath)
basePath
- the base path of this editor, absolute to the contextpublic void setToolbarSet(String toolbarSet)
toolbarSet
- the desired toolbar set namepublic void setWidth(String width)
width
- the desired editor width (CSS-style value)public void setHeight(String height)
height
- the desired editor height (CSS-style value)@Deprecated public FCKeditorConfig getConfig()
getConfig(String)
.
config.js
file. By adding elements to this map you can
override the configuration for each editor instance.
getConfig(String)
public String getConfig(String name)
FCKeditorConfig
for more
details.
name
- the name of the parameter (case-sensitive)
public void setConfig(String name, String value)
FCKeditorConfig
for more
details.
name
- the name of the config option (case-sensitive)value
- the value of the config option. Null values will be ignored.@Deprecated public void setConfig(FCKeditorConfig config)
setConfig(String, String)
.
config
- configuration collectionsetConfig(String, String)
public String toString()
toString
in class Object
public String createHtml()
toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |