Method Summary |
|
public int | addAdditionalImage(int imageNo, String text, String url) This method places an image after the text of the current tree node. |
public int | addChild(String text, String URL, int image, int expImage, String imageURL, Object key) This method adds an item to the tree under the current item. |
public void | addHeaderComponent(HtmlComponent comp) Add header components to the tree. |
public void | addHeaderComponent(HtmlComponent comp, String align, String width) Add header components to the tree. |
public int | addImage(String URL) This method adds an image to the list of images used by the tree. |
public void | addNodeComponent(HtmlComponent comp) Add node components to the tree. |
public boolean | areChildrenLoaded() This method returns true if the current node has any children. |
public boolean | canSortOnColumn(int colNo) |
public void | clearAdditionalImages() This method removes any images that appear after the text. |
public void | clearSelections() This method will clear all selected items in the tree. |
public void | clearVisibleSelections() This method will clear all selected items in the tree. |
public void | deleteChildren(boolean deleteParent) This method removes all the children of the current node from the tree. |
public void | dump() This method writes the contents of the tree to System.error. |
public String | getAdditionalImage(int index) This method returns the URL of the additional images in the node. |
public int | getAdditionalImageCount() This method returns the number of additional images attached to this tree node. |
public String | getAdditionalText(int index) This method returns the text of the additional images in the node. |
public String | getAdditionalURL(int index) This method returns the URL that the user will go to for the additional image in the node. |
public int | getCount() This method returns the value of an internal counter in the class. |
public Enumeration | getElements() This method returns the a list of all the nodes in the tree. |
public int | getHandle() This method returns the handle of the current tree node. |
public String | getHeaderAlign(int index) |
public HtmlComponent | getHeaderComponent(int index) |
public int | getHeaderCount() |
public String | getHeaderWidth(int index) |
public String | getImage() This method returns the URL of the image associated with the current tree node. |
public String | getImageURL() This method returns the URL that the user will go to if they click on in the current node. |
public Object | getKey() This method returns the user data Object associated with the current node. |
public int | getLevel() This method returns the level of indentation for the current node. |
public int | getMode() This method gets the expand / contract mode for the tree. |
TreeNode | getNode() |
public Vector | getNodeComponents() |
public int | getRow() |
public int | getScrollTo() This method will return the tree node that will be scrolled to the next time the page is loaded. |
public int | getSelectMode() This method returns the select mode for the tree. |
public boolean | getSelectable() This method returns whether the current node will be selectable. |
public int | getSelected() This method returns the handle of the currently selected node. |
public boolean | getSelected(int handle) If select mode is MODE_MANY, this will return whether the item is selected or not. |
public boolean | getShowRoot() This method returns whether or not the root of the tree is visible. |
public String | getText() This method returns the text associated with the current tree node. |
public String | getURL() This method returns the URL for the current node in the tree. |
public boolean | gotoChild() This method positions the current node to the first child of the current one. |
public boolean | gotoItem(int item) This method positions the current node to a particular item (handle) on the tree. |
public boolean | gotoLastChild() This method positions the current node to the last child of the current one. |
public boolean | gotoNext() This method positions the current node to the next node on the same level. |
public boolean | gotoParent() This method positions the current node to the parent of the current. |
public boolean | gotoPrior() This method positions the current node to the prior node on the same level. |
public boolean | gotoRoot() This method positions the current node to the root node. |
public boolean | hasChildren() This method returns true if the current node has children. |
public boolean | isCurrentRoot() This method returns true if the current node is the root node. |
public boolean | isEmpty() This method returns true if the tree is empty. |
public boolean | isExpanded() This method returns true if the current item on the tree is expanded. |
public boolean | isItemVisible() This method returns true if the current item on the tree is visible. |
public boolean | itemExists(int item) This method returns true if a node with the specified handle exists in the tree. |
public String | replaceUno(String st) This method replace the value of the string "$UNO$" in the passed string with a number unique for the life of this tree buffer. |
public void | resetHeaders() |
public void | resetNodeComponents() |
public void | setCount(int count) Seeds an internal counter in the tree. |
public void | setExpanded(boolean expanded) This method expands or contracts the current tree node. |
public void | setHasChildren(boolean hasChildren) This method tells the tree whether the tree has children nodes. |
public void | setImages(int image, int expandedImage) |
public void | setKey(Object key) This sets key information associated with the current tree node. |
public void | setMode(int mode) This method sets the expand / contract mode for the tree. |
public void | setRow(int rowNo) For Trees with node components, you must specify a row in the datastore that corresponds to the items for the current node. |
public void | setScrollTo(int handle) This method returns the tree item that will be scrolled to the next time the tree is displayed in the browser. |
public void | setSelectMode(int selectMode) This method sets the select mode for the tree. |
public void | setSelectable(boolean sel) This method returns whether the current node will be selectable. |
public void | setSelected(int handle) This method sets the currently selected node. |
public void | setSelected(int handle, boolean trueFalse) If select mode is MODE_MANY, this will set the item to either selected or not. |
public void | setShowRoot(boolean show) This method shows or hides the root tree node. |
public void | setText(String text) This method sets the text associated with the current tree node. |
public void | setURL(String url) This method sets the URL associated with the current tree node. |
public synchronized void | sort(int column, int pathDir, int dir) |
public void | traverse(TreeTraversalCallBack cb, PrintWriter p) Use this method to traverse the tree. |
public void | traverse(TreeTraversalCallBack cb, PrintWriter p, boolean onlyExpanded) Use this method to traverse the tree. |