Code example for PropertyChangeSupport

Methods: hasListeners

0
   public void removePropertyChangeListener( String propertyName, PropertyChangeListener listener ) {
      pcs.removePropertyChangeListener( propertyName, listener );
   } 
 
   public boolean hasListeners( String propertyName ) {
      return pcs.hasListeners( propertyName );
   } 
 
   public abstract static class ElementEvent extends PropertyChangeEvent {
      public static final int ADDED = 0;
      public static final int UPDATED = 1;
      public static final int REMOVED = 2;
      public static final int CLEARED = 3;
      public static final int MULTI_ADD = 4;
      public static final int MULTI_REMOVE = 5;
 
      private static final String PROPERTY_NAME = "groovy_util_ObservableList__element";
      protected static final Object OLDVALUE = new Object();
      protected static final Object NEWVALUE = new Object();
 
      private int type;