alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * 07/21/2001 - 13:14:14
 * ProjectManager.java
 * Copyright (C) 2001 Matt Benson
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package org.jext.project;


import javax.swing.JComponent;


/**
 * A manager for Jext Projects.
 *
 * @author Matt Benson
 */
public interface ProjectManager
{
	
/**
 * Adds a listener to the list that's notified each time a Project
 * change occurs.
 */
	public abstract void addProjectListener(ProjectListener listener);

	
/**
 * Removes a listener from the list that's notified each time a
 * Project change occurs.
 */
	public abstract void removeProjectListener(ProjectListener listener);
	
	
/**
 * Returns all this ProjectManager's Projects.
 * @return Project[].
 */
	public abstract Project[] getProjects();

	
/**
 * Returns this ProjectManager's currently active
 * Project.
 * @return Project[].
 */
	public abstract Project getCurrentProject();

	
/**
 * Causes this ProjectManager to start a new Project.
 */
	public abstract void newProject();

	
/**
 * Causes this ProjectManager to open the specified Project.
 * @param id   the Object identifier of the Project.
 */
	public abstract void openProject(Object id);
	
	
/**
 * Causes this ProjectManager to close the specified Project.
 * @param p   the Project to close.
 */
	public abstract void closeProject(Project p);
	
	
/**
 * Causes this ProjectManager to save the specified Project,
 * @param p   the Project to save.
 */
	public abstract void saveProject(Project p);
	
	
/**
 * Returns a swing component that acts as the interface between the user and
 * this ProjectManager.
 */
	public abstract JComponent getUI();
	
}//end class ProjectManager
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.