All Downloads are FREE. Search and download functionalities are using the official Maven repository.

editor.util.IProgressCallback Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package editor.util;

/**
 * An callback interface for indicating progress during a lengthy operation.
 * 

* Copyright 2010 Guidewire Software, Inc. */ public interface IProgressCallback { /** * How long is this operation in units? For a StagedProgressFeedback, this moves to the next stage * * @param iLength The number of units the operation is expected to execute. */ public void setLength( int iLength ); /** * Call this when a unit of progress completes. * * @param iProgress The unit of progress completed. * @param strMessage A short message describing the progress. * * @return Whether or not the operation should abort. * True to abort operation. */ public boolean updateProgress( int iProgress, String strMessage, String... args ); public boolean incrementProgress( String strMessage, String... args ); /** * Call this to update the progress message without modifying the amount of progress completed. */ public boolean updateProgress( String strMessage, String... args ); /** * Should the operation abort? * * @return True if the operation should abort. */ public boolean isAbort(); /** * Signals that the operation is complete */ public void operationComplete(); int getProgress(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy