/** 
 * Bean1.java
 *
 * Description:     <describe the Bean1 class here>
 * @author          
 * @version         
 */

package bean;
import java.beans.*;


public class Bean1 {

    private String title = "Bean1";
    
    private String customers[] ={"tom","dick","harry"};
    
    private String getCustomer(int i) {
        if (i < 0) return null;
        if (i >= customers.length) return null;
        return customers[i];
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String _title) {
        title = _title;
        pcs.firePropertyChange("Title",_title,title);
        // arguments are property name, oldValue, NewValue.
    }
    PropertyChangeSupport pcs 
        = new PropertyChangeSupport(this);
    // The listener list wrapper methods
    public synchronized void addPropertyChangeListener(
        PropertyChangeListener pcl){
            pcs.addPropertyChangeListener(pcl);
    }


}


/* @(#)Bean1.java */