|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LazyTreeElementRenderer
A control allowing to customize the way the tree element is shown in UI.
| Method Summary | |
|---|---|
java.lang.String |
getCssClassForElement(Element element)
Returns the CSS class of the element to use. |
java.lang.String |
getHrefForLeaf(Element leaf)
Returns the href attribute value of the element's link. |
java.lang.String |
getOnClickForLeaf(Element leaf)
Returns the onclick handler of the element's link. |
java.lang.String |
getTextForElement(Element element)
Returns the text representation of an element (usually name). |
boolean |
ignoreElement(Element element)
If returns true, the element and its subtree won't appear in web UI. |
void |
prepareForRequest(javax.servlet.http.HttpServletRequest request)
Allows the renderer to customize its behavious depending on current request. |
| Method Detail |
|---|
void prepareForRequest(@NotNull
javax.servlet.http.HttpServletRequest request)
request.
request - http request
boolean ignoreElement(@NotNull
Element element)
element and its subtree won't appear in web UI.
Useful for filtering redundant elements, such as ".svn".
element - the element
@NotNull
java.lang.String getTextForElement(@NotNull
Element element)
StringUtil.escapeHTML(element.getName(), false)).
element - the element to render
@Nullable
java.lang.String getOnClickForLeaf(@NotNull
Element leaf)
onclick handler of the element's link.
Method is optional. Applies only to leaf elements.
leaf - the element to render
@Nullable
java.lang.String getHrefForLeaf(@NotNull
Element leaf)
href attribute value of the element's link.
Method is optional. Applies only to leaf elements.
Updatd since 7.0: some leaf elements can act as non-leaf ones (e.g. archives).
Technically they are not leaves in a tree, but the href attribute is
still valid for them.
leaf - the element to render
@Nullable
java.lang.String getCssClassForElement(@NotNull
Element element)
element - the element to render
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||