/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2005-2008, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library 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
* Lesser General Public License for more details.
*/
package org.geotoolkit.util;
import org.geotoolkit.process.ProgressController;
/**
* A default progress listener implementation suitable for
* subclassing.
* <p>
* This implementation supports cancelation and getting/setting the description.
* The default implementations of the other methods do nothing.
* </p>
*
* @module
* @since 2.2
* @version $Id$
*/
public class NullProgressListener extends ProgressController {
/**
* Creates a null progress listener with no description.
*/
public NullProgressListener() {
}
/**
* {@inheritDoc }
*/
@Override
public void started() {
//do nothing
}
/**
* {@inheritDoc }
*/
@Override
public void warningOccurred(final String source, final String location, final String warning) {
//do nothing
}
/**
* {@inheritDoc }
*/
@Override
public void exceptionOccurred(final Throwable exception) {
//do nothing
}
@Override
public void completed() {
//do nothing
}
@Override
public void paused() {
//do nothing
}
@Override
public void resumed() {
//do nothing
}
}