org.melati.util
Class JSStaticTree

Package class diagram package JSStaticTree
java.lang.Object
  extended by org.melati.util.Tree
      extended by org.melati.util.JSStaticTree

public class JSStaticTree
extends Tree

A JavaScript tree which can be rendered as ordinary HTML.


Constructor Summary
JSStaticTree(Treeable[] nodes, String staticURL)
          Constructor for an array.
JSStaticTree(Tree tree, String staticURL)
          Constructor.
 
Method Summary
 String getBackgroundColour()
           
 String getClosedFolderImage()
           
 String getClosedLImage()
           
 String getClosedTImage()
           
 Integer getDepthPerDownload()
           
 String getImageBaseRef()
           
 String getLeafImage()
           
 String getLeafLImage()
           
 String getLeafTImage()
           
 String getOpenedFolderImage()
           
 String getOpenedLImage()
           
 String getOpenedTImage()
           
 String getSpacerImage()
           
 String getVerticalLinkImage()
           
 void setBackgroundColour(String bg)
          Set the background colour.
 void setClosedFolderImage(String cfi)
          Set the closed folder image name.
 void setClosedLImage(String cli)
          Set the closed L image.
 void setClosedTImage(String cti)
          Set the closed Tee image.
 void setDepthPerDownload(Integer dpd)
          Set the depth per download.
 void setImageBaseRef(String ibr)
          Set the image base href.
 void setLeafImage(String li)
          Set the leaf image.
 void setLeafLImage(String lli)
          Set the leaf L image.
 void setLeafTImage(String lti)
          Set the Leaf Tee image.
 void setOpenedFolderImage(String ofi)
          Set the opened folder image name.
 void setOpenedLImage(String oli)
          Set the opened L image.
 void setOpenedTImage(String oti)
          Set the opened Tee image.
 void setSpacerImage(String si)
          Set the spacer image name.
 void setVerticalLinkImage(String vli)
          Set the vertical link image.
 
Methods inherited from class org.melati.util.Tree
apply, applyBreadthFirst, applyBreadthFirst, applyDepthFirst, applyDepthFirst, flattened, flattened, flattened, getDepth, getTreeableRoots, sorted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSStaticTree

public JSStaticTree(Tree tree,
                    String staticURL)
Constructor.

Parameters:
tree - the Tree to render
staticURL - images base url

JSStaticTree

public JSStaticTree(Treeable[] nodes,
                    String staticURL)
Constructor for an array.

Parameters:
nodes -
staticURL -
Method Detail

getBackgroundColour

public String getBackgroundColour()
Returns:
the background colour hex string (without a hash)

setBackgroundColour

public void setBackgroundColour(String bg)
Set the background colour.

Parameters:
bg - the background colour hex string (without a hash)

getVerticalLinkImage

public String getVerticalLinkImage()
Returns:
the vertical link image

setVerticalLinkImage

public void setVerticalLinkImage(String vli)
Set the vertical link image.

Parameters:
vli - the vertical link image

getSpacerImage

public String getSpacerImage()
Returns:
the spacer image name

setSpacerImage

public void setSpacerImage(String si)
Set the spacer image name.

Parameters:
si - the spacer image name to set

getOpenedFolderImage

public String getOpenedFolderImage()
Returns:
the opened folder image name

setOpenedFolderImage

public void setOpenedFolderImage(String ofi)
Set the opened folder image name.

Parameters:
ofi - the opened folder image name to set

getClosedFolderImage

public String getClosedFolderImage()
Returns:
the closed folder image name

setClosedFolderImage

public void setClosedFolderImage(String cfi)
Set the closed folder image name.

Parameters:
cfi - the closed folder image name to set

getOpenedTImage

public String getOpenedTImage()
Returns:
the opened Tee image

setOpenedTImage

public void setOpenedTImage(String oti)
Set the opened Tee image.

Parameters:
oti - the opened Tee image to set

getOpenedLImage

public String getOpenedLImage()
Returns:
the opened L image

setOpenedLImage

public void setOpenedLImage(String oli)
Set the opened L image.

Parameters:
oli - the opened L image to set

getClosedTImage

public String getClosedTImage()
Returns:
the closed Tee image

setClosedTImage

public void setClosedTImage(String cti)
Set the closed Tee image.

Parameters:
cti - the closed Tee image

getClosedLImage

public String getClosedLImage()
Returns:
the closed L image

setClosedLImage

public void setClosedLImage(String cli)
Set the closed L image.

Parameters:
cli - the closed L image

getLeafTImage

public String getLeafTImage()
Returns:
the Leaf Tee image

setLeafTImage

public void setLeafTImage(String lti)
Set the Leaf Tee image.

Parameters:
lti - the Leaf Tee image to set

getLeafLImage

public String getLeafLImage()
Returns:
the leaf L image

setLeafLImage

public void setLeafLImage(String lli)
Set the leaf L image.

Parameters:
lli - the leaf L image to set

getLeafImage

public String getLeafImage()
Returns:
the leaf image

setLeafImage

public void setLeafImage(String li)
Set the leaf image.

Parameters:
li - the leaf image to set

getImageBaseRef

public String getImageBaseRef()
Returns:
the image base href

setImageBaseRef

public void setImageBaseRef(String ibr)
Set the image base href.

Parameters:
ibr - the image base href to set

getDepthPerDownload

public Integer getDepthPerDownload()
Returns:
the depth per download

setDepthPerDownload

public void setDepthPerDownload(Integer dpd)
Set the depth per download.

Parameters:
dpd - the depth per download to set


Copyright © 2000-2010 PanEris. All Rights Reserved.