org.dinopolis.gpstool.util
Interface ProgressListener


public interface ProgressListener

Interface to be informed about progress (in reading/writing data from gps device, from files, etc.).

Version:
$Revision: 1.5 $
Author:
Christof Dallermassl

Method Summary
 void actionEnd(java.lang.String action_id)
          Callback to inform listeners about the end of the action.
 void actionProgress(java.lang.String action_id, int current_value)
          Callback to inform listeners about progress going on.
 void actionStart(java.lang.String action_id, int min_value, int max_value)
          Callback to inform listeners about an action to start.
 

Method Detail

actionStart

public void actionStart(java.lang.String action_id,
                        int min_value,
                        int max_value)
Callback to inform listeners about an action to start.

Parameters:
action_id - the id of the action that is started. This id may be used to display a message for the user.
min_value - the minimum value of the progress counter.
max_value - the maximum value of the progress counter. If the max value is unknown, max_value is set to Integer.NaN.

actionProgress

public void actionProgress(java.lang.String action_id,
                           int current_value)
Callback to inform listeners about progress going on. It is not guaranteed that this method is called on every change of current value (e.g. only call this method on every 10th change).

Parameters:
action_id - the id of the action that is started. This id may be used to display a message for the user.
current_value - the current value

actionEnd

public void actionEnd(java.lang.String action_id)
Callback to inform listeners about the end of the action.

Parameters:
action_id - the id of the action that is started. This id may be used to display a message for the user.