All Packages Class Hierarchy This Package Previous Next Index
Class vnr.ide.Desktop
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----vnr.ide.Desktop
- public class Desktop
- extends JPanel
Desktop for VNRJ
1997-10-29 dlg Created
1997-11-17 dlg Changed to use a tree and card layout rather than tabs
- Author:
- dIon
-
cards
- the panel that holds the many other panels that show views of the selected
element in the tree
-
cardsLM
- the layout manager used by cards
-
catView
- category view - shown when a category is selected in the tree
-
classList
- list of classes, alphabetically
-
currentDetailsView
- currentProjectDetailsView - the currently selected details view of a project, or null
-
hierarchy
- need to create its own view for this variable
-
noList
- need to create its own view for this variable
-
pkgList
- a view of the project: tree of projects, with classes as leaves
-
projView
- project view - shown when a project is selected in the tree
-
scroller
- a scroll pane to hold the tree
-
status
- the status bar - used to communicate non-actionable messages to the user
-
userView
- user view - shown when a user is selected in the tree
-
Desktop(String, Server)
- Desktop consists of a SplitPane with a tree and a cardlayout view window
-
addClassToCurrentProject(NetRexxClass)
- Add a new class to the currently selected project
-
addClassToCurrentProject(String)
- Add a new class to the currently selected project
-
addProject(String)
- Add a project to the currently selected category:
- Tell server to add a new project
- get the selected category node
- Add to that node a new project (same way loadTree works)
-
buildClass(NetRexxClass)
- method to send a build to the server for the selected project of the tree
using a NetRexxClass
-
buildClassForProject(NetRexxClass, Project)
- method to send a build to the server for the given project
-
categorySelected(Category)
- handle a click on a category
- set the category for the view
-
classListSelected(Project)
- handle a click on the class list item - set the project for the card being viewed
-
emptyStatus()
- empty the status bar
-
getAddClassAction()
-
-
getBuildClassAction()
-
-
getController()
-
-
getCoordinator()
-
-
getDesktop(JComponent)
- retrieve the desktop the class list is a child of
-
getEditClassAction()
-
-
getExitAction()
-
-
getModel()
-
-
getNewCategoryAction()
-
-
getNewProjectAction()
-
-
getOpenBuildResultsAction()
-
-
getRemoveClassAction()
-
-
getRemoveCurrentCategoryAction()
-
-
getRemoveCurrentProjectAction()
-
-
getRoot()
-
-
getSelectedCategory()
-
-
getSelectedCategoryNode()
-
Get selection path of the tree and get the 2nd element:
0 -> 1 -> 2 -> 3
root->category->project->View (category is 2nd)
-
getSelectedClass()
-
-
getSelectedProject()
-
-
getSplit()
-
-
getTheServer()
-
-
getTheUser()
-
-
getTree()
-
-
getUserModel()
- get the current user for the desktop
-
packageListSelected(Project)
- handle a click on the package list item - set the project for the view
-
projectSelected(Project)
-
handle a click on a project
- set the project for the view
-
removeClassFromCurrentProject(NetRexxClass)
- Removes a netRexxClass from the currently selected project ???
-
removeClassFromCurrentProject(String)
- Removes a class from the currently selected project
-
removeCurrentCategory()
- Remove the selected category from the tree
Updates the model directly
-
removeCurrentProject()
- Remove the currently selected project from the selected category
-
setAddClassAction(AddClassToCurrentProject)
-
-
setBuildClassAction(BuildCurrentClass)
-
-
setController(DesktopController)
-
-
setCoordinator(WindowCoordinator)
-
-
setCurrentProjectCodeBase(String)
- set the codeBase for the currently selected project
-
setEditClassAction(EditCurrentClass)
-
-
setExitAction(ExitApplication)
-
-
setModel(DefaultTreeModel)
-
-
setNewCategoryAction(NewCategory)
-
-
setNewProjectAction(NewProject)
-
-
setOpenBuildResultsAction(OpenBuildResults)
-
-
setRemoveClassAction(RemoveCurrentClass)
-
-
setRemoveCurrentCategoryAction(RemoveCurrentCategory)
-
-
setRemoveCurrentProjectAction(RemoveCurrentProject)
-
-
setRoot(DefaultMutableTreeNode)
-
-
setSplit(JSplitPane)
-
-
setTheServer(Server)
-
-
setTheUser(String)
-
-
setTree(JTree)
-
-
showDefault()
- show default view - called to show the default for the right hand side of the view
-
showStatus(String)
- Show a message on the status bar
-
userSelected(User)
- handle someone clicking on the user
scroller
protected JScrollPane scroller
- a scroll pane to hold the tree
cards
protected JPanel cards
- the panel that holds the many other panels that show views of the selected
element in the tree
cardsLM
protected CardLayout cardsLM
- the layout manager used by cards
pkgList
protected PackageListView pkgList
- a view of the project: tree of projects, with classes as leaves
hierarchy
protected PackageListView hierarchy
- need to create its own view for this variable
classList
protected ClassListView classList
- list of classes, alphabetically
noList
protected CategoryView noList
- need to create its own view for this variable
userView
protected UserView userView
- user view - shown when a user is selected in the tree
catView
protected CategoryView catView
- category view - shown when a category is selected in the tree
projView
protected ProjectView projView
- project view - shown when a project is selected in the tree
currentDetailsView
protected ProjectDetailsView currentDetailsView
- currentProjectDetailsView - the currently selected details view of a project, or null
status
protected StatusBar status
- the status bar - used to communicate non-actionable messages to the user
Desktop
public Desktop(String uid,
Server srv)
- Desktop consists of a SplitPane with a tree and a cardlayout view window
classListSelected
public void classListSelected(Project p)
- handle a click on the class list item - set the project for the card being viewed
packageListSelected
public void packageListSelected(Project p)
- handle a click on the package list item - set the project for the view
projectSelected
public void projectSelected(Project p)
- handle a click on a project
- set the project for the view
categorySelected
public void categorySelected(Category c)
- handle a click on a category
- set the category for the view
userSelected
public void userSelected(User u)
- handle someone clicking on the user
getSelectedClass
public NetRexxClass getSelectedClass()
- Returns:
- the selected class from the current details view
- See Also:
- ProjectDetailsView
showDefault
public void showDefault()
- show default view - called to show the default for the right hand side of the view
removeCurrentCategory
public boolean removeCurrentCategory()
- Remove the selected category from the tree
Updates the model directly
- Returns:
- true or false - from removeCategory or false if nothing selected
getSelectedCategory
public Category getSelectedCategory()
- Returns:
- the currently selected category from the tree, or null if one isn't selected
- See Also:
- Category
getSelectedProject
public Project getSelectedProject()
- Returns:
- the currently selected project from the tree or null if one isn't selected
- See Also:
- Project
getSelectedCategoryNode
public DefaultMutableTreeNode getSelectedCategoryNode()
-
Get selection path of the tree and get the 2nd element:
0 -> 1 -> 2 -> 3
root->category->project->View (category is 2nd)
- Returns:
- the currently selected category from the tree as a DefaultMutableTreeNode
addProject
public boolean addProject(String name)
- Add a project to the currently selected category:
- Tell server to add a new project
- get the selected category node
- Add to that node a new project (same way loadTree works)
- Returns:
- true/false - success indicator
removeCurrentProject
public boolean removeCurrentProject()
- Remove the currently selected project from the selected category
- Returns:
- success of removal as a boolean
setCurrentProjectCodeBase
public void setCurrentProjectCodeBase(String codeBase)
- set the codeBase for the currently selected project
addClassToCurrentProject
public boolean addClassToCurrentProject(String className)
- Add a new class to the currently selected project
- Parameters:
- className - - the fully qualified class, e.g. vnr.ide.Desktop
- Returns:
- success of removal as a boolean
addClassToCurrentProject
public void addClassToCurrentProject(NetRexxClass nrxClass)
- Add a new class to the currently selected project
- Parameters:
- nrxClass - - the NetRexxClass to be added
removeClassFromCurrentProject
public boolean removeClassFromCurrentProject(String className)
- Removes a class from the currently selected project
- Parameters:
- className - - the fully qualified class, e.g. vnr.ide.Desktop
- Returns:
- success of removal as a boolean
removeClassFromCurrentProject
public void removeClassFromCurrentProject(NetRexxClass nrxClass)
- Removes a netRexxClass from the currently selected project ???
- Parameters:
- className - - the fully qualified class, e.g. vnr.ide.Desktop
- Returns:
- success of removal as a boolean
- See Also:
- NetRexxClass
getUserModel
public User getUserModel()
- get the current user for the desktop
buildClass
public void buildClass(NetRexxClass nrxClass)
- method to send a build to the server for the selected project of the tree
using a NetRexxClass
- See Also:
- NetRexxClass
buildClassForProject
public void buildClassForProject(NetRexxClass nrxClass,
Project proj)
- method to send a build to the server for the given project
- Parameters:
- nrxClass - - the class to build
- proj - - the project the class is being built for
- See Also:
- NetRexxClass, Project
getDesktop
public static Desktop getDesktop(JComponent c)
- retrieve the desktop the class list is a child of
showStatus
public void showStatus(String msg)
- Show a message on the status bar
- Parameters:
- msg - The text to show on the statusBar
emptyStatus
public void emptyStatus()
- empty the status bar
getTheServer
public Server getTheServer()
setTheServer
public void setTheServer(Server $1)
getTheUser
public String getTheUser()
setTheUser
public void setTheUser(String $2)
getRoot
public DefaultMutableTreeNode getRoot()
setRoot
public void setRoot(DefaultMutableTreeNode $3)
getTree
public JTree getTree()
setTree
public void setTree(JTree $4)
getCoordinator
public WindowCoordinator getCoordinator()
setCoordinator
public void setCoordinator(WindowCoordinator $5)
getNewCategoryAction
public NewCategory getNewCategoryAction()
setNewCategoryAction
public void setNewCategoryAction(NewCategory $6)
getNewProjectAction
public NewProject getNewProjectAction()
setNewProjectAction
public void setNewProjectAction(NewProject $7)
getOpenBuildResultsAction
public OpenBuildResults getOpenBuildResultsAction()
setOpenBuildResultsAction
public void setOpenBuildResultsAction(OpenBuildResults $8)
getExitAction
public ExitApplication getExitAction()
setExitAction
public void setExitAction(ExitApplication $9)
getRemoveCurrentCategoryAction
public RemoveCurrentCategory getRemoveCurrentCategoryAction()
setRemoveCurrentCategoryAction
public void setRemoveCurrentCategoryAction(RemoveCurrentCategory $10)
getRemoveCurrentProjectAction
public RemoveCurrentProject getRemoveCurrentProjectAction()
setRemoveCurrentProjectAction
public void setRemoveCurrentProjectAction(RemoveCurrentProject $11)
getAddClassAction
public AddClassToCurrentProject getAddClassAction()
setAddClassAction
public void setAddClassAction(AddClassToCurrentProject $12)
getRemoveClassAction
public RemoveCurrentClass getRemoveClassAction()
setRemoveClassAction
public void setRemoveClassAction(RemoveCurrentClass $13)
getEditClassAction
public EditCurrentClass getEditClassAction()
setEditClassAction
public void setEditClassAction(EditCurrentClass $14)
getBuildClassAction
public BuildCurrentClass getBuildClassAction()
setBuildClassAction
public void setBuildClassAction(BuildCurrentClass $15)
getModel
public DefaultTreeModel getModel()
setModel
public void setModel(DefaultTreeModel $16)
getController
public DesktopController getController()
setController
public void setController(DesktopController $17)
getSplit
public JSplitPane getSplit()
setSplit
public void setSplit(JSplitPane $18)
All Packages Class Hierarchy This Package Previous Next Index