net.fckeditor.tags
Class EditorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.fckeditor.tags.EditorTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class EditorTag
extends javax.servlet.jsp.tagext.TagSupport

FCKeditor Tag class to access the container.

Version:
$Id: EditorTag.java 3840 2009-07-08 20:29:46Z mosipov $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
EditorTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Initializes the FCKeditor container and sets attributes
 void setBasePath(java.lang.String basePath)
          Sets the dir where the FCKeditor files reside on the server
 void setHeight(java.lang.String height)
          Sets the height of the textarea
 void setInstanceName(java.lang.String instanceName)
          Sets the name for the given editor instance
 void setToolbarSet(java.lang.String toolbarSet)
          Sets the name of the toolbar to display
 void setValue(java.lang.String value)
          Sets the editor document content
 void setWidth(java.lang.String width)
          Sets the width of the textarea
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorTag

public EditorTag()
Method Detail

setInstanceName

public void setInstanceName(java.lang.String instanceName)
Sets the name for the given editor instance

Parameters:
instanceName - some name without whitespaces

setWidth

public void setWidth(java.lang.String width)
Sets the width of the textarea

Parameters:
width - width of the editor instance

setHeight

public void setHeight(java.lang.String height)
Sets the height of the textarea

Parameters:
height - height of the editor instance

setToolbarSet

public void setToolbarSet(java.lang.String toolbarSet)
Sets the name of the toolbar to display

Parameters:
toolbarSet - toolbar set of the editor instance

setValue

public void setValue(java.lang.String value)
Sets the editor document content

Parameters:
value - any HTML string

setBasePath

public void setBasePath(java.lang.String basePath)
Sets the dir where the FCKeditor files reside on the server

Parameters:
basePath - basePath of the editor instance (e.g. /fckeditor)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Initializes the FCKeditor container and sets attributes

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
EVAL_BODY_INCLUDE
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2004-2009 Frederico Caldeira Knabben. All Rights Reserved.