fr.ifremer.isisfish.ui.models.common
Class StringComboModel
java.lang.Object
javax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
fr.ifremer.isisfish.ui.models.common.StringComboModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel, MutableComboBoxModel
public class StringComboModel
- extends DefaultComboBoxModel
Model pour pour la representation d'une liste de String.
Utilisation dans les JComboBox.
- Version:
- $Revision: 3632 $
Last update : $Date: 2012-03-05 11:26:31 +0100 (Mon, 05 Mar 2012) $
By : $Author: echatellier $
- Author:
- chatellier
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringList
protected List<String> stringList
String list.
StringComboModel
public StringComboModel()
- Empty constructor.
StringComboModel
public StringComboModel(List<String> stringList)
- Constructor with export list.
- Parameters:
stringList - String list
getStringList
public List<String> getStringList()
- Get
String list.
- Returns:
String list
setStringList
public void setStringList(List<String> stringList)
- Set
String list.
- Parameters:
stringList - String list to set
addString
public void addString(String string)
containsString
public boolean containsString(String string)
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt in interface ListModel- Overrides:
getElementAt in class DefaultComboBoxModel
getSize
public int getSize()
- Specified by:
getSize in interface ListModel- Overrides:
getSize in class DefaultComboBoxModel
Copyright © 1999-2012 CodeLutin. All Rights Reserved.