Package java.beans

Examples of java.beans.PropertyChangeSupport.firePropertyChange()


                                        boolean newValue) {
        PropertyChangeSupport aChangeSupport = this.changeSupport;
        if (aChangeSupport == null) {
            return;
        }
        aChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
    }


    /**
     * Support for reporting bound property changes for integer properties.
View Full Code Here


                                        int newValue) {
        PropertyChangeSupport aChangeSupport = this.changeSupport;
        if (aChangeSupport == null) {
            return;
        }
        aChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
    }


    /**
     * Support for reporting bound property changes for integer properties.
View Full Code Here

            try {
          Field listenerField = obj.getClass().getField("qq_Listeners");
          PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport)listenerField.get(obj);
          String propertyName = FrameworkUtils.getPropertyName(field.getName());
          if (propertyChangeSupport != null && propertyChangeSupport.hasListeners(propertyName)) {
            propertyChangeSupport.firePropertyChange(propertyName, null, value);
          }
        } catch (Exception e) {
          // Ignore the exception if the qq_Listeners is not found
        }
        }
View Full Code Here

            field.setAccessible(true);
            PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport)field.get(propertyChangeHolder);
            if (propertyChangeSupport != null) {

              // if there is data then fire a Property Change to force a re-binding
              propertyChangeSupport.firePropertyChange(getPropertyNameForComponent(jComponent), null, data);
            }
          } catch (Exception e) {
            // ignore the error, no listener
          }
        } else {
View Full Code Here

            try {
          Field listenerField = obj.getClass().getField("qq_Listeners");
          PropertyChangeSupport propertyChangeSupport = (PropertyChangeSupport)listenerField.get(obj);
          String propertyName = FrameworkUtils.getPropertyName(field.getName());
          if (propertyChangeSupport != null && propertyChangeSupport.hasListeners(propertyName)) {
            propertyChangeSupport.firePropertyChange(propertyName, null, value);
          }
        } catch (Exception e) {
          // Ignore the exception if the qq_Listeners is not found
        }
        }
View Full Code Here

  protected final void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
    PropertyChangeSupport aChangeSupport = this.changeSupport;
    if (aChangeSupport == null) {
      return;
    }
    aChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
  }

  protected final void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    PropertyChangeSupport aChangeSupport = this.changeSupport;
    if (aChangeSupport == null) {
View Full Code Here

  protected final void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
    PropertyChangeSupport aChangeSupport = this.changeSupport;
    if (aChangeSupport == null) {
      return;
    }
    aChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
  }

  protected final void firePropertyChange(String propertyName, double oldValue, double newValue) {
    firePropertyChange(propertyName, new Double(oldValue), new Double(newValue));
  }
View Full Code Here

  protected final void firePropertyChange(String propertyName, int oldValue, int newValue) {
    PropertyChangeSupport aChangeSupport = this.changeSupport;
    if (aChangeSupport == null) {
      return;
    }
    aChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
  }

  protected final void firePropertyChange(String propertyName, long oldValue, long newValue) {
    firePropertyChange(propertyName, new Long(oldValue), new Long(newValue));
  }
View Full Code Here

        if (oldValue == newValue) {
            return;
        }
        PropertyChangeSupport changeSupport = this.changeSupport;
        if (changeSupport != null) {
            changeSupport.firePropertyChange(propertyName, oldValue, newValue);
        }
    }

    /**
     * Adds a VetoableChangeListener to the listener list. The listener is
View Full Code Here

        }
        if (changeSupport == null ||
            (oldValue != null && newValue != null && oldValue.equals(newValue))) {
            return;
        }
        changeSupport.firePropertyChange(propertyName, oldValue, newValue);
    }

    /**
     * Support for reporting bound property changes for boolean properties.
     * This method can be called when a bound property has changed and it will
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.