Class JDPTreePicker

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPTreePicker

public class JDPTreePicker
extends Panel
Class JDPTreePicker represents a tree structure.


Variable Index

 o ARROW
 o autoScrollOn
 o BLANK1
 o BLANK2
 o BLANK3
 o BUTTON
 o CALENDAR
 o CHART
 o CHECKBOX
 o CHISELFRAME
 o CHOICE
 o COLUMN_RESIZED
Column resized event.
 o COLUMN_SELECTED
Column resized event.
 o COMPUTER
 o CUSTOM
 o DATABASE
 o DIALOG
 o DOCUMENT
 o DRIVE
 o EMAIL
 o FOLDER
 o GRID
 o HOTKEY
 o ITEM_MOVED
List item moved event.
 o LABEL
 o LIST
 o MULTIPLE_DATABASE
 o MULTIPLE_TABLE
 o PAGER
 o PANEL
 o PERSON
 o PICTURE
 o PRINTER
 o PROGRESS
 o RADIO
 o REPORT
 o RMI
 o SCROLLEAST
 o SCROLLSOUTH
 o SEARCH
 o SLIDER
 o SPINNER
 o TAB
 o TABLE
 o TEXTFIELD
 o TREE
 o TREE_WIDTH_RESIZED
Tree width resized event.

Constructor Index

 o JDPTreePicker()
Creates a Tree Structure.
 o JDPTreePicker(JDPUser)
Creates a Tree Structure.
 o JDPTreePicker(JDPUser, Panel)
Creates a Tree Structure.
 o JDPTreePicker(JDPUser, Panel, JDPDragItem)
Creates a Tree Structure.

Method Index

 o addBranch(JDPTreeBranch, String, int)
Add a leaf to this branch and count it as an indexed branch
 o addBranch(JDPTreeBranch, String, int, boolean, Object, String, boolean)
Add a leaf to this branch and count it as an indexed branch
 o addBranch(JDPTreeBranch, String, int, Object, String)
Add a leaf to this branch and count it as an indexed branch
 o addEntry(String[])
Create a new branch using the specified path of names.
 o addEntry(String[], boolean)
Create a new branch using the specified path of names.
 o addEntry(String[], boolean, boolean)
Create a new branch using the specified path of names.
 o addEntry(String[], int[], Object, String, String, String[], String[][], Vector)
Create a new branch using the specified path of names.
 o addEntry(String[], int[], String)
Create a new branch using the specified path of names.
 o addEntry(String[], int[], String, boolean)
Create a new branch using the specified path of names.
 o addItem(JDPTreeBranch, String, int, boolean, Object, String, boolean)
Add a leaf to this branch.
 o addNewBranch(JDPTreeBranch, String, int)
Add a leaf to this branch and count it as an indexed branch
 o addNewBranch(JDPTreeBranch, String, int, boolean, Object, String, boolean)
Add a leaf to this branch and count it as an indexed branch
 o addNewBranch(JDPTreeBranch, String, int, Object, String, String)
Add a leaf to this branch and count it as an indexed branch
 o clear()
Remove all the entries from the Tree.
 o getAlwaysHasFocus()
Get whether this component always appears to have focus.
 o getBranch(Object)
Get the branch for the object.
 o getColumnHeader(int)
Get the header of a column
 o getColumns()
Set the number of columns
 o getColumnWidth(int)
Get the width of a column
 o getCurrentBranch()
Get the selected branch.
 o getDragPanel()
Get the drag panel for dragging.
 o getIconValue(String)
Get the icon number for this icon text.
 o getLastAddedBranch()
Get the last added branch.
 o getMinHeight()
Get the minimum height of the tree panel.
 o getMinWidth()
Get the minimum width of the tree panel.
 o getMultipleSelections()
Get the multiple selections flag.
 o getParentBranch()
Get the parent branch of the selected branch.
 o getRightJustify(int)
Get the right justification flag of a column
 o getScrollEastDisabled()
Get whether the east scrollbar has been removed
 o getScrollSouthDisabled()
Get whether the south scrollbar has been removed
 o getSelectedBranch()
Get the branch names of the currently selected branch.
 o getSelectedBranchIcons()
Get the icons of the selected branch.
 o getSelectedIcon()
