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

package lt.ktu.gmj.propertySheet;

import javax.swing.JComponent;
import javax.swing.JLabel;

// Referenced classes of package lt.ktu.gmj.propertySheet:
//            Property, PropertyEditor

public class SimpleProperty
    implements Property
{

    protected void setEditor(PropertyEditor propertyeditor)
    {
        editor = propertyeditor;
    }

    public JComponent label()
    {
        JLabel jlabel = new JLabel(label, 2);
        return (JComponent)jlabel;
    }

    public PropertyEditor editor()
    {
        return editor;
    }

    public SimpleProperty(String s, PropertyEditor propertyeditor)
    {
        label = s;
        editor = propertyeditor;
    }

    protected SimpleProperty(String s)
    {
        label = s;
        editor = null;
    }

    protected String label;
    protected PropertyEditor editor;
}
