org.chorem.lima.ui.combobox
Class FiscalPeriodComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.chorem.lima.ui.combobox.FiscalPeriodComboBoxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, ServiceListener

public class FiscalPeriodComboBoxModel
extends AbstractListModel
implements ComboBoxModel, ServiceListener

See Also:
Serialized Form

Field Summary
protected  List<FiscalPeriod> datasCache
           
protected  FiscalPeriodServiceMonitorable fiscalPeriodService
           
protected  Object selectedFiscalPeriod
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
FiscalPeriodComboBoxModel()
           
 
Method Summary
 List<FiscalPeriod> getDataList()
           
 Object getElementAt(int index)
           
 Object getSelectedItem()
           
 int getSize()
           
 void notifyMethod(String serviceName, String methodeName)
           
 void refresh()
           
 void setSelectedItem(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

selectedFiscalPeriod

protected Object selectedFiscalPeriod

fiscalPeriodService

protected FiscalPeriodServiceMonitorable fiscalPeriodService

datasCache

protected List<FiscalPeriod> datasCache
Constructor Detail

FiscalPeriodComboBoxModel

public FiscalPeriodComboBoxModel()
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

setSelectedItem

public void setSelectedItem(Object anItem)
Specified by:
setSelectedItem in interface ComboBoxModel

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel

getDataList

public List<FiscalPeriod> getDataList()

refresh

public void refresh()

notifyMethod

public void notifyMethod(String serviceName,
                         String methodeName)
Specified by:
notifyMethod in interface ServiceListener


Copyright © 2008-2010 CodeLutin. All Rights Reserved.