com.groiss.gui
Class HTMLTree
java.lang.Object
com.groiss.gui.HTMLPage
com.groiss.gui.HTMLTree
- All Implemented Interfaces:
- Page, java.io.Serializable
public class HTMLTree
- extends HTMLPage
Shows a tree, the tree is build with javascript.
- See Also:
- Serialized Form
|
Constructor Summary |
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. |
|
Method Summary |
protected void |
drawNonClickable(Pair p,
int level)
|
protected void |
drawTree(Pair p,
int level,
boolean lastNode,
java.lang.String leftSide)
|
protected void |
renderObject(Link node,
boolean isFolder,
boolean showBll,
java.lang.String leftSide,
int level)
|
void |
setRefreshButton(boolean r)
|
java.lang.String |
show()
This method returns the page contents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clickable
protected boolean clickable
showBall
protected boolean showBall
showFolder
protected boolean showFolder
defaultTarget
protected java.lang.String defaultTarget
treeName
protected java.lang.String treeName
HTMLTree
public HTMLTree(Pair p,
java.lang.String pg,
boolean clickable,
boolean showBall,
boolean showFld,
java.lang.String defaultTarget,
Resource res,
java.lang.String prefix)
throws ApplicationException
- 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)
- Throws:
ApplicationException
HTMLTree
public HTMLTree(Pair p,
java.lang.String pg,
boolean clickable,
boolean showBall,
java.lang.String defaultTarget,
Resource res)
throws ApplicationException
- 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
- Throws:
ApplicationException
HTMLTree
public HTMLTree(Pair p,
java.lang.String pg,
boolean clickable)
throws ApplicationException
- 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
- Throws:
ApplicationException
HTMLTree
public HTMLTree(Pair p)
throws ApplicationException
- Parameters:
p - the tree
- Throws:
ApplicationException
setRefreshButton
public void setRefreshButton(boolean r)
show
public java.lang.String show()
- Description copied from class:
HTMLPage
- This method returns the page contents.
- Specified by:
show in interface Page- Overrides:
show in class HTMLPage
drawTree
protected void drawTree(Pair p,
int level,
boolean lastNode,
java.lang.String leftSide)
renderObject
protected void renderObject(Link node,
boolean isFolder,
boolean showBll,
java.lang.String leftSide,
int level)
drawNonClickable
protected void drawNonClickable(Pair p,
int level)
Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.