// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   SimplePropertyNotifier.java

package lt.ktu.gmj.propertySheet;


// Referenced classes of package lt.ktu.gmj.propertySheet:
//			PropertyNotifier, PropertyObserver

public abstract class SimplePropertyNotifier
	implements PropertyNotifier
{

	private PropertyObserver observer;

	public void addObserver(PropertyObserver propertyobserver)
	{
		if(observer != null)
		{
			throw new Error("SimplePropertyNotifier doesn't support multiple observers");
		} else
		{
			observer = propertyobserver;
			return;
		}
	}

	public void refresh()
	{
		observer.refreshed();
	}

	public SimplePropertyNotifier()
	{
		observer = null;
	}
}
