/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
if (vetoableChangeSupport == null) return false; return vetoableChangeSupport.hasListeners(null);
/** * Checks if there are any vetoable change listeners for a specific property, including those registered on all properties. If <code>propertyName</code> is * <code>null</code>, this method only checks for listeners registered on all properties. * @param propertyName The property name. * @return <code>true</code> if there are one or more listeners for the given property. */ public boolean hasVetoableChangeListeners(final String propertyName) { return vetoableChangeSupport != null ? vetoableChangeSupport.hasListeners(propertyName) : false; //if we have vetoable change support, ask it about listeners; if there is no support, there can be no listeners }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners (final String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs.hasListeners(propertyName); }
public boolean hasListeners(String propertyName) { return support.hasListeners(propertyName); }
/** * Check if there are any listeners for a specific property, including * those registered on all properties. If <code>propertyName</code> * is null, only check for listeners registered on all properties. * * @param propertyName the property name. * @return true if there are one or more listeners for the given property */ protected final boolean hasVetoableChangeListeners(String propertyName) { return vcs().hasListeners(propertyName); }
protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException { boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property); boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property); Object oldVal = null; Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value; if (pc || vc) { oldVal = getProperty(property, clazz); } if (vc) { fireVetoableChange(property, oldVal, value); } setPropertySpi(property, newVal, clazz); if (pc) { firePropertyChange(property, oldVal, value); } }
protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException { boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property); boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property); Object oldVal = null; Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value; if (pc || vc) { oldVal = getProperty(property, clazz); } if (vc) { fireVetoableChange(property, oldVal, value); } setPropertySpi(property, newVal, clazz); if (pc) { firePropertyChange(property, oldVal, value); } }
protected synchronized void setProperty(String property, Object value, Class<?> clazz) throws PropertyVetoException { boolean pc = (_pcSupport != null) && _pcSupport.hasListeners(property); boolean vc = (_vcSupport != null) && _vcSupport.hasListeners(property); Object oldVal = null; Object newVal = ((value != null) && clazz.equals(String.class) && !(value instanceof String)) ? value.toString() : value; if (pc || vc) { oldVal = getProperty(property, clazz); } if (vc) { fireVetoableChange(property, oldVal, value); } setPropertySpi(property, newVal, clazz); if (pc) { firePropertyChange(property, oldVal, value); } }
" in " + this.beanName + " - " + (this.vetoableListeners==null?"null listener": (this.vetoableListeners.hasListeners(null)? "has listeners":"no listener")) );