Examples of propertyChange()


Examples of java.beans.PropertyChangeListener.propertyChange()

                PropertyChangeListener target = (PropertyChangeListener) listener;

                if (!this.listeners.contains(target))
                    continue;
               
                target.propertyChange(evt);
                fired = true;
            }
        }

        if (children != null && propertyName != null) {
View Full Code Here

Examples of java.beans.PropertyChangeListener.propertyChange()

        boolean fired = false;
        if (listeners != null) {
            Object[] listeners = this.listeners.toArray();
            for (Object listener : listeners) {
                PropertyChangeListener target = (PropertyChangeListener) listener;
                target.propertyChange(evt);
                fired = true;
            }
        }

        if (children != null && propertyName != null) {
View Full Code Here

Examples of java.beans.PropertyChangeListener.propertyChange()

            Object l = Kit.getListener(listeners, i);
            if (l == null)
                break;
            if (l instanceof PropertyChangeListener) {
                PropertyChangeListener pcl = (PropertyChangeListener)l;
                pcl.propertyChange(new PropertyChangeEvent(
                    this, property, oldValue, newValue));
            }
        }
    }
View Full Code Here

Examples of java.beans.PropertyChangeListener.propertyChange()

                                         Object newValue) {
    Iterator it = new ArrayList(listeners).iterator();
    PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue);
    while(it.hasNext()) {
      final PropertyChangeListener pcl = (PropertyChangeListener) it.next();
      pcl.propertyChange(evt);
    }
  }
}
View Full Code Here

Examples of java.beans.PropertyChangeListener.propertyChange()

      if(propertyChangeListeners==null)
        propertyChangeListeners = new ArrayList();       

      for(Iterator iter = propertyChangeListeners.iterator(); iter.hasNext();){
        PropertyChangeListener pcl = (PropertyChangeListener)iter.next();       
        pcl.propertyChange(pce);       
      }
    }

  boolean isDynamicChangeAllowed = true;
    public boolean isDynamicChangeAllowed() {
View Full Code Here

Examples of java.beans.PropertyChangeListenerProxy.propertyChange()

     */
    public void testPropertyChange_PropertyChangeEvent() {
        PropertyChangeListenerProxy proxy = new PropertyChangeListenerProxy(
                "harmony", null);
        try {
            proxy.propertyChange(null);
            fail("NullPointerException expected");
        } catch (NullPointerException e) {
        }
    }

View Full Code Here

Examples of javax.media.jai.RenderedOp.propertyChange()

  RenderingChangeEvent rcEvent =
      new RenderingChangeEvent((RenderedOp)op.getSource(srcIndex),
             oldSrcRendering,
             newSrcRendering,
             invalidRegion);
  op.propertyChange(rcEvent);

  return id;
    }

    /**
 
View Full Code Here

Examples of javax.swing.JSpinner.DefaultEditor.propertyChange()

        modelController.reset();
        defaultEditor.getTextField().removePropertyChangeListener(defaultEditor);
        defaultEditor.getTextField().setText("18");
        defaultEditor.commitEdit();
        defaultEditor.getTextField().addPropertyChangeListener(defaultEditor);
        defaultEditor.propertyChange(new PropertyChangeEvent(defaultEditor.getTextField(),
                "value", defaultEditor.getTextField().getValue(), new Integer(10)));
        assertTrue(modelController.isChanged());
        modelController.reset();
        defaultEditor.getTextField().removePropertyChangeListener(defaultEditor);
        defaultEditor.getTextField().setText("58");
View Full Code Here

Examples of jsky.util.ReplaceablePropertyChangeListener.propertyChange()

            if (trace) {
                writeDebug("    calling",
                        getObjectIdString(target) + ".propertyChange");
            }
            try {
                target.propertyChange(evt);
            } catch (ReplaceablePropertyVetoException ex) {
                PropertyChangeEvent reverseEvent = new PropertyChangeEvent(eSource,
                        propertyName, newValue, oldValue);
                for (int i2 = i - 1; i2 >= 0; i2--) {
                    ReplaceablePropertyChangeListener reverseTarget = localListeners[i2];
View Full Code Here

Examples of org.apache.oodt.commons.io.LogListener.propertyChange()

  }

  public void propertyChange(PropertyChangeEvent event) {
    for (Iterator i = listeners.iterator(); i.hasNext();) {
      LogListener listener = (LogListener) i.next();
      listener.propertyChange(event);
    }
  }

  /** List of listeners to which I multiplex events. */
  private List listeners = new ArrayList();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.