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.
-
JDPMethodTree(JDPUser)
- Creates a Method Tree Structure.
-
JDPMethodTree(JDPUser, Panel)
- Creates a Method Tree Structure.
-
JDPMethodTree(JDPUser, Panel, JDPDragItem)
- Creates a Method Tree Structure.
-
changeAppName(String)
- Change the name of this app.
-
clear()
- Clear the tree.
-
getCompleteSource(String)
- Get the complete source of all the items in the tree.
-
getSelectedSourceItem()
- Get the currently selected source item.
-
getShowParmNames()
- Get whether parameter names should be displayed
-
getShowParmTypes()
- Get whether parameter types should be displayed
-
handleEvent(Event)
-
-
refreshBranchFromItem(JDPSourceItem)
- Refresh the details of a node from the item.
-
remove(JDPSourceItem)
- Remove the specified Source Item.
-
saveSource(String, String)
- Load the source for the specified file.
-
select(JDPSourceItem)
- Select the specified Source Item.
-
selectItemWithSourceLine(int)
- Select the item that has the source line requested.
-
setClassDescriptor(JDPSourceItem)
- Load the tree using the class header source item and it child constructors,
methods and global variables.
-
setShowParmNames(boolean)
- Set whether parameter names should be displayed
-
setShowParmTypes(boolean)
- Set whether parameter types should be displayed
-
setSource(String)
- Set the source of the currently selected branch
JDPMethodTree
public JDPMethodTree(JDPUser user)
- Creates a Method Tree Structure.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
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.
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.
clear
public void clear()
- Clear the tree.
- Overrides:
- clear in class JDPTreePicker
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.
getSelectedSourceItem
public JDPSourceItem getSelectedSourceItem()
- Get the currently selected source item.
- Returns:
- the currently selected source item.
select
public void select(JDPSourceItem item)
- Select the specified Source Item.
- Parameters:
- the - source item to select.
remove
public void remove(JDPSourceItem item)
- Remove the specified Source Item.
- Parameters:
- the - source item to remove.
refreshBranchFromItem
public void refreshBranchFromItem(JDPSourceItem item)
- Refresh the details of a node from the item.
- Parameters:
- item - the item to refresh.
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.
changeAppName
public void changeAppName(String appName)
- Change the name of this app.
- Parameters:
- appName - the name of the class file.
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.
selectItemWithSourceLine
public void selectItemWithSourceLine(int sourceLine)
- Select the item that has the source line requested.
- Parameters:
- sourceLine - the source for the currently selected branch
setSource
public void setSource(String source)
- Set the source of the currently selected branch
- Parameters:
- source - the source for the currently selected branch
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class JDPTreePicker
setShowParmTypes
public void setShowParmTypes(boolean display)
- Set whether parameter types should be displayed
- Parameters:
- display - display types of parameter.
getShowParmTypes
public boolean getShowParmTypes()
- Get whether parameter types should be displayed
- Returns:
- whether whether parameter types should be displayed.
setShowParmNames
public void setShowParmNames(boolean display)
- Set whether parameter names should be displayed
- Parameters:
- display - display names of parameter.
getShowParmNames
public boolean getShowParmNames()
- Get whether parameter names should be displayed
- Returns:
- whether whether parameter names should be displayed.