|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.web.util.lazytree.DefaultLazyTreeElementRenderer
public class DefaultLazyTreeElementRenderer
| Constructor Summary | |
|---|---|
DefaultLazyTreeElementRenderer()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
encodePath(java.lang.String path)
|
java.lang.String |
getCssClassForElement(Element element)
Returns the CSS class of the element to use. |
protected java.lang.String |
getDefaultTextForElement(Element element)
|
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. |
protected java.lang.String |
getSize(Element element)
|
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. |
protected boolean |
isInsideZip(Element element)
|
protected boolean |
isMakeLinkFromLeaf(Element element)
|
protected boolean |
isZipElement(Element element)
|
void |
prepareForRequest(javax.servlet.http.HttpServletRequest request)
Allows the renderer to customize its behavious depending on current request. |
protected boolean |
showSize()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLazyTreeElementRenderer()
| Method Detail |
|---|
public void prepareForRequest(@NotNull
javax.servlet.http.HttpServletRequest request)
LazyTreeElementRendererrequest.
prepareForRequest in interface LazyTreeElementRendererrequest - http request
public boolean ignoreElement(@NotNull
Element element)
LazyTreeElementRendererelement and its subtree won't appear in web UI.
Useful for filtering redundant elements, such as ".svn".
ignoreElement in interface LazyTreeElementRendererelement - the element
@NotNull
public java.lang.String getTextForElement(@NotNull
Element element)
LazyTreeElementRendererStringUtil.escapeHTML(element.getName(), false)).
getTextForElement in interface LazyTreeElementRendererelement - the element to render
public java.lang.String getOnClickForLeaf(@NotNull
Element leaf)
LazyTreeElementRendereronclick handler of the element's link.
Method is optional. Applies only to leaf elements.
getOnClickForLeaf in interface LazyTreeElementRendererleaf - the element to render
public java.lang.String getHrefForLeaf(@NotNull
Element leaf)
LazyTreeElementRendererhref 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.
getHrefForLeaf in interface LazyTreeElementRendererleaf - the element to render
public java.lang.String getCssClassForElement(@NotNull
Element element)
LazyTreeElementRenderer
getCssClassForElement in interface LazyTreeElementRendererelement - the element to render
@NotNull
protected java.lang.String encodePath(@Nullable
java.lang.String path)
protected boolean isInsideZip(@NotNull
Element element)
protected boolean isZipElement(@NotNull
Element element)
@NotNull
protected java.lang.String getDefaultTextForElement(@NotNull
Element element)
protected boolean showSize()
@NotNull
protected java.lang.String getSize(@NotNull
Element element)
protected boolean isMakeLinkFromLeaf(@NotNull
Element element)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||