@ Override public void onAttributeChangeEvent ( AttributeChangeEvent event ) { super . onAttributeChangeEvent ( event ) ; fireLayerAttributeChangedEvent ( new MapLayerAttributeChangeEvent ( this , event ) ) ; fireElementChanged ( ) ; if ( ATTR_VISIBLE . equals ( event . getName ( ) ) ) { final AttributeValue nValue = event . getValue ( ) ; boolean cvalue ; try { cvalue = nValue . getBoolean ( ) ; } catch ( Exception exception ) { cvalue = isVisible ( ) ; } if ( cvalue ) { final GISLayerContainer < ? > container = getContainer ( ) ; if ( container instanceof GISBrowsable ) { ( ( GISBrowsable ) container ) . setVisible ( cvalue , false ) ; } } } }
Invoked when the attribute s value changed .