Package org.opencms.jsp
Class CmsJspTagEnableListAdd
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- org.opencms.jsp.CmsJspTagEnableListAdd
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.SimpleTag
public class CmsJspTagEnableListAdd extends javax.servlet.jsp.tagext.SimpleTagSupport
Generates a special HTML element which enables the 'create list element' dialog for a set of types when used in a formatter.
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagEnableListAdd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doTag()
void
setPostCreateHandler(java.lang.String postCreateHandler)
Sets the post-create handler to use after creating new elements.void
setTypes(java.lang.Object typesObj)
Sets the types to offer to create.void
setUploadFolder(java.lang.String uploadFolder)
Sets the upload folder.
-
-
-
Constructor Detail
-
CmsJspTagEnableListAdd
public CmsJspTagEnableListAdd()
-
-
Method Detail
-
doTag
public void doTag() throws java.io.IOException
- Specified by:
doTag
in interfacejavax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjavax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
java.io.IOException
- See Also:
SimpleTagSupport.doTag()
-
setPostCreateHandler
public void setPostCreateHandler(java.lang.String postCreateHandler)
Sets the post-create handler to use after creating new elements.- Parameters:
postCreateHandler
- the post-create handler
-
setTypes
public void setTypes(java.lang.Object typesObj) throws javax.servlet.jsp.JspException
Sets the types to offer to create.- Parameters:
typesObj
- either a string containing type names separated by commas, or a collection of objects whose toString() methods return resource type names.- Throws:
javax.servlet.jsp.JspException
- if something goes wrong
-
setUploadFolder
public void setUploadFolder(java.lang.String uploadFolder)
Sets the upload folder.- Parameters:
uploadFolder
- the upload folder
-
-