*/
public void addDocumentUpdateHandler(PropertyChangeListener evt) {
if (handlers.containsKey(Events.DOCUMENT_UPDATE)) {
- Object handler, listener;
+ Object handler;
((PropertyChangeSupport) (handler
= handlers.get(Events.DOCUMENT_UPDATE))).addPropertyChangeListener(evt);
listeners.add(handler);
* java.beans.PropertyChangeListener)
*/
public void addVorbaEventHandler(String EventChain, PropertyChangeListener evt) {
- // TODO Auto-generated method stub
-
+ if (handlers.containsKey(EventChain)) {
+ Object handler;
+ ((PropertyChangeSupport) (handler
+ = handlers.get(EventChain))).addPropertyChangeListener(evt);
+ listeners.add(handler);
+ listeners.add((Object) evt);
+ }
}
public static void main(String[] args) {