/** * Delegates to {@link VetoableChangeSupport#fireVetoableChange(String, boolean, boolean)}. * * @see <a href="https://docs.oracle.com/javase/7/docs/api/java/beans/VetoableChangeSupport.html">VetoableChangeSupport</a> */ protected SerializableBean<T> fireVetoableChange (String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException { vetoableChangeSupport.fireVetoableChange(propertyName, oldValue, newValue); return this; }
if (!isVetoable()) return; vetoableChangeSupport.fireVetoableChange("selectedIndex", oldSelectionIndex, newSelectionIndex);
protected synchronized void fireVetoableChange(String property, Object oldValue, Object newValue) throws PropertyVetoException { if (_vcSupport != null) { _vcSupport.fireVetoableChange(property, oldValue, newValue); } }
/** * Fires a vetoable property update to any registered listeners. If any veotable change listeners vetos the change, then a new event will be fired reverting * all the listeners to the old value, after which the {@link PropertyVetoException} will be rethrown. No event is fired if old and new are equal and non- * <code>null</code>. This method does the actual delegation to the vetoable change support. * @param propertyChangeEvent The event to fire. * @throws PropertyVetoException if the recipient wishes the property change to be rolled back. */ public void fireVetoableChange(final PropertyChangeEvent propertyChangeEvent) throws PropertyVetoException { if(vetoableChangeSupport != null) { //if we have vetoable change support (otherwise, no listeners would be listening) vetoableChangeSupport.fireVetoableChange(propertyChangeEvent); //delegate to the vetoable change support } }
/** 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); }
/** 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); }
@Override public void fireVetoableChange(PropertyChangeEvent evt) throws PropertyVetoException { try { super.fireVetoableChange(evt); } catch (RuntimeException re) { throw (PropertyVetoException) re.getCause(); } }
/** 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); }
/** Setter for property derivativeEvent. * @param derivativeEvent New value of property derivativeEvent. * * @throws PropertyVetoException */ public void setDerivativeEvent(DerivativeEvent derivativeEvent) throws java.beans.PropertyVetoException { DerivativeEvent oldDerivativeEvent = this.derivativeEvent; vetoableChangeSupport.fireVetoableChange("derivativeEvent", oldDerivativeEvent, derivativeEvent); this.derivativeEvent = derivativeEvent; propertyChangeSupport.firePropertyChange("derivativeEvent", oldDerivativeEvent, derivativeEvent); }
/** Setter for property acceptAck. * @param acceptAck New value of property acceptAck. * * @throws PropertyVetoException */ public void setAcceptAck(String acceptAck) throws java.beans.PropertyVetoException { String oldAcceptAck = this.acceptAck; vetoableChangeSupport.fireVetoableChange("acceptAck", oldAcceptAck, acceptAck); this.acceptAck = acceptAck; propertyChangeSupport.firePropertyChange("acceptAck", oldAcceptAck, acceptAck); }
/** Setter for property conformance. * @param conformance New value of property conformance. * * @throws PropertyVetoException */ public void setConformance(Conformance conformance) throws java.beans.PropertyVetoException { Conformance oldConformance = this.conformance; vetoableChangeSupport.fireVetoableChange("conformance", oldConformance, conformance); this.conformance = conformance; propertyChangeSupport.firePropertyChange("conformance", oldConformance, conformance); }
/** Setter for property HL7Version. * @param HL7Version New value of property HL7Version. * * @throws PropertyVetoException */ public void setHL7Version(String HL7Version) throws java.beans.PropertyVetoException { String oldHL7Version = this.HL7Version; vetoableChangeSupport.fireVetoableChange("HL7Version", oldHL7Version, HL7Version); this.HL7Version = HL7Version; propertyChangeSupport.firePropertyChange("HL7Version", oldHL7Version, HL7Version); }
/** Setter for property text. * @param text New value of property text. * * @throws PropertyVetoException */ public void setText(String text) throws java.beans.PropertyVetoException { String oldText = this.text; vetoableChangeSupport.fireVetoableChange("text", oldText, text); this.text = text; propertyChangeSupport.firePropertyChange("text", oldText, text); }
/** Setter for property staticID. * @param staticID New value of property staticID. * * @throws PropertyVetoException */ public void setStaticID(String staticID) throws java.beans.PropertyVetoException { String oldStaticID = this.staticID; vetoableChangeSupport.fireVetoableChange("staticID", oldStaticID, staticID); this.staticID = staticID; propertyChangeSupport.firePropertyChange("staticID", oldStaticID, staticID); }
/** Setter for property impNote. * @param impNote New value of property impNote. * * @throws PropertyVetoException */ public void setImpNote(ImpNote impNote) throws java.beans.PropertyVetoException { ImpNote oldImpNote = this.impNote; vetoableChangeSupport.fireVetoableChange("impNote", oldImpNote, impNote); this.impNote = impNote; propertyChangeSupport.firePropertyChange("impNote", oldImpNote, impNote); }
/** Setter for property specVersion. * @param specVersion New value of property specVersion. * * @throws PropertyVetoException */ public void setSpecVersion(String specVersion) throws java.beans.PropertyVetoException { String oldSpecVersion = this.specVersion; vetoableChangeSupport.fireVetoableChange("specVersion", oldSpecVersion, specVersion); this.specVersion = specVersion; propertyChangeSupport.firePropertyChange("specVersion", oldSpecVersion, specVersion); }
/** Setter for property status. * @param status New value of property status. * * @throws PropertyVetoException */ public void setStatus(String status) throws java.beans.PropertyVetoException { String oldStatus = this.status; vetoableChangeSupport.fireVetoableChange("status", oldStatus, status); this.status = status; propertyChangeSupport.firePropertyChange("status", oldStatus, status); }
public void setName(String theName) throws ProfileException { String oldOrgName = this.name; try { vetoableChangeSupport.fireVetoableChange("name", oldOrgName, theName); } catch (Exception e) { throw new ProfileException(null, e); } this.name = theName; propertyChangeSupport.firePropertyChange("name", oldOrgName, theName); }
public synchronized void setUserOverridesAsString( String userOverridesAsString ) throws PropertyVetoException { String oldVal = this.userOverridesAsString; if ( ! eqOrBothNull( oldVal, userOverridesAsString ) ) vcs.fireVetoableChange( "userOverridesAsString", oldVal, userOverridesAsString ); this.userOverridesAsString = userOverridesAsString; }
@Override public void setFile(File file) throws PropertyVetoException { File oldValue = this.file; this.file = attachFileExtension(file); updateSelectedFile(file); vetoableChange.fireVetoableChange(FILE_PROPERTY, oldValue, file); }