com.jurismarches.vradi.ui.models
Class EntityModel<E>
java.lang.Object
javax.swing.AbstractListModel
com.jurismarches.vradi.ui.models.EntityModel<E>
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel
public class EntityModel<E>
- extends AbstractListModel
- implements ComboBoxModel
- Author:
- letellier
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entryDef
protected jaxx.runtime.context.JAXXContextEntryDef<List<E>> entryDef
datas
protected List<E> datas
selected
protected E selected
firstNull
protected boolean firstNull
EntityModel
public EntityModel(Collection<E> datas)
EntityModel
public EntityModel(Collection<E> datas,
boolean firstNull)
EntityModel
public EntityModel(jaxx.runtime.context.JAXXContextEntryDef<List<E>> entryDef)
EntityModel
public EntityModel(jaxx.runtime.context.JAXXContextEntryDef<List<E>> entryDef,
boolean firstNull)
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
updateDatas
protected void updateDatas()
Copyright © 2009-2010 JurisMarches. All Rights Reserved.