The following example adds an observer/listener that is notified of style change events that occur in the layers contained by the ContextModel.
Note: getDeepAdapters() adds the listener/adapter/observer to the context model and all of the children. Children that are later added or removed automatically have the deep adapter added or removed.
Example Use:
contextModel.getDeepAdapters().add(new ContextModelListenerAdapter(){ protected void styleChanged( Notification msg ) { //Enter behaviour } });
@author jeichar
@since 0.3
|
|
|
|
|
|