// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// 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
{

    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;
    }

    private PropertyObserver observer;
}
