1 19 20 package org.netbeans.modules.xml.schema.ui.nodes.categorized; 21 22 import java.beans.PropertyChangeEvent ; 23 import org.netbeans.modules.xml.schema.model.AttributeReference; 24 import org.netbeans.modules.xml.schema.model.SchemaComponentReference; 25 import org.netbeans.modules.xml.schema.ui.nodes.RefreshableChildren; 26 import org.netbeans.modules.xml.schema.ui.nodes.SchemaUIContext; 27 import org.netbeans.modules.xml.schema.ui.nodes.schema.AttributeReferenceNode; 28 import org.openide.nodes.Children; 29 30 34 public class AdvancedAttributeReferenceNode extends AttributeReferenceNode { 35 39 public AdvancedAttributeReferenceNode(SchemaUIContext context, 40 SchemaComponentReference<AttributeReference> reference, 41 Children children) { 42 super(context,reference,children); 43 } 44 45 public void propertyChange(PropertyChangeEvent event) { 46 if(!isValid()) return; 47 super.propertyChange(event); 48 if(event.getSource() == getReference().get() && 49 AttributeReference.REF_PROPERTY.equals(event.getPropertyName())) { 50 ((RefreshableChildren)getChildren()).refreshChildren(); 51 } 52 } 53 54 } 55 | Popular Tags |