public int compare(PropertyEntry o1, PropertyEntry o2) {
return o1.getKey().compareTo(o2.getKey());
}
};
this.propertyList = new ObservableElementList<PropertyEntry>(
GlazedLists.threadSafeList(new SortedList(new BasicEventList<PropertyEntry>(), comp)),
GlazedLists.beanConnector(PropertyEntry.class));
for (String s : Download.propertyNames) {
PropertyEntry e = new PropertyEntry(s, getPropValue(s));
d.addPropertyChangeListener(e);
propertyList.add(e);
}
propertyModel = new EventTableModel<PropertyEntry>(propertyList, new String[]{PropertyEntry.PROP_KEY, PropertyEntry.PROP_VALUE}, new String[]{PropertyEntry.PROP_KEY, PropertyEntry.PROP_VALUE}, new boolean[]{false, false});
this.extraList = new ObservableElementList<PropertyEntry>(
GlazedLists.threadSafeList(new SortedList(new BasicEventList<PropertyEntry>(), comp)),
GlazedLists.beanConnector(PropertyEntry.class));
for (String s : d.getExtraProperties().keySet()) {
PropertyEntry e = new PropertyEntry(s, d.getExtraProperties().get(s));
d.addPropertyChangeListener(e);
extraList.add(e);