public class FinancialPeriodComboBoxModel extends AbstractListModel implements ComboBoxModel, ServiceListener
| Modifier and Type | Field and Description |
|---|---|
protected List<FinancialPeriod> |
datasCache |
protected FinancialPeriodService |
financialPeriodService |
protected Object |
selectedFinancialPeriod |
protected FiscalPeriod |
selectedFiscalPeriod |
listenerList| Constructor and Description |
|---|
FinancialPeriodComboBoxModel()
Constructor for locked period list.
|
FinancialPeriodComboBoxModel(boolean displayAllPeriods)
Constructor for period list.
|
| Modifier and Type | Method and Description |
|---|---|
List<FinancialPeriod> |
getAllDataList() |
List<FinancialPeriod> |
getDataList() |
Object |
getElementAt(int index) |
Object |
getSelectedItem() |
int |
getSize() |
void |
notifyMethod(String serviceName,
String methodeName) |
void |
refresh() |
void |
refreshAll() |
void |
setSelectedFiscalPeriod(FiscalPeriod fiscalPeriod) |
void |
setSelectedItem(Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprotected Object selectedFinancialPeriod
protected List<FinancialPeriod> datasCache
protected FinancialPeriodService financialPeriodService
protected FiscalPeriod selectedFiscalPeriod
public FinancialPeriodComboBoxModel()
public FinancialPeriodComboBoxModel(boolean displayAllPeriods)
displayAllPeriods - if true, display all available period, otherwize
display only locked onespublic void setSelectedFiscalPeriod(FiscalPeriod fiscalPeriod)
public Object getElementAt(int index)
getElementAt in interface ListModelpublic void setSelectedItem(Object anItem)
setSelectedItem in interface ComboBoxModelpublic Object getSelectedItem()
getSelectedItem in interface ComboBoxModelpublic List<FinancialPeriod> getDataList()
public List<FinancialPeriod> getAllDataList()
public void refresh()
public void refreshAll()
public void notifyMethod(String serviceName, String methodeName)
notifyMethod in interface ServiceListenerCopyright © 2008–2015 CodeLutin. All rights reserved.