fr.ifremer.isisfish.ui.input.model
Class TripTypeComboModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by fr.ifremer.isisfish.ui.input.model.TripTypeComboModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public class TripTypeComboModel
extends DefaultComboBoxModel

Model pour la liste des TripType. Pas de selection par defaut.

Version:
$Revision: 3279 $ Last update : $Date: 2011-04-21 14:53:31 +0200 (Thu, 21 Apr 2011) $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  List<TripType> tripTypes
          Trip types list
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TripTypeComboModel(List<TripType> tripTypes)
          Constructor with trip types list.
 
Method Summary
 Object getElementAt(int index)
           
 int getSize()
           
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getIndexOf, getSelectedItem, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
 
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

tripTypes

protected List<TripType> tripTypes
Trip types list

Constructor Detail

TripTypeComboModel

public TripTypeComboModel(List<TripType> tripTypes)
Constructor with trip types list.

Parameters:
tripTypes - Trip types list
Method Detail

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.