As the
IlvMapLayerTreeProperty is also a named property of the manager, you can
add a listener that is called whenever the entire tree structure is
changed, for example:
manager.addNamedPropertyListener(new NamedPropertyListener() {
public void propertyChanged(NamedPropertyEvent event) {
if (event.getPropertyName().equals(IlvMapLayerTreeProperty.NAME)) {
IlvMapLayerTreeProperty p = (IlvMapLayerTreeProperty)
event.getNewValue();
if (event.getType() == NamedPropertyEvent.PROPERTY_SET) {
...do something
}
}
}
});