com.jurismarches.vradi.ui.models
Class EntityModel<E extends org.nuiton.wikitty.entities.BusinessEntity>
java.lang.Object
javax.swing.AbstractListModel
com.jurismarches.vradi.ui.models.EntityModel<E>
- All Implemented Interfaces:
- VradiEntitiesListener<E>, Serializable, ComboBoxModel, ListModel
public class EntityModel<E extends org.nuiton.wikitty.entities.BusinessEntity>
- extends AbstractListModel
- implements ComboBoxModel, VradiEntitiesListener<E>
- Author:
- letellier
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
datas
protected Map<String,E extends org.nuiton.wikitty.entities.BusinessEntity> datas
selected
protected E extends org.nuiton.wikitty.entities.BusinessEntity selected
firstNull
protected boolean firstNull
EntityModel
public EntityModel(Class<E> clazz,
List<E> datas)
EntityModel
public EntityModel(Class<E> clazz,
List<E> datas,
boolean firstNull)
fillDatas
protected void fillDatas(List<E> datas)
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(List<E> datas)
entitiesAdded
public void entitiesAdded(Set<E> added)
- Specified by:
entitiesAdded in interface VradiEntitiesListener<E extends org.nuiton.wikitty.entities.BusinessEntity>
entitiesRemoved
public void entitiesRemoved(Set<String> removed)
- Specified by:
entitiesRemoved in interface VradiEntitiesListener<E extends org.nuiton.wikitty.entities.BusinessEntity>
Copyright © 2009-2011 JurisMarches. All Rights Reserved.