All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnr.ide.DesktopController

java.lang.Object
   |
   +----vnr.ide.DesktopController

public class DesktopController
extends Object
implements MouseListener, TreeSelectionListener, BuildListener
This is the controller for the Desktop class. It's job is to take UI events and adapt them to model or business logic calls.


Constructor Index

 o DesktopController()

Method Index

 o buildComplete(BuildEvent)
method to handle completed builds
 o getView()
 o mouseClicked(MouseEvent)
handle mouse clicks on the tree - specifically class/package/hierarchy clicks
get last component on tree path (user/category/project/view name) == viewname
path components are whatever was added to the tree, in my case, DefaultMutableTreeNode's
Set the ProjectView panel to have the parent project as the current project and make that panel visible
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o setView(Desktop)
set the view that this controller is handling
 o valueChanged(TreeSelectionEvent)
handle tree selection

Constructors

 o DesktopController
 public DesktopController()

Methods

 o mouseClicked
 public void mouseClicked(MouseEvent me)
handle mouse clicks on the tree - specifically class/package/hierarchy clicks
get last component on tree path (user/category/project/view name) == viewname
path components are whatever was added to the tree, in my case, DefaultMutableTreeNode's
Set the ProjectView panel to have the parent project as the current project and make that panel visible

 o valueChanged
 public void valueChanged(TreeSelectionEvent tse)
handle tree selection

 o setView
 public void setView(Desktop v)
set the view that this controller is handling

 o buildComplete
 public void buildComplete(BuildEvent be)
method to handle completed builds

 o mouseExited
 public void mouseExited(MouseEvent $1)
 o mousePressed
 public void mousePressed(MouseEvent $2)
 o mouseEntered
 public void mouseEntered(MouseEvent $3)
 o mouseReleased
 public void mouseReleased(MouseEvent $4)
 o getView
 public Desktop getView()

All Packages  Class Hierarchy  This Package  Previous  Next  Index