public class HTMLTree extends HTMLPage
Modifier and Type | Field and Description |
---|---|
protected boolean |
clickable |
protected java.lang.String |
defaultTarget |
protected boolean |
showBall |
protected boolean |
showFolder |
protected java.lang.String |
treeName |
contentType, page
Constructor and Description |
---|
HTMLTree(Pair<?,?> p) |
HTMLTree(Pair<?,?> p,
java.lang.String pg,
boolean clickable)
This class can be used to construct HTML pages containung a tree.
|
HTMLTree(Pair<?,?> p,
java.lang.String pg,
boolean clickable,
boolean showBall,
boolean showFld,
java.lang.String defaultTarget,
Resource res,
java.lang.String prefix)
This class can be used to construct HTML pages containung a tree.
|
HTMLTree(Pair<?,?> p,
java.lang.String pg,
boolean clickable,
boolean showBall,
java.lang.String defaultTarget,
Resource res)
This class can be used to construct HTML pages containung a tree.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createLink(Link node,
boolean encodeForJS)
create the link.
|
protected void |
drawNonClickable(Pair<?,?> p,
int level) |
protected void |
drawTree(Pair<?,?> p,
int level,
boolean lastNode,
java.lang.String leftSide) |
java.lang.String |
getChildren() |
java.lang.String |
getTree() |
void |
setRefreshButton(boolean r) |
java.lang.String |
show()
This method returns the page contents.
|
addHeader, addHeader, addHeader, getContentType, getHeaders, setContentType, setMask, setPage, substEncoded, substitute, substitute, substitute
protected boolean clickable
protected boolean showBall
protected boolean showFolder
protected java.lang.String defaultTarget
protected java.lang.String treeName
public HTMLTree(Pair<?,?> p, java.lang.String pg, boolean clickable, boolean showBall, boolean showFld, java.lang.String defaultTarget, Resource res, java.lang.String prefix)
p
- the treepg
- the HTMLPage to put the tree intoclickable
- if true the tree can be opened and closed with mouse clicksshowBall
- shows an icon (red ball) left of node nameshowFld
- shows an icon (yellow folder) left of node name (birgit)defaultTarget
- the name of the frame or window where the pages of links without a target should be sentres
- the resource object for translating labels in the page pgprefix
- defines a prefix for the id of the node (if the node as no id)public HTMLTree(Pair<?,?> p, java.lang.String pg, boolean clickable, boolean showBall, java.lang.String defaultTarget, Resource res)
p
- the treepg
- the HTMLPage to put the tree intoclickable
- if true the tree can be opened and closed with mouse clicksshowBall
- shows an icons (red ball) left of node namedefaultTarget
- the name of the frame or window where the pages of links without a target should be sentres
- the resource object for translating labels in the page pgpublic HTMLTree(Pair<?,?> p, java.lang.String pg, boolean clickable)
p
- the treepg
- the HTMLPage to put the tree intoclickable
- if true the tree can be opened and closed with mouse clickspublic HTMLTree(Pair<?,?> p)
p
- the treepublic void setRefreshButton(boolean r)
public java.lang.String show()
HTMLPage
protected java.lang.String createLink(Link node, boolean encodeForJS)
node
- encodeForJS
- protected void drawTree(Pair<?,?> p, int level, boolean lastNode, java.lang.String leftSide)
protected void drawNonClickable(Pair<?,?> p, int level)
public java.lang.String getTree()
public java.lang.String getChildren()
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.