net.sourceforge.wohenchan
Class LanguageChooser.ComboModel

java.lang.Object
  |
  +--net.sourceforge.wohenchan.LanguageChooser.ComboModel
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.internal.SWTEventListener
Enclosing class:
LanguageChooser

private class LanguageChooser.ComboModel
extends java.lang.Object
implements org.eclipse.swt.events.ModifyListener


Field Summary
private  boolean m_actionPerformedInUse
          Used to make sure that actionPerformed does not generate more events for itself.
private  boolean mm_isAutodetectOn
           
(package private)  java.lang.String[] mm_items
           
(package private)  java.lang.String mm_selectedItem
           
 
Constructor Summary
LanguageChooser.ComboModel(java.lang.String[] items)
           
 
Method Summary
 java.lang.Object getElementAt(int i)
           
 java.lang.Object getSelectedItem()
          get the currently selected item.
 int getSize()
           
 void modifyText(org.eclipse.swt.events.ModifyEvent evt)
           
 void setSelectedItem(java.lang.Object selectedItem)
          Set the currently selected item.
 java.lang.String toString()
          Here for debugging purposes
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mm_selectedItem

java.lang.String mm_selectedItem

mm_items

java.lang.String[] mm_items

mm_isAutodetectOn

private boolean mm_isAutodetectOn

m_actionPerformedInUse

private boolean m_actionPerformedInUse
Used to make sure that actionPerformed does not generate more events for itself.

Constructor Detail

LanguageChooser.ComboModel

public LanguageChooser.ComboModel(java.lang.String[] items)
Method Detail

getSelectedItem

public java.lang.Object getSelectedItem()
get the currently selected item.

Returns:
the currently selected item

setSelectedItem

public void setSelectedItem(java.lang.Object selectedItem)
Set the currently selected item. This is a method which is used by setAutodetectedChoice and should not be called anywhere else. Use setAutodetectedChoice instead.


getElementAt

public java.lang.Object getElementAt(int i)

getSize

public int getSize()

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent evt)
Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener

toString

public java.lang.String toString()
Here for debugging purposes

Overrides:
toString in class java.lang.Object

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)