org.formaria.editor.langed
Class LangListModel
java.lang.Object
javax.swing.AbstractListModel
org.formaria.editor.langed.LangListModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
public class LangListModel
- extends javax.swing.AbstractListModel
- implements javax.swing.ComboBoxModel
A wrapper for the Swing list model
Copyright (c) Formaria Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Formaria.
$Revision: 1.5 $
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| 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 |
LangListModel
public LangListModel(EdLanguage l,
boolean showIds,
boolean showKeys)
getSize
public int getSize()
- Specified by:
getSize in interface javax.swing.ListModel
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
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
setSelectedItem
public void setSelectedItem(int anItem)
getString
public java.lang.String getString(int id)
getStringAt
public java.lang.String getStringAt(int idx)
getStringId
public int getStringId(int idx)
addString
public int addString(java.lang.String keyString,
java.lang.String newString)