|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.jalios.jcms.taglib.PortletTreeTag
public class PortletTreeTag
Field Summary | |
---|---|
protected boolean |
dspEditPortalElement
|
protected boolean |
dspExpandHighlighted
|
protected int |
dspExpandLevel
|
protected Set |
dspHighlightPeSet
|
protected String |
dspLink
|
protected String |
dspNodePrefix
|
protected PortalElement |
dspRootPortlet
|
protected Collection |
dspRootPortletCollection
|
protected boolean |
dspWidgetExpandSelected
|
protected String |
dspWidgetName
|
protected Set |
dspWidgetSelectedPeSet
|
protected String |
dspWidgetType
|
static String |
EDIT
|
protected Set |
expandSet
|
protected boolean |
isNS4
|
protected Member |
loggedMember
|
static org.apache.oro.text.regex.Pattern |
PELINK_PATTERN
|
protected String |
redirect
|
static String |
REVISION
|
protected String |
userLang
|
static String |
WIDGET_CHECKBOXJS
|
static String |
WIDGET_NONE
|
protected int |
widgetCount
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
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 | |
---|---|
PortletTreeTag()
|
Method Summary | |
---|---|
protected void |
clean()
Clean Up parameters to avoid errors with tags pooling |
int |
doEndTag()
|
int |
doStartTag()
|
protected boolean |
expandNode(PortalElement pe,
Collection children,
StringBuffer sb,
int level)
Return true if the node must be expanded |
protected void |
printBranch(PortalElement pe,
StringBuffer sb,
int level)
Print the table that define a Branch of category (call it recursively) |
protected void |
printChildren(PortalElement pe,
Collection children,
StringBuffer sb,
boolean expandNode,
int level)
Print the children nodes of the branch. |
protected void |
printEdit(PortalElement pe,
StringBuffer sb)
Print the EditIcon |
protected void |
printHighlight(PortalElement pe,
StringBuffer sb)
Print the highlight status |
protected void |
printNodeIcon(PortalElement pe,
Collection children,
StringBuffer sb,
boolean expandNode)
Print the icon of the node of a branch |
protected void |
printRoots(Collection rootCollection,
StringBuffer sb)
|
protected void |
printTitle(PortalElement pe,
StringBuffer sb)
Print the Title with a Link |
protected void |
printWidget(PortalElement pe,
StringBuffer sb)
Print the widget associated to the category |
protected boolean |
replaceLink(String link,
org.apache.oro.text.regex.Pattern pattern,
String replace,
StringBuffer sb)
Replace a generic link by a specific replace string matching a given pattern Then write to the String buffer a A HREF |
void |
setEditPortalElement(boolean b)
|
void |
setExpandHighlighted(boolean b)
|
void |
setExpandLevel(int i)
|
void |
setHighlightPeSet(Set set)
|
void |
setLink(String string)
|
void |
setNodePrefix(String string)
|
void |
setRootPortlet(PortalElement elm)
|
void |
setRootPortletCollection(Collection set)
|
void |
setWidgetExpandSelected(boolean b)
|
void |
setWidgetName(String string)
|
void |
setWidgetSelectedPeSet(Set set)
|
void |
setWidgetType(String string)
|
protected Collection |
valideChildren(Collection children)
Return a Set of validated children |
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 |
Field Detail |
---|
public static final String REVISION
public static final String WIDGET_NONE
public static final String WIDGET_CHECKBOXJS
public static final String EDIT
public static final org.apache.oro.text.regex.Pattern PELINK_PATTERN
protected Member loggedMember
protected String userLang
protected Set expandSet
protected String redirect
protected Collection dspRootPortletCollection
protected PortalElement dspRootPortlet
protected String dspLink
protected int dspExpandLevel
protected String dspNodePrefix
protected boolean dspEditPortalElement
protected Set dspHighlightPeSet
protected boolean dspExpandHighlighted
protected int widgetCount
protected String dspWidgetType
protected String dspWidgetName
protected Set dspWidgetSelectedPeSet
protected boolean dspWidgetExpandSelected
protected boolean isNS4
Constructor Detail |
---|
public PortletTreeTag()
Method Detail |
---|
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
protected void printRoots(Collection rootCollection, StringBuffer sb)
protected void printBranch(PortalElement pe, StringBuffer sb, int level)
protected void printEdit(PortalElement pe, StringBuffer sb)
protected void printWidget(PortalElement pe, StringBuffer sb)
protected void printNodeIcon(PortalElement pe, Collection children, StringBuffer sb, boolean expandNode)
protected void printChildren(PortalElement pe, Collection children, StringBuffer sb, boolean expandNode, int level)
protected void printTitle(PortalElement pe, StringBuffer sb)
protected void printHighlight(PortalElement pe, StringBuffer sb)
protected boolean expandNode(PortalElement pe, Collection children, StringBuffer sb, int level)
protected Collection valideChildren(Collection children)
protected boolean replaceLink(String link, org.apache.oro.text.regex.Pattern pattern, String replace, StringBuffer sb)
protected void clean()
public void setExpandHighlighted(boolean b)
b
- public void setExpandLevel(int i)
i
- public void setHighlightPeSet(Set set)
set
- public void setLink(String string)
string
- public void setNodePrefix(String string)
string
- public void setRootPortletCollection(Collection set)
set
- public void setRootPortlet(PortalElement elm)
elm
- public void setWidgetExpandSelected(boolean b)
b
- public void setWidgetName(String string)
string
- public void setWidgetSelectedPeSet(Set set)
set
- public void setWidgetType(String string)
string
- public void setEditPortalElement(boolean b)
b
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |