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

package lt.ktu.gmj.propertySheet;

import java.awt.Container;
import java.awt.GridLayout;
import javax.swing.JComponent;
import javax.swing.JPanel;

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

public class RangeEditor
    implements PropertyEditor
{

    public void refreshed()
    {
    }

    public JComponent component()
    {
        return (JComponent)panel;
    }

    public RangeEditor(PropertyEditor propertyeditor, PropertyEditor propertyeditor1, PropertyEditor propertyeditor2)
    {
        min = propertyeditor;
        x = propertyeditor1;
        max = propertyeditor2;
        panel = new JPanel();
        panel.setLayout(new GridLayout(1, 3));
        panel.add(min.component());
        panel.add(x.component());
        panel.add(max.component());
    }

    public RangeEditor(PropertyEditor propertyeditor, PropertyEditor propertyeditor1)
    {
        min = propertyeditor;
        x = null;
        max = propertyeditor1;
        panel = new JPanel();
        panel.setLayout(new GridLayout(1, 2));
        panel.add(min.component());
        panel.add(max.component());
    }

    private PropertyEditor min;
    private PropertyEditor x;
    private PropertyEditor max;
    private JPanel panel;
}
