|
||||||||||
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
, instanceName
and inputName
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 inputName)
Class constructor with a basic set of parameters. |
|
FCKeditor(HttpServletRequest request,
String instanceName,
String width,
String height,
String toolbarSet,
String value,
String basePath)
Class constructor with a extended set of parameters. |
|
FCKeditor(HttpServletRequest request,
String instanceName,
String inputName,
String width,
String height,
String toolbarSet,
String value,
String basePath)
Class constructor with all parameters. |
Method Summary | |
---|---|
String |
createHtml()
Creates the HTML representation of this editor instance. |
String |
getConfig(String name)
Returns a configuration option. |
void |
setBasePath(String basePath)
Sets the base path of this editor. |
void |
setConfig(String name,
String value)
Sets a configuration option. |
void |
setHeight(String height)
Sets the height of this editor. |
void |
setInputName(String inputName)
Sets the name for the underlying input element. |
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 inputName, String width, String height, String toolbarSet, String value, String basePath)
request
- current user request instanceinstanceName
- the unique name of this editorinputName
- the name for the underlying input element. See
setInputName(String)
for details.width
- 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, String width, String height, String toolbarSet, String value, String basePath)
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 idpublic FCKeditor(HttpServletRequest request, String instanceName, String inputName)
request
- current user request instanceinstanceName
- the unique name of this editorinputName
- the name for the underlying input element. See
setInputName(String)
for details.
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 setInputName(String inputName)
instanceName
.
inputName
- the name for the underlying input elementpublic 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)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.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 |