Get the icon of the currently selected branch.
 o getSelectedIndex()
Get the index of the selected branch.
 o getSelectedIndexes()
(List only) Get the selected indexes in the List.
 o getSelectedItem()
Get the name of the currently selected branch.
 o getSelectedItems()
(List only) Get the selected items in the List.
 o getSelectedLvl()
Get the level of the selected branch.
 o getSelectionsCheckboxes()
Get whether selections are displayed as checkboxes.
 o getTitle()
Get the root name of the tree.
 o getTreeBranch(Object)
Get the branches for the object.
 o getTreeBranchIgnoreCase(String[])
Get the branches for the branch names.
 o getTreeBranchNames(Object)
Get the branch names for the object.
 o getTreeIconList()
Get a list of all the tree icon names.
 o getVisibleIndex()
Get the index of the visible branch.
 o handleEvent(Event)
 o layout()
 o makeVisible(int)
Make the requested index visible.
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o reDraw()
Redraw the tree.
 o removeBranch(JDPTreeBranch)
Remove the lower leaves from the requested branch.
 o removeBranch(String[])
Remove the selected branch and it's lower leaves.
 o removeTreeBranch(JDPTreeBranch)
Remove the selected branch and it's lower leaves.
 o resetSelections()
Reset the selections.
 o resetSelections(JDPTreeBranch)
Reset the selections in the requested branch.
 o select(int)
Select the requested item based on the index.
 o select(JDPTreeBranch)
Select a specific branch of the tree.
 o select(String[])
Select a specific branch of the tree.
 o selectLastAddedBranch()
Select a the last added branch of the tree.
 o selectRoot()
Select the root branch of the tree.
 o setAlwaysHasFocus(boolean)
Set whether this component always appears to have focus.
 o setColumnHeader(int, String)
Set the header of a column
 o setColumns(int)
Set the number of columns
 o setColumnWidth(int, int)
Set the width of a column
 o setCompType(String)
Set the compType value for any branches added from here on.
 o setDragAndDrop(boolean[])
Set the dragAndDrop flags for any branches added from here on.
 o setDragPanel(JDPDragItem)
Set the drag panel for dragging.
 o setDropKeys(Object[])
Set the dropKey values for any branches added from here on.
 o setDropMessages(String[])
Set the dropMessage values for any branches added from here on.
 o setExpanded(boolean[])
Set the expanded flags for any branches added from here on.
 o setIconImagePath(String)
Set the path for the image that conatins the button icons.
 o setIcons(int[])
Set the icons for any branches added from here on.
 o setMinHeight(int)
Set the minimum height of the tree panel.
 o setMinWidth(int)
Set the minimum width of the tree panel.
 o setMultipleSelections(boolean)
Set the tree to allow multiple selections.
 o setObject(Object)
Set the thisObject value for any branches added from here on.
 o setPosition(String)
Set the compPosition value for any branches added from here on.
 o setProperties(String[][])
Set the properties value for any branches added from here on.
 o setResizingAllowed()
Get whether dragging the with of the tree will resized it.
 o setResizingAllowed(boolean)
Set whether dragging the with of the tree will resized it.
 o setRightJustify(int, boolean)
Set the right justification flag of a column
 o setRoot(String, boolean)
Remove all the entries from the Tree and set the root name.
 o setRoot(String, boolean, int)
Remove all the entries from the Tree and set the root name.
 o setScrollEastDisabled(boolean)
Set whether the east scrollbar should be disabled
 o setScrollSouthDisabled(boolean)
Set whether the south scrollbar should be disabled
 o setSelectionsCheckboxes(boolean)
Set selections to display as checkboxes.
 o setTargetPanel(Panel)
Set the target panel for dragging.
 o setText(String[])
Set the text value for any branches added from here on.
 o setTitle(String)
Set the root name of the tree.
 o setTreeVector(Vector)
Set the treeVector value for any branches added from here on.
 o sortTree()
Sort the tree in ascending order.
 o sortTree(JDPTreeBranch)
Sort this branch and its lower branches in ascending order.
 o sortTree(JDPTreeBranch, boolean)
Sort this branch and its lower branches in ascending order.
 o sortTree(JDPTreeBranch, boolean, boolean[])
