CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.rubik.impexp
Class TranslateNotationComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by ch.randelshofer.rubik.impexp.TranslateNotationComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

public class TranslateNotationComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

A combo box model which lets the user choose a notation to translate scripts. In addition this combo box model provides a choice "Do not translate".

Author:
werni
See Also:
Serialized Form

Field Summary
static java.lang.String DO_NOT_TRANSLATE
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TranslateNotationComboBoxModel()
          Creates a new instance of TranslateNotationComboBoxModel
 
Method Summary
 java.lang.Object getElementAt(int index)
           
 java.lang.Object getSelectedItem()
           
 int getSize()
           
 void setDocumentModel(DocumentModel model)
           
 void setSelectedItem(java.lang.Object anItem)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Field Detail

DO_NOT_TRANSLATE

public static final java.lang.String DO_NOT_TRANSLATE
See Also:
Constant Field Values
Constructor Detail

TranslateNotationComboBoxModel

public TranslateNotationComboBoxModel()
Creates a new instance of TranslateNotationComboBoxModel

Method Detail

setDocumentModel

public void setDocumentModel(DocumentModel model)

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getSelectedItem

public java.lang.Object getSelectedItem()
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel

(c) Werner Randelshofer.
All rights reserved.