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 PropertyEvent 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 = 4;
 
        protected static final Object OLDVALUE = new Object();
        protected static final Object NEWVALUE = new Object();
 
        private int type;
 
        public PropertyEvent( Object source, String propertyName, Object oldValue, Object newValue, int type ) {