Class JDPMethodTree

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

public class JDPMethodTree
extends JDPTreePicker
Class JDPMethodTree represents a graphical perspective of methods and variables that make up a class file.


Constructor Index

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

Method Index

 o changeAppName(String)
Change the name of this app.
 o clear()
Clear the tree.
 o getCompleteSource(String)
Get the complete source of all the items in the tree.
 o getSelectedSourceItem()
Get the currently selected source item.
 o getShowParmNames()
Get whether parameter names should be displayed
 o getShowParmTypes()
Get whether parameter types should be displayed
 o handleEvent(Event)
 o refreshBranchFromItem(JDPSourceItem)
Refresh the details of a node from the item.
 o remove(JDPSourceItem)
Remove the specified Source Item.
 o saveSource(String, String)
Load the source for the specified file.
 o select(JDPSourceItem)
Select the specified Source Item.
 o selectItemWithSourceLine(int)
Select the item that has the source line requested.
 o setClassDescriptor(JDPSourceItem)
Load the tree using the class header source item and it child constructors, methods and global variables.
 o setShowParmNames(boolean)
Set whether parameter names should be displayed
 o setShowParmTypes(boolean)
Set whether parameter types should be displayed
 o setSource(String)
Set the source of the currently selected branch

Constructors

 o JDPMethodTree
 public JDPMethodTree(JDPUser user)
Creates a Method Tree Structure.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
 o JDPMethodTree
 public JDPMethodTree(JDPUser user,
                      Panel targetPanel)
Creates a Method 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 JDPMethodTree
 public JDPMethodTree(JDPUser user,
                      Panel targetPanel,
                      JDPDragItem dragPanel)
Creates a Method 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()
Clear the tree.

Overrides:
clear in class JDPTreePicker
 o setClassDescriptor
 public void setClassDescriptor(JDPSourceItem classHeader)
Load the tree using the class header source item and it child constructors, methods and global variables.

Parameters:
classHeader - the header for this class.
 o getSelectedSourceItem
 public JDPSourceItem getSelectedSourceItem()
Get the currently selected source item.

Returns:
the currently selected source item.
 o select
 public void select(JDPSourceItem item)
Select the specified Source Item.

Parameters:
the - source item to select.
 o remove
 public void remove(JDPSourceItem item)
Remove the specified Source Item.

Parameters:
the - source item to remove.
 o refreshBranchFromItem
 public void refreshBranchFromItem(JDPSourceItem item)
Refresh the details of a node from the item.

Parameters:
item - the item to refresh.
 o saveSource
 public boolean saveSource(String fullPathName,
                           String appName)
Load the source for the specified file.

Parameters:
fullPathName - the path to the source file to load.
appName - the name of the class file.
Returns:
whether the save was successful.
 o changeAppName
 public void changeAppName(String appName)
Change the name of this app.

Parameters:
appName - the name of the class file.
 o getCompleteSource
 public String getCompleteSource(String appName)
Get the complete source of all the items in the tree.

Parameters:
appName - the name of the class file.
Returns:
the complete source.
 o selectItemWithSourceLine
 public void selectItemWithSourceLine(int sourceLine)
Select the item that has the source line requested.

Parameters:
sourceLine - the source for the currently selected branch
 o setSource
 public void setSource(String source)
Set the source of the currently selected branch

Parameters:
source - the source for the currently selected branch
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class JDPTreePicker
 o setShowParmTypes
 public void setShowParmTypes(boolean display)
Set whether parameter types should be displayed

Parameters:
display - display types of parameter.
 o getShowParmTypes
 public boolean getShowParmTypes()
Get whether parameter types should be displayed

Returns:
whether whether parameter types should be displayed.
 o setShowParmNames
 public void setShowParmNames(boolean display)
Set whether parameter names should be displayed

Parameters:
display - display names of parameter.
 o getShowParmNames
 public boolean getShowParmNames()
Get whether parameter names should be displayed

Returns:
whether whether parameter names should be displayed.