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

package lt.ktu.gmj.propertySheet;

import java.awt.Component;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.JTextField;
import javax.swing.text.JTextComponent;

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

class NotifierTextField extends JTextField
    implements FocusListener
{

    public void focusGained(FocusEvent focusevent)
    {
        owner.fieldChanged();
    }

    public void focusLost(FocusEvent focusevent)
    {
        owner.fieldChanged();
    }

    public NotifierTextField(StringablePropertyEditor stringablepropertyeditor)
    {
        owner = stringablepropertyeditor;
        setEditable(true);
        setOpaque(true);
        addFocusListener(this);
    }

    private StringablePropertyEditor owner;
}
