    001    package ifs.util;
    002
    003    /**
    004     * Progress bar listener.
    005     *
    006     * @author <a href="mailto:muller@ktiml.mff.cuni.cz">Tomáš Müller</a>
    007     * @version 1.0
    008     */
    009    public interface ProgressListener {
    010        /** Progress status is changed
    011         * @param status current status name
    012         */
    013        public void statusChanged(String status);
    014        /** Progress phase is changed
    015         * @param phase current phase name
    016         */
    017        public void phaseChanged(String phase);
    018        /** Progress bar is changed
    019         * @param currentProgress current progress
    020         * @param maxProgress maximum progress in this phase
    021         */
    022        public void progressChanged(long currentProgress, long maxProgress);
    023        /** Progress is saved */
    024        public void progressSaved();
    025        /** Progress is restored */
    026        public void progressRestored();
    027    }