1 19 20 package org.netbeans.modules.xml.schema.ui.basic.editors; 21 22 import java.awt.event.ActionListener ; 23 import java.beans.PropertyChangeEvent ; 24 import java.beans.PropertyChangeListener ; 25 import org.openide.DialogDescriptor; 26 27 28 public class SchemaComponentSelDialogDesc extends DialogDescriptor 29 implements PropertyChangeListener { 30 public SchemaComponentSelDialogDesc(SchemaComponentSelectionPanel panel, 31 String title, boolean isModal, ActionListener bl) { 32 super(panel,title,isModal,bl); 33 panel.addPropertyChangeListener(this); 34 } 35 36 public void propertyChange(PropertyChangeEvent event) { 37 if (event.getPropertyName().equals( 38 SchemaComponentSelectionPanel.PROPERTY_SELECTION)) { 39 setValid(event.getNewValue()==null?false:true); 40 } 41 } 42 } | Popular Tags |