net.aerith.misao.util
Interface OperationObserver

All Known Implementing Classes:
AgentDesktop.BatchExaminationObserver, AgentDesktop.NewStarSearchObserver, AgentNewStarSearchInternalFrame.HtmlImageGalleryObserver, BatchExaminationInternalFrame, ControlPanel, NewStarSearchInternalFrame, RawDatabaseConstructionInternalFrame.CatalogDBObserver, RawDatabaseConstructionInternalFrame.InformationDBObserver, RawDatabaseConstructionInternalFrame.MagnitudeDBObserver, RecordSearchInternalFrame, DefaultOperationObserver

public interface OperationObserver

The OperationObserver is an interface which represents an observer of progress of an operation.


Method Summary
 void notifyEnd(java.lang.Exception exception)
          Invoked when the operation ends.
 void notifyFailed(java.lang.Object arg)
          Invoked when a task is failed.
 void notifyStart()
          Invoked when the operation starts.
 void notifySucceeded(java.lang.Object arg)
          Invoked when a task is succeeded.
 void notifyWarned(java.lang.Object arg)
          Invoked when a task is warned.
 

Method Detail

notifyStart

public void notifyStart()
Invoked when the operation starts.

notifyEnd

public void notifyEnd(java.lang.Exception exception)
Invoked when the operation ends.
Parameters:
exception - the exception if an error occurs, or null if succeeded.

notifySucceeded

public void notifySucceeded(java.lang.Object arg)
Invoked when a task is succeeded.
Parameters:
arg - the argument.

notifyFailed

public void notifyFailed(java.lang.Object arg)
Invoked when a task is failed.
Parameters:
arg - the argument.

notifyWarned

public void notifyWarned(java.lang.Object arg)
Invoked when a task is warned.
Parameters:
arg - the argument.