Sort this branch and its lower branches in ascending order.
 o sortTree(JDPTreeBranch, boolean[])
Sort this branch and its lower branches in ascending order.
 o update(Graphics)

Variables

 o FOLDER
 public static final int FOLDER
 o TABLE
 public static final int TABLE
 o MULTIPLE_TABLE
 public static final int MULTIPLE_TABLE
 o DATABASE
 public static final int DATABASE
 o COMPUTER
 public static final int COMPUTER
 o PERSON
 public static final int PERSON
 o MULTIPLE_DATABASE
 public static final int MULTIPLE_DATABASE
 o SEARCH
 public static final int SEARCH
 o DOCUMENT
 public static final int DOCUMENT
 o DRIVE
 public static final int DRIVE
 o PRINTER
 public static final int PRINTER
 o BLANK1
 public static final int BLANK1
 o BLANK2
 public static final int BLANK2
 o BLANK3
 public static final int BLANK3
 o ARROW
 public static final int ARROW
 o PICTURE
 public static final int PICTURE
 o LABEL
 public static final int LABEL
 o TEXTFIELD
 public static final int TEXTFIELD
 o CHISELFRAME
 public static final int CHISELFRAME
 o BUTTON
 public static final int BUTTON
 o CHECKBOX
 public static final int CHECKBOX
 o RADIO
 public static final int RADIO
 o CHOICE
 public static final int CHOICE
 o LIST
 public static final int LIST
 o SCROLLSOUTH
 public static final int SCROLLSOUTH
 o SCROLLEAST
 public static final int SCROLLEAST
 o PANEL
 public static final int PANEL
 o TAB
 public static final int TAB
 o TREE
 public static final int TREE
 o GRID
 public static final int GRID
 o HOTKEY
 public static final int HOTKEY
 o SLIDER
 public static final int SLIDER
 o PROGRESS
 public static final int PROGRESS
 o SPINNER
 public static final int SPINNER
 o CUSTOM
 public static final int CUSTOM
 o CHART
 public static final int CHART
 o REPORT
 public static final int REPORT
 o EMAIL
 public static final int EMAIL
 o PAGER
 public static final int PAGER
 o CALENDAR
 public static final int CALENDAR
 o DIALOG
 public static final int DIALOG
 o RMI
 public static final int RMI
 o TREE_WIDTH_RESIZED
 public static final int TREE_WIDTH_RESIZED
Tree width resized event.

 o autoScrollOn
 public boolean autoScrollOn
 o ITEM_MOVED
 public static final int ITEM_MOVED
List item moved event.

 o COLUMN_RESIZED
 public static final int COLUMN_RESIZED
Column resized event.

 o COLUMN_SELECTED
 public static final int COLUMN_SELECTED
Column resized event.

Constructors

 o JDPTreePicker
 public JDPTreePicker()
Creates a Tree Structure.

 o JDPTreePicker
 public JDPTreePicker(JDPUser user)
Creates a Tree Structure.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
 o JDPTreePicker
 public JDPTreePicker(JDPUser user,
                      Panel targetPanel)
Creates a Tree Structure.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
targetPanel - the parent panel that this one will be added to.
 o JDPTreePicker
 public JDPTreePicker(JDPUser user,
                      Panel targetPanel,
                      JDPDragItem dragPanel)
Creates a Tree Structure.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
targetPanel - the parent panel that this one will be added to.
dragPanel - the panel that handle the drag and drop functions.

Methods

 o clear
 public void clear()
Remove all the entries from the Tree.

 o setRoot
 public JDPTreeBranch setRoot(String name,
                              boolean expanded)
Remove all the entries from the Tree and set the root name.

Parameters:
rootName - the text for the tree root.
expanded - show branches (should be set to true initially).
Returns:
handle to the root node of the tree.
 o setRoot
 public JDPTreeBranch setRoot(String name,
                              boolean expanded,
                              int rootIcon)
Remove all the entries from the Tree and set the root name.

Parameters:
rootName - the text for the tree root.
expanded - show branches (should be set to true initially).
rootIcon - the icon of the root node of the tree.
Returns:
handle to the root node of the tree.
 o getTitle
 public String getTitle()
Get the root name of the tree.

