net.sf.dictccfe.and
Class DictAndActivity.LVUpdater

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

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

Used for updating the list view. Used in connection with the Handler m_handler and background threads in order to make updates of the ListView element possible from threads. See also http://developer.android.com/guide/appendix/faq/commontasks.html#threading for more hints.

Version:
$Revision$
Author:
Daniel Stoinski

Field Summary
private  android.widget.ArrayAdapter<java.lang.CharSequence> m_adapter
          The adapter to update.
 
Constructor Summary
DictAndActivity.LVUpdater(android.widget.ArrayAdapter<java.lang.CharSequence> anAdapter)
          Initializes the class with the given adapter.
 
Method Summary
 void run()
          Updates the adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_adapter

private final android.widget.ArrayAdapter<java.lang.CharSequence> m_adapter
The adapter to update.

Constructor Detail

DictAndActivity.LVUpdater

public DictAndActivity.LVUpdater(android.widget.ArrayAdapter<java.lang.CharSequence> anAdapter)
Initializes the class with the given adapter.

Method Detail

run

public final void run()
Updates the adapter.

Specified by:
run in interface java.lang.Runnable