jaxe
Class AttributePanel.FieldListener

java.lang.Object
  extended by jaxe.AttributePanel.FieldListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener
Enclosing class:
AttributePanel

 class AttributePanel.FieldListener
extends java.lang.Object
implements javax.swing.event.DocumentListener

A Listener that changes the Attribute of an Element, if the Text is changed

Author:
tasche

Field Summary
private  java.lang.String _attr
           
private  org.w3c.dom.Element _el
           
private  java.lang.String _ns
           
 
Constructor Summary
AttributePanel.FieldListener(org.w3c.dom.Element el, java.lang.String attr, java.lang.String ns)
          Creates a Listener for a Document
 
Method Summary
 void changed(javax.swing.event.DocumentEvent e)
          Changes the Attribute if the Document was changed
 void changedUpdate(javax.swing.event.DocumentEvent e)
          Changes the Attribute if the Document was changed
 void insertUpdate(javax.swing.event.DocumentEvent e)
          Changes the Attribute if the Document was changed
 void removeUpdate(javax.swing.event.DocumentEvent e)
          Changes the Attribute if the Document was changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_el

private final org.w3c.dom.Element _el

_attr

private final java.lang.String _attr

_ns

private final java.lang.String _ns
Constructor Detail

AttributePanel.FieldListener

public AttributePanel.FieldListener(org.w3c.dom.Element el,
                                    java.lang.String attr,
                                    java.lang.String ns)
Creates a Listener for a Document

Parameters:
el - the shown Element
attr - the shown Attribute
Method Detail

changed

public void changed(javax.swing.event.DocumentEvent e)
Changes the Attribute if the Document was changed

Parameters:
e - the DocumentEvent

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Changes the Attribute if the Document was changed

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
Parameters:
e - the DocumentEvent

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Changes the Attribute if the Document was changed

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
Parameters:
e - the DocumentEvent

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Changes the Attribute if the Document was changed

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
Parameters:
e - the DocumentEvent