Returns:
the text for the tree root.
 o setTitle
 public void setTitle(String title)
Set the root name of the tree.

Parameters:
rootName - the text for the tree root.
 o addItem
 public JDPTreeBranch addItem(JDPTreeBranch branch,
                              String name,
                              int icon,
                              boolean dragAndDrop,
                              Object dropKey,
                              String dropMessage,
                              boolean expanded)
Add a leaf to this branch.

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
dragAndDrop - the leaf allows both dragging and dropping.
dropKey - the drop key for drag and drop.
dropMessage - the status message to display if this is a dropable leaf.
expanded - show this leaf expanded by default.
Returns:
a handle to the newly created branch.
 o addEntry
 public JDPTreeBranch addEntry(String name[],
                               int icons[],
                               Object thisObject,
                               String compType,
                               String compPosition,
                               String text[],
                               String properties[][],
                               Vector treeVector)
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
icon - the icons of the branches that make the levels to this new leaf.
thisObject - the new Object value for this leaf.
compType - the component type of this new leaf.
compPosition - the component position of this new leaf.
text - the text of this new leaf.
properties - the properties of this new leaf.
treeVector - the treeVector of this new leaf.
Returns:
a handle to the newly created branch.
 o addEntry
 public boolean addEntry(String name[],
                         int icons[],
                         String compType)
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
icon - the icons of the branches that make the levels to this new leaf.
compType - the component type of this new leaf.
Returns:
true is branch already exists.
 o addEntry
 public boolean addEntry(String name[],
                         int icons[],
                         String compType,
                         boolean ignoreCase)
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
icon - the icons of the branches that make the levels to this new leaf.
compType - the component type of this new leaf.
ignoreCase - ignore the case of the branch names allowing uniqueness without case.
Returns:
true is branch already exists.
 o addEntry
 public boolean addEntry(String name[])
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
Returns:
true is branch already exists.
 o addEntry
 public boolean addEntry(String name[],
                         boolean ignoreCase)
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
ignoreCase - ignore the case of the branch names allowing uniqueness without case.
Returns:
true is branch already exists.
 o addEntry
 public boolean addEntry(String name[],
                         boolean ignoreCase,
                         boolean addIfExists)
Create a new branch using the specified path of names.

Parameters:
name - the names of the branches that make the levels to this new leaf.
ignoreCase - ignore the case of the branch names allowing uniqueness without case.
addIfExists - if this branch exists just add it anyway.
Returns:
true is branch already exists.
 o addBranch
 public void addBranch(JDPTreeBranch existingBranch,
                       String name,
                       int icon,
                       boolean dragAndDrop,
                       Object dropKey,
                       String dropMessage,
                       boolean expanded)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
dragAndDrop - the leaf allows both dragging and dropping.
dropKey - the drop key for drag and drop.
dropMessage - the status message to display if this is a dropable leaf.
expanded - show this leaf expanded by default.
 o addNewBranch
 public JDPTreeBranch addNewBranch(JDPTreeBranch existingBranch,
                                   String name,
                                   int icon,
                                   boolean dragAndDrop,
                                   Object dropKey,
                                   String dropMessage,
                                   boolean expanded)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
dragAndDrop - the leaf allows both dragging and dropping.
dropKey - the drop key for drag and drop.
dropMessage - the status message to display if this is a dropable leaf.
expanded - show this leaf expanded by default.
Returns:
a handle to the branch that was just created.
 o addBranch
 public void addBranch(JDPTreeBranch existingBranch,
                       String name,
                       int icon)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
Returns:
a handle to the branch that was just created.
 o addNewBranch
 public JDPTreeBranch addNewBranch(JDPTreeBranch existingBranch,
                                   String name,
                                   int icon)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
Returns:
a handle to the branch that was just created.
 o addBranch
 public void addBranch(JDPTreeBranch existingBranch,
                       String name,
                       int icon,
                       Object dropKey,
                       String dropMessage)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
dropKey - the key to use when activating drag and drop.
Returns:
a handle to the branch that was just created.
 o addNewBranch
 public JDPTreeBranch addNewBranch(JDPTreeBranch existingBranch,
                                   String name,
                                   int icon,
                                   Object dropKey,
                                   String dropMessage,
                                   String compType)
