// 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:   PropertyKeyer.java

package lt.ktu.gmj.propertySheet;


// Referenced classes of package lt.ktu.gmj.propertySheet:
//			SimplePropertyProvider, KeyedPropertyReader, InvalidPropertyException, KeyedPropertyWriter, 
//			PropertyNotifier, KeyedPropertyProvider

public class PropertyKeyer extends SimplePropertyProvider
{

	private KeyedPropertyProvider keyedProvider;
	private Object key;

	public Object get()
	{
		return keyedProvider.get(key);
	}

	public void set(Object obj)
		throws InvalidPropertyException
	{
		keyedProvider.set(key, obj);
	}

	public PropertyKeyer(KeyedPropertyProvider keyedpropertyprovider, Object obj)
	{
		key = obj;
		keyedProvider = keyedpropertyprovider;
		keyedProvider.addObserver(this);
	}
}
