net.sf.dictccfe.and
Class DictAndActivity.ProgrShower

java.lang.Object
  extended by net.sf.dictccfe.and.DictAndActivity.ProgrShower
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
DictAndActivity

private final class DictAndActivity.ProgrShower
extends java.lang.Object
implements java.lang.Runnable


Field Summary
private  android.content.Context m_context
          The context on which to show the progress dialog.
private  android.app.ProgressDialog m_dialog
          The progress dialog window.
private  boolean m_doclose
          If the progress window has to be closed.
private  java.lang.StringBuffer m_hlpbuf
          Help buffer for strings shown in the dialog.
private  int m_progress
          The progress in percents to show.
 
Constructor Summary
DictAndActivity.ProgrShower(android.content.Context aContext)
          Initializes an empty object for the given context.
 
Method Summary
 void run()
          Does the whole job.
 void setDialog(android.app.ProgressDialog aDialog)
          Sets the progress dialog.
 void setProgr(int aProgr, boolean doClose)
          Sets the progress operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_context

private final android.content.Context m_context
The context on which to show the progress dialog.


m_dialog

private android.app.ProgressDialog m_dialog
The progress dialog window.


m_hlpbuf

private java.lang.StringBuffer m_hlpbuf
Help buffer for strings shown in the dialog. Only internal meaning.


m_progress

private int m_progress
The progress in percents to show.


m_doclose

private boolean m_doclose
If the progress window has to be closed.

Constructor Detail

DictAndActivity.ProgrShower

public DictAndActivity.ProgrShower(android.content.Context aContext)
Initializes an empty object for the given context.

Parameters:
aContext - the context on which to show the dialog.
Method Detail

setDialog

public final void setDialog(android.app.ProgressDialog aDialog)
Sets the progress dialog.


setProgr

public final void setProgr(int aProgr,
                           boolean doClose)
Sets the progress operation.

Parameters:
aProgr - the progress in percents to set
doClose - if the progress window has to be close.

run

public final void run()
Does the whole job. Either shows the current progress or closes the progress window.

Specified by:
run in interface java.lang.Runnable