Add a leaf to this branch and count it as an indexed branch

Parameters:
branch - the branch to add this leaf to.
name - the name of this new leaf.
icon - the icon for this new leaf.
dropKey - the key to use when activating drag and drop.
compType - the type of component this branch represents.
Returns:
a handle to the branch that was just created.
 o setIcons
 public void setIcons(int icons[])
Set the icons for any branches added from here on.

Parameters:
icons - the icons array for the branch levels.
 o setExpanded
 public void setExpanded(boolean expanded[])
Set the expanded flags for any branches added from here on.

Parameters:
expanded - the expanded flags array for the branch levels.
 o setSelectionsCheckboxes
 public void setSelectionsCheckboxes(boolean selections)
Set selections to display as checkboxes.

Parameters:
selections - to display as checkboxes.
 o getSelectionsCheckboxes
 public boolean getSelectionsCheckboxes()
Get whether selections are displayed as checkboxes.

Returns:
whether selections are displayed as checkboxes.
 o setTargetPanel
 public void setTargetPanel(Panel target)
Set the target panel for dragging.

Parameters:
the - target panel for drag and drop handling.
 o setDragPanel
 public void setDragPanel(JDPDragItem drag)
Set the drag panel for dragging.

Parameters:
the - drag panel for drag and drop handling.
 o getDragPanel
 public JDPDragItem getDragPanel()
Get the drag panel for dragging.

Returns:
the drag panel for drag and drop handling.
 o setDragAndDrop
 public void setDragAndDrop(boolean dragAndDrops[])
Set the dragAndDrop flags for any branches added from here on.

Parameters:
dragAndDrops - the dragAndDrop flags array for the branch levels.
 o setDropKeys
 public void setDropKeys(Object dropKeys[])
Set the dropKey values for any branches added from here on.

Parameters:
dropKeys - the dropKey values array for the branch levels.
 o setDropMessages
 public void setDropMessages(String dropMessages[])
Set the dropMessage values for any branches added from here on.

Parameters:
dropMessages - the dropMessage values array for the branch levels.
 o setObject
 public void setObject(Object thisObject)
Set the thisObject value for any branches added from here on.

Parameters:
thisObject - the thisObject value for the branch levels.
 o setCompType
 public void setCompType(String compType)
Set the compType value for any branches added from here on.

Parameters:
compType - the compType value for the branch levels.
 o setPosition
 public void setPosition(String compPosition)
Set the compPosition value for any branches added from here on.

Parameters:
compPosition - the compPosition value for the branch levels.
 o setText
 public void setText(String text[])
Set the text value for any branches added from here on.

Parameters:
text - the text value for the branch levels.
 o setProperties
 public void setProperties(String properties[][])
Set the properties value for any branches added from here on.

Parameters:
properties - the properties value for the branch levels.
 o setTreeVector
 public void setTreeVector(Vector treeVector)
Set the treeVector value for any branches added from here on.

Parameters:
treeVector - the treeVector value for the branch levels.
 o setMultipleSelections
 public void setMultipleSelections(boolean multiple)
Set the tree to allow multiple selections. This feature is presently not implemented.

Parameters:
multiple - allow multiple selections.
 o getMultipleSelections
 public boolean getMultipleSelections()
Get the multiple selections flag. This feature is presently not implemented.

Returns:
allow multiple selections.
 o setAlwaysHasFocus
 public void setAlwaysHasFocus(boolean focus)
Set whether this component always appears to have focus. This will result in a selection always being filled solid with background color instead of just a box.

Parameters:
focus - whether this component always appears to have focus.
 o getAlwaysHasFocus
 public boolean getAlwaysHasFocus()
Get whether this component always appears to have focus. This will result in a selection always being filled solid with background color instead of just a box.

Returns:
whether this component always appears to have focus.
 o setIconImagePath
 public void setIconImagePath(String thisImageLoc)
Set the path for the image that conatins the button icons. This class has a default image call JDPBUTNS.gif that may be overidden. To create your own icon image use the JDPBUTNS.gif as a template.

Parameters:
thisImageLoc - the full or partial path to the new image.
 o getTreeIconList
 public static String[] getTreeIconList()
Get a list of all the tree icon names.

