public class ProfileListModel extends AbstractListModel implements TypedListModel<Property>, ListDataListener
| Modifier and Type | Field and Description |
|---|---|
protected TypedListModel<Property> |
fields |
protected Boolean |
visibility |
protected List<Integer> |
visibleIndex |
listenerList| Constructor and Description |
|---|
ProfileListModel(Hashtable<String,Profile<Property>> profiles,
Boolean visibility) |
ProfileListModel(Profile<Property> profile) |
ProfileListModel(Profile<Property> profile,
Boolean visibility) |
ProfileListModel(TypedListModel<Property> fields) |
ProfileListModel(TypedListModel<Property> fields,
Boolean visibility) |
| Modifier and Type | Method and Description |
|---|---|
protected Property |
addElement(Property p,
Boolean visibility) |
void |
contentsChanged(ListDataEvent e) |
Property |
getElementAt(int index) |
int |
getSize() |
protected int |
getVisibleIndex(int index) |
void |
intervalAdded(ListDataEvent e) |
void |
intervalRemoved(ListDataEvent e) |
protected void |
setVisible(Boolean visibility) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerprotected TypedListModel<Property> fields
protected Boolean visibility
public ProfileListModel(Hashtable<String,Profile<Property>> profiles, Boolean visibility)
public ProfileListModel(TypedListModel<Property> fields)
public ProfileListModel(TypedListModel<Property> fields, Boolean visibility)
protected void setVisible(Boolean visibility)
public Property getElementAt(int index)
getElementAt in interface TypedListModel<Property>getElementAt in interface ListModelprotected int getVisibleIndex(int index)
public void contentsChanged(ListDataEvent e)
contentsChanged in interface ListDataListenerpublic void intervalAdded(ListDataEvent e)
intervalAdded in interface ListDataListenerpublic void intervalRemoved(ListDataEvent e)
intervalRemoved in interface ListDataListenerCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.