Package com.groiss.gui
Class HTMLTree
java.lang.Object
com.groiss.gui.HTMLPage
com.groiss.gui.HTMLTree
- All Implemented Interfaces:
Page
,Serializable
Simple utility for showing tree structured data in an HTML page.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected boolean
protected boolean
protected String
Fields inherited from class com.groiss.gui.HTMLPage
contentType, page
-
Constructor Summary
ConstructorDescriptionThis class can be used to construct HTML pages containung a tree.HTMLTree
(Pair<?, ?> p, String pg, boolean clickable, boolean showBall, boolean showFld, String defaultTarget, Resource res, String prefix) This class can be used to construct HTML pages containung a tree.HTMLTree
(Pair<?, ?> p, String pg, boolean clickable, boolean showBall, String defaultTarget, Resource res) This class can be used to construct HTML pages containung a tree. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
createLink
(Link node, boolean encodeForJS) create the link.protected void
drawNonClickable
(Pair<?, ?> p, int level) setRefreshButton
(boolean r) show()
This method returns the page contents.Methods inherited from class com.groiss.gui.HTMLPage
addHeader, addHeader, addHeader, getContentType, getHeaders, setContentType, setMask, setPage, substEncoded, substitute, substitute, substitute
-
Field Details
-
clickable
protected boolean clickable -
showBall
protected boolean showBall -
showFolder
protected boolean showFolder -
defaultTarget
-
treeName
-
-
Constructor Details
-
HTMLTree
public HTMLTree(Pair<?, ?> p, String pg, boolean clickable, boolean showBall, boolean showFld, String defaultTarget, Resource res, String prefix) This class can be used to construct HTML pages containung a tree. the tree is built with com.groiss.ds.Pair objects, where the first element is a node (typically a link) the second element is a vector of Pairs representing the child nodes.- Parameters:
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)
-
HTMLTree
public HTMLTree(Pair<?, ?> p, String pg, boolean clickable, boolean showBall, String defaultTarget, Resource res) This class can be used to construct HTML pages containung a tree. the tree is built with com.groiss.ds.Pair objects, where the first element is a node (typically a link) the second element is a vector of Pairs representing the child nodes.- Parameters:
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 pg
-
HTMLTree
This class can be used to construct HTML pages containung a tree. the tree is built with com.groiss.ds.Pair objects, where the first element is a node (typically a link) the second element is a vector of Pairs representing the child nodes.- Parameters:
p
- the treepg
- the HTMLPage to put the tree intoclickable
- if true the tree can be opened and closed with mouse clicks
-
HTMLTree
- Parameters:
p
- the tree
-
-
Method Details