[Japi-cvs] SF.net SVN: japi: [230] libs
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2006-11-26 23:23:23
|
Revision: 230 http://svn.sourceforge.net/japi/?rev=230&view=rev Author: christianhujer Date: 2006-11-26 15:23:22 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Added CanLoad interface to libs-swing-app. Modified Paths: -------------- libs/swing-bookmarks/trunk/libs-swing-bookmarks.iml libs/swing-bookmarks/trunk/src/net/sf/japi/swing/bookmarks/Bookmarkable.java Added Paths: ----------- libs/swing-app/trunk/src/ libs/swing-app/trunk/src/net/ libs/swing-app/trunk/src/net/sf/ libs/swing-app/trunk/src/net/sf/japi/ libs/swing-app/trunk/src/net/sf/japi/swing/ libs/swing-app/trunk/src/net/sf/japi/swing/app/ libs/swing-app/trunk/src/net/sf/japi/swing/app/CanLoad.java Copied: libs/swing-app/trunk/src/net/sf/japi/swing/app/CanLoad.java (from rev 225, historic/trunk/src/app/net/sf/japi/swing/io/CanLoad.java) =================================================================== --- libs/swing-app/trunk/src/net/sf/japi/swing/app/CanLoad.java (rev 0) +++ libs/swing-app/trunk/src/net/sf/japi/swing/app/CanLoad.java 2006-11-26 23:23:22 UTC (rev 230) @@ -0,0 +1,36 @@ +/* JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2004-2006 Christian Hujer + * + * 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 (at your option) 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 net.sf.japi.swing.app; + +/** Interface to be implemented by classes that are able to load a URL. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public interface CanLoad { + + /** Load a document. + * This method does not declare any exceptions. + * The implementor of this method is responsible for handling any exceptional conditions which might occur during the load operation. + * @param url URL to load + * @return <code>true</code> if and only if loading the file was successful + */ + boolean load(String url); + +} // interface CanLoad Modified: libs/swing-bookmarks/trunk/libs-swing-bookmarks.iml =================================================================== --- libs/swing-bookmarks/trunk/libs-swing-bookmarks.iml 2006-11-26 23:20:50 UTC (rev 229) +++ libs/swing-bookmarks/trunk/libs-swing-bookmarks.iml 2006-11-26 23:23:22 UTC (rev 230) @@ -10,6 +10,7 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="module" module-name="libs-swing-action" /> <orderEntry type="module" module-name="libs-util" /> + <orderEntry type="module" module-name="libs-swing-app" /> <orderEntryProperties /> </component> <component name="copyright"> Modified: libs/swing-bookmarks/trunk/src/net/sf/japi/swing/bookmarks/Bookmarkable.java =================================================================== --- libs/swing-bookmarks/trunk/src/net/sf/japi/swing/bookmarks/Bookmarkable.java 2006-11-26 23:20:50 UTC (rev 229) +++ libs/swing-bookmarks/trunk/src/net/sf/japi/swing/bookmarks/Bookmarkable.java 2006-11-26 23:23:22 UTC (rev 230) @@ -21,7 +21,7 @@ package net.sf.japi.swing.bookmarks; import java.awt.Component; -import net.sf.japi.swing.io.CanLoad; +import net.sf.japi.swing.app.CanLoad; /** Interface for classes that want to interact with the BookmarkManager. * Implement this interface if your class provides information for creating bookmarks. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |