Refine search
if (!isVetoable()) return; vetoableChangeSupport.fireVetoableChange("selectedIndex", oldSelectionIndex, newSelectionIndex); if (vetoableChangeSupport == null) return false; return vetoableChangeSupport.hasListeners(null); vetoableChangeSupport = new VetoableChangeSupport(this); vetoableChangeSupport.addVetoableChangeListener(l); if (vetoableChangeSupport == null) return; vetoableChangeSupport.removeVetoableChangeListener(l);
/** * Returns an array of all the listeners which have been associated with the named property. * @param propertyName The name of the property being listened to. * @return All the <code>VetoableChangeListeners</code> associated with the named property; if no such listeners have been added, or if * <code>propertyName</code> is <code>null</code>, an empty array is returned. */ public VetoableChangeListener[] getVetoableChangeListeners(final String propertyName) { return vetoableChangeSupport != null ? vetoableChangeSupport.getVetoableChangeListeners(propertyName) : NO_VETOABLE_CHANGE_LISTENERS; //if we have vetoable change support, delegate to that, else return an empty list }
/** Add a <code>VetoableListener</code> to the listener list. * @param l the listener to add */ public synchronized void addVetoableChangeListener(VetoableChangeListener l) { if (vetoableSupport == null) { vetoableSupport = new VetoableChangeSupport(this); } vetoableSupport.addVetoableChangeListener(l); }
/** Setter for property applicationAck. * @param applicationAck New value of property applicationAck. * * @throws PropertyVetoException */ public void setApplicationAck(String applicationAck) throws java.beans.PropertyVetoException { String oldApplicationAck = this.applicationAck; vetoableChangeSupport.fireVetoableChange("applicationAck", oldApplicationAck, applicationAck); this.applicationAck = applicationAck; propertyChangeSupport.firePropertyChange("applicationAck", oldApplicationAck, applicationAck); }
/** Creates a new instance of AbstractBean */ protected AbstractBean() { pcs = new PropertyChangeSupport(this); vcs = new VetoableChangeSupport(this); }
/** Remove a <code>VetoableChangeListener</code> from the listener list. * @param l the listener to remove */ public synchronized void removeVetoableChangeListener(VetoableChangeListener l) { if (vetoableSupport != null) { vetoableSupport.removeVetoableChangeListener(l); } }
/** * Adds a vetoable property change listener to the series. * * @param listener the listener. * * @since 1.0.14 */ public void addVetoableChangeListener(VetoableChangeListener listener) { this.vetoableChangeSupport.addVetoableChangeListener(listener); }
/** * 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); }
/** * Lazy initialization of the VetoableChangeSupport. */ private synchronized VetoableChangeSupport getSupport() { if (support == null) { support = new VetoableChangeSupport(this); } return support; }
/** Setter for property orgName. * @param orgName New value of property orgName. * * @throws PropertyVetoException */ public void setOrgName(String orgName) throws java.beans.PropertyVetoException { String oldOrgName = this.orgName; vetoableChangeSupport.fireVetoableChange("orgName", oldOrgName, orgName); this.orgName = orgName; propertyChangeSupport.firePropertyChange("orgName", oldOrgName, orgName); }
/** Creates a new instance of AbstractBean */ protected AbstractBean() { pcs = new PropertyChangeSupport(this); vcs = new VetoableChangeSupport(this); }
/** Add a vetoable change listener. * @param l the listener to add */ public synchronized void addVetoableChangeListener (VetoableChangeListener l) { if (_vetoableSupport == null) _vetoableSupport = new VetoableChangeSupport(_element); _vetoableSupport.addVetoableChangeListener(l); }
/** * Removes a vetoable property change listener from the series. * * @param listener the listener. * * @since 1.0.14 */ public void removeVetoableChangeListener(VetoableChangeListener listener) { this.vetoableChangeSupport.removeVetoableChangeListener(listener); }
/** Adds a VetoableChangeListener to the listener list. * @param l The listener to add. */ public void addVetoableChangeListener(java.beans.VetoableChangeListener l) { vetoableChangeSupport.addVetoableChangeListener(l); }
/** * 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); }
/** * Initialize {@link #preReadListeners} at first use or after deserialisation. * * @param create indicates if the VetoableChangeSupport can be created if it does not exist * @return readVetoables */ protected VetoableChangeSupport getPreReadListeners(boolean create) { if (preReadListeners == null && create) { preReadListeners = new VetoableChangeSupport(this); } return preReadListeners; }
/** Setter for property eventFlow. * @param eventFlow New value of property eventFlow. * * @throws PropertyVetoException */ public void setEventFlow(EventFlow eventFlow) throws java.beans.PropertyVetoException { EventFlow oldEventFlow = this.eventFlow; vetoableChangeSupport.fireVetoableChange("eventFlow", oldEventFlow, eventFlow); this.eventFlow = eventFlow; propertyChangeSupport.firePropertyChange("eventFlow", oldEventFlow, eventFlow); }
/** Creates a new instance of AbstractBean */ protected AbstractBean() { pcs = new PropertyChangeSupport(this); vcs = new VetoableChangeSupport(this); }
/** * Adds a VetoableChangeListener to the listener list. * * @param l The listener to add. * @deprecated Not required. */ public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener l) { if (null == vetoableChangeSupport) vetoableChangeSupport = new VetoableChangeSupport(this); vetoableChangeSupport.addVetoableChangeListener(l); }
/** Removes a VetoableChangeListener from the listener list. * @param l The listener to remove. */ public void removeVetoableChangeListener(java.beans.VetoableChangeListener l) { vetoableChangeSupport.removeVetoableChangeListener(l); }