Class MappedDocumentListener

  extended bycom.sun.xml.registry.client.browser.swing.RegistryDocumentListener
      extended bycom.sun.xml.registry.client.browser.swing.MappedDocumentListener
All Implemented Interfaces:
javax.swing.event.DocumentListener, java.util.EventListener

public abstract class MappedDocumentListener
extends RegistryDocumentListener

Implements a document listener for a MappedPanel. The removeUpdate method only invokes update if the mapping is not currently changing. Otherwise, the update might erase the text field, trigger a new DocumentEvent and create an infinite loop.

Fabian Ritzmann

Field Summary
Fields inherited from class com.sun.xml.registry.client.browser.swing.RegistryDocumentListener
errorMessage, panel
Constructor Summary
MappedDocumentListener(RegistryMappedPanel p, java.lang.String error)
          Initializes the object.
Method Summary
 void removeUpdate(javax.swing.event.DocumentEvent e)
          Only invokes update if the current mapping is not changing.
Methods inherited from class com.sun.xml.registry.client.browser.swing.RegistryDocumentListener
changedUpdate, insertUpdate, setText, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MappedDocumentListener(RegistryMappedPanel p,
                              java.lang.String error)
Initializes the object.

p - The panel on which the listener operates.
error - A text that is prepended to the exception that may be thrown by the setText method.
Method Detail


public void removeUpdate(javax.swing.event.DocumentEvent e)
Only invokes update if the current mapping is not changing.

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
removeUpdate in class RegistryDocumentListener
See Also:

Copyright © 2001-2004 OASIS. All Rights Reserved.