Returns:
the list of all the tree icon names.
 o getIconValue
 public static int getIconValue(String icon)
Get the icon number for this icon text. Use getTreeIconList() to get a list of icon names and then user this method to get the corresponding icon number.

Returns:
the icon number.
 o setColumns
 public void setColumns(int columns)
Set the number of columns

Parameters:
columns - the number of columns.
 o getColumns
 public int getColumns()
Set the number of columns

Parameters:
columns - the number of columns.
 o setColumnHeader
 public void setColumnHeader(int col,
                             String header)
Set the header of a column

Parameters:
col - the column.
header - the header.
 o getColumnHeader
 public String getColumnHeader(int col)
Get the header of a column

Parameters:
col - the column.
Returns:
the column header.
 o setColumnWidth
 public void setColumnWidth(int col,
                            int width)
Set the width of a column

Parameters:
col - the column.
the - width in pixels.
 o getColumnWidth
 public int getColumnWidth(int col)
Get the width of a column

Parameters:
col - the column.
Returns:
the width in pixels.
 o setRightJustify
 public void setRightJustify(int col,
                             boolean justify)
Set the right justification flag of a column

Parameters:
the - column.
the - justification flag.
 o getRightJustify
 public boolean getRightJustify(int col)
Get the right justification flag of a column

Parameters:
the - column.
Returns:
the justification flag.
 o setResizingAllowed
 public void setResizingAllowed(boolean allowed)
Set whether dragging the with of the tree will resized it.

Parameters:
allowed - whether resizing is allowed.
 o setResizingAllowed
 public boolean setResizingAllowed()
Get whether dragging the with of the tree will resized it.

Returns:
whether dragging the with of the tree will resized it.
 o sortTree
 public void sortTree()
Sort the tree in ascending order.

 o sortTree
 public void sortTree(JDPTreeBranch branch)
Sort this branch and its lower branches in ascending order.

Parameters:
branch - the branch to sort.
 o sortTree
 public void sortTree(JDPTreeBranch branch,
                      boolean ignoreCase)
Sort this branch and its lower branches in ascending order.

Parameters:
branch - the branch to sort.
ignoreCase - true to treat differenet cases as the same
 o sortTree
 public void sortTree(JDPTreeBranch branch,
                      boolean leaveUnsorted[])
Sort this branch and its lower branches in ascending order.

Parameters:
branch - the branch to sort.
leaveUnsorted - levels of the branch to leave unsorted.
 o sortTree
 public void sortTree(JDPTreeBranch branch,
                      boolean ignoreCase,
                      boolean leaveUnsorted[])
Sort this branch and its lower branches in ascending order.

Parameters:
branch - the branch to sort.
ignoreCase - true to treat differenet cases as the same
leaveUnsorted - levels of the branch to leave unsorted.
 o removeBranch
 public boolean removeBranch(String name[])
Remove the selected branch and it's lower leaves.

Parameters:
name - the branch name heirarchy to remove.
Returns:
true if the branch was removed.
 o reDraw
 public void reDraw()
Redraw the tree.

 o removeBranch
 public boolean removeBranch(JDPTreeBranch branch)
Remove the lower leaves from the requested branch.

Parameters:
branch - the branch to remove.
Returns:
true if the branch was removed.
 o removeTreeBranch
 public boolean removeTreeBranch(JDPTreeBranch branch)
Remove the selected branch and it's lower leaves.

Parameters:
branch - the branch to remove.
Returns:
true if the branch was removed.
 o getMinWidth
 public int getMinWidth()
Get the minimum width of the tree panel.

Returns:
the minimum width of the tree panel.
 o setMinWidth
 public void setMinWidth(int width)
Set the minimum width of the tree panel.

Parameters:
minimumWidth - the new minimum width of the tree panel.
 o getMinHeight
 public int getMinHeight()
Get the minimum height of the tree panel.

Returns:
the minimum height of the tree panel.
 o setMinHeight
 public void setMinHeight(int height)
Set the minimum height of the tree panel.

Parameters:
minimumHeight - the new minimum height of the tree panel.
 o setScrollEastDisabled
 public void setScrollEastDisabled(boolean disabled)
Set whether the east scrollbar should be disabled

Parameters:
disabled - flag.
 o getScrollEastDisabled
 public boolean getScrollEastDisabled()
