Package com.jalios.jcms.taglib
Class FileWebdavTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.jalios.jcms.taglib.FileWebdavTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class FileWebdavTag extends javax.servlet.jsp.tagext.TagSupport
This tag prints icons for webfolders: - Download a File - Edit with WebDav a File - Open a WebFolder- Version:
- $Revision: 119523 $
- Author:
- Jean-Philippe Encausse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileWebdavTag.Webdav
-
Field Summary
Fields Modifier and Type Field Description protected Category
cat
protected FileDocument
doc
protected boolean
openByBrowser
protected boolean
openByWebdav
static java.lang.String
REVISION
protected boolean
showParentFolder
protected boolean
showRoot
protected java.lang.String
title
protected Workspace
ws
-
Constructor Summary
Constructors Constructor Description FileWebdavTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
Clean tags parametersint
doEndTag()
int
doStartTag()
void
setDoc(FileDocument doc)
This method set the FileDocument to open with webdavvoid
setFolder(Category cat)
This method set the category to use to open webfoldervoid
setOpenByBrowser(boolean openByBrowser)
Display download iconvoid
setOpenByWebdav(boolean openByWebdav)
Display webdav edit iconvoid
setShowParentFolder(boolean showParentFolder)
Display the parent folder of the specified FileDocument.void
setShowRoot(boolean showRoot)
Display root, do not open workspacevoid
setTitle(java.lang.String title)
This method set a custom title for the given iconvoid
setWorkspace(Workspace ws)
This method set the workspace to use to open webfolder
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
doc
protected FileDocument doc
-
cat
protected Category cat
-
ws
protected Workspace ws
-
openByWebdav
protected boolean openByWebdav
-
openByBrowser
protected boolean openByBrowser
-
title
protected java.lang.String title
-
showRoot
protected boolean showRoot
-
showParentFolder
protected boolean showParentFolder
-
-
Method Detail
-
setWorkspace
public void setWorkspace(Workspace ws)
This method set the workspace to use to open webfolder- Parameters:
ws
- the opening folder
-
setFolder
public void setFolder(Category cat)
This method set the category to use to open webfolder- Parameters:
cat
- the opening folder
-
setDoc
public void setDoc(FileDocument doc)
This method set the FileDocument to open with webdav- Parameters:
doc
- the FileDocument to work with
-
setTitle
public void setTitle(java.lang.String title)
This method set a custom title for the given icon- Parameters:
title
- a title for the given icon
-
setOpenByBrowser
public void setOpenByBrowser(boolean openByBrowser)
Display download icon- Parameters:
openByBrowser
-
-
setOpenByWebdav
public void setOpenByWebdav(boolean openByWebdav)
Display webdav edit icon- Parameters:
openByWebdav
-
-
setShowRoot
public void setShowRoot(boolean showRoot)
Display root, do not open workspace- Parameters:
showRoot
-
-
setShowParentFolder
public void setShowParentFolder(boolean showParentFolder)
Display the parent folder of the specified FileDocument.- Parameters:
showParentFolder
-
-
clean
public void clean()
Clean tags parameters
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag()
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.TagSupport
-
-