blob: 257218c0b9856f27a7392406948f44ac4d1df79c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Matthew Hall and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Matthew Hall - initial API and implementation (bug 246103)
******************************************************************************/
package org.eclipse.core.tests.internal.databinding.beans;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* A bean in which all property change events are fired according to an annoying
* provision in the bean spec, where <code>(oldValue == null && newValue ==
* null)</code> indicates that an unknown change occured.
*
* @since 3.2
*/
public class AnnoyingBean extends Bean {
public void setValue(String value) {
this.value = value;
changeSupport.firePropertyChange("value", null, null);
}
public void setArray(Object[] array) {
this.array = array;
changeSupport.firePropertyChange("array", null, null);
}
public void setList(List list) {
this.list = list;
changeSupport.firePropertyChange("list", null, null);
}
public void setSet(Set set) {
this.set = set;
changeSupport.firePropertyChange("set", null, null);
}
public void setMap(Map map) {
this.map = map;
changeSupport.firePropertyChange("map", null, null);
}
}