net.sf.dictccfe.and
Class DictAndActivity.DictSelector

java.lang.Object
  extended by net.sf.dictccfe.and.DictAndActivity.DictSelector
All Implemented Interfaces:
android.content.DialogInterface.OnClickListener
Enclosing class:
DictAndActivity

private final class DictAndActivity.DictSelector
extends java.lang.Object
implements android.content.DialogInterface.OnClickListener

Listener for the dialog box for selecting or loading the dictionary.

Version:
$Revision$
Author:
Daniel Stoinski

Field Summary
private  DictAndActivity m_dictandactivity
          Calls method for loading the selected dictionary.
private  java.lang.String[] m_items
          The dictionary names shown in the dialog.
private  boolean m_loadorselect
          true for loading a dictionary and false for selecting one.
 
Constructor Summary
DictAndActivity.DictSelector(DictAndActivity aDictAndActivity, java.lang.String[] items, boolean loadorselect)
          Initializes an empty listener.
 
Method Summary
 void onClick(android.content.DialogInterface aDialog, int anItem)
          The click listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_items

private final java.lang.String[] m_items
The dictionary names shown in the dialog.


m_dictandactivity

private final DictAndActivity m_dictandactivity
Calls method for loading the selected dictionary.


m_loadorselect

private final boolean m_loadorselect
true for loading a dictionary and false for selecting one.

Constructor Detail

DictAndActivity.DictSelector

public DictAndActivity.DictSelector(DictAndActivity aDictAndActivity,
                                    java.lang.String[] items,
                                    boolean loadorselect)
Initializes an empty listener.

Parameters:
aDictAndActivity - here the method for loading the dictionary index will be called.
items - the items put for selection into the dialog.
Method Detail

onClick

public final void onClick(android.content.DialogInterface aDialog,
                          int anItem)
The click listener.

Specified by:
onClick in interface android.content.DialogInterface.OnClickListener
Parameters:
aDialog - the dialog, in which the selection was made.
anItem - the selected item.