Get whether the east scrollbar has been removed

Returns:
whether disabled or not.
 o setScrollSouthDisabled
 public void setScrollSouthDisabled(boolean disabled)
Set whether the south scrollbar should be disabled

Parameters:
disabled - flag.
 o getScrollSouthDisabled
 public boolean getScrollSouthDisabled()
Get whether the south scrollbar has been removed

Returns:
whether disabled or not.
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o getTreeBranchNames
 public String[] getTreeBranchNames(Object thisObject)
Get the branch names for the object.

Parameters:
thisObject - the object to look for (String, Rectangle, Component, JDPTreeBranch, Integer(branchIndex)).
Returns:
the branch names.
 o getBranch
 public JDPTreeBranch getBranch(Object thisObject)
Get the branch for the object.

Parameters:
thisObject - the object to look for (String, Rectangle, Component, JDPTreeBranch, Integer(branchIndex)).
Returns:
the branch of the tree.
 o getTreeBranch
 public JDPTreeBranch[] getTreeBranch(Object thisObject)
Get the branches for the object.

Parameters:
thisObject - the object to look for (String, Rectangle, Component, JDPTreeBranch, Integer(branchIndex)).
Returns:
the branches of the tree.
 o getTreeBranchIgnoreCase
 public JDPTreeBranch[] getTreeBranchIgnoreCase(String names[])
Get the branches for the branch names.

Parameters:
names - the names look for.
Returns:
the branches of the tree.
 o selectRoot
 public void selectRoot()
Select the root branch of the tree.

 o select
 public void select(JDPTreeBranch thisBranch)
Select a specific branch of the tree.

Parameters:
branch - the branch to select.
 o select
 public void select(String thisBranch[])
Select a specific branch of the tree.

Parameters:
names - the names of the branches in the heirarchy to select.
 o selectLastAddedBranch
 public void selectLastAddedBranch()
Select a the last added branch of the tree.

 o getSelectedItem
 public String getSelectedItem()
Get the name of the currently selected branch.

Returns:
the name of the currently selected branch.
 o getSelectedIcon
 public int getSelectedIcon()
Get the icon of the currently selected branch.

Returns:
the icon of the currently selected branch.
 o getSelectedBranch
 public String[] getSelectedBranch()
Get the branch names of the currently selected branch.

Returns:
the branch names of the currently selected branch.
 o getSelectedItems
 public String[] getSelectedItems()
(List only) Get the selected items in the List.

Returns:
the list items that are selected.
 o select
 public void select(int index)
Select the requested item based on the index.

Parameters:
index - the index of the item to select.
 o makeVisible
 public void makeVisible(int index)
Make the requested index visible.

Parameters:
index - the index of the item to make visible.
 o getSelectedIndexes
 public int[] getSelectedIndexes()
(List only) Get the selected indexes in the List. Presently multiple selections are not supported so this function only returns one item.

Returns:
the list indexes that are selected.
 o getSelectedBranchIcons
 public int[] getSelectedBranchIcons()
Get the icons of the selected branch.

Returns:
the icons of the branch that is selected.
 o getCurrentBranch
 public JDPTreeBranch getCurrentBranch()
Get the selected branch.

Returns:
the branch that is selected.
 o getParentBranch
 public JDPTreeBranch getParentBranch()
Get the parent branch of the selected branch.

Returns:
the parent branch of the branch that is selected.
 o getLastAddedBranch
 public JDPTreeBranch getLastAddedBranch()
Get the last added branch.

Returns:
the branch that was added last.
 o getSelectedIndex
 public int getSelectedIndex()
Get the index of the selected branch.

Returns:
the index of the selected branch.
 o getVisibleIndex
 public int getVisibleIndex()
Get the index of the visible branch.

Returns:
the index of the visible branch.
 o getSelectedLvl
 public int getSelectedLvl()
Get the level of the selected branch.

Returns:
the level of the selected branch.
 o handleEvent
 public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component
 o resetSelections
 public void resetSelections()
Reset the selections.

 o resetSelections
 public void resetSelections(JDPTreeBranch branch)
Reset the selections in the requested branch.

Parameters:
branch - the branch to start from to reset the selections.
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container