// set the initial list contents from the data model
if (node != null && node instanceof Element)
setData((Element)node);
// add a listener to be informed of any data updates
model.addDataChangeListener(new DataChangeListener() {
public void dataChanged(DataModel model, String path) {
// check that we are interested in this data
if (path == null || !modelPath.equals(path))
return;