|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport info.magnolia.cms.taglibs.EditButton
public class EditButton
Displays an edit button.
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 | |
---|---|
EditButton()
|
Method Summary | |
---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getDialog()
|
String |
getTemplate()
|
void |
release()
|
void |
setAdminOnly(boolean adminOnly)
Show only in admin instance, defaults to true. |
void |
setContentNodeCollectionName(String name)
|
void |
setContentNodeName(String name)
If attribute is not used, a content node with the name of the page will be added. |
void |
setDialog(String dialog)
The dialog type. |
void |
setEditLabel(String label)
Deprecated. use the label attribute instead. |
void |
setLabel(String label)
The button's label. |
void |
setParagraph(String type)
Deprecated. since 4.1, use the setDialog() instead. |
void |
setSmall(boolean small)
Sets the size of the button, true for small button, false for a large one (defaults to true). |
void |
setTemplate(String path)
Set display handler (JSP / Servlet), needs to know the relative path from WEB-INF. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, 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 |
---|
public EditButton()
Method Detail |
---|
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public void setContentNodeName(String name)
name
- Container name which will be used to access/write content.public void setContentNodeCollectionName(String name)
name
- , container name which will be used to access/write content.public void setParagraph(String type)
type
- , content typepublic void setDialog(String dialog)
type
- , content typepublic String getDialog()
public void setTemplate(String path)
path
- relative to WEB-INF.public void setAdminOnly(boolean adminOnly)
public String getTemplate()
public void setEditLabel(String label)
public void setLabel(String label)
public void setSmall(boolean small)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |