Code example for PropertyChangeSupport

Methods: addPropertyChangeListener

0
	private TimePickerDialog td;
	private DatePickerDialog dd;
//	private AlertDialog.Builder correctbox; 
 
	public DateChooser(Activity act,PropertyChangeListener e){
		l = new PropertyChangeSupport(this);
		l.addPropertyChangeListener(e);
		this.act = act;
		dateAndTime = Calendar.getInstance();
		start = Calendar.getInstance();
		d = new DateListener();
		initDialogs(); 
	} 
	private void initDialogs(){ 
		dd = new DatePickerDialog(act, d, dateAndTime.get(Calendar.YEAR), 
				dateAndTime.get(Calendar.MONTH), dateAndTime.get(Calendar.DAY_OF_MONTH));	
		dd.setButton(DatePickerDialog.BUTTON_POSITIVE, "Set", dd);
		dd.setButton(DatePickerDialog.BUTTON_NEGATIVE,"Cancel",new DialogInterface.OnClickListener() {
 
			@Override 
			public void onClick(DialogInterface dialog, int which) {