Beispiel #1
0
 /**
  * Sets the value of the ejbLink property.
  *
  * @param value allowed object is {@link EjbLink }
  */
 public void setEjbLink(EjbLink value) {
   try {
     support.fireVetoableChange("EjbLink", ejbLink, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.ejbLink = value;
 }
Beispiel #2
0
 /**
  * Sets the value of the value property.
  *
  * @param value allowed object is {@link String }
  */
 public void setvalue(String value) {
   try {
     support.fireVetoableChange("value", value, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.value = value;
 }
Beispiel #3
0
 /**
  * Sets the value of the ejbRefType property.
  *
  * @param value allowed object is {@link EjbRefType }
  */
 public void setEjbRefType(EjbRefType value) {
   try {
     support.fireVetoableChange("EjbRefType", ejbRefType, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.ejbRefType = value;
 }
Beispiel #4
0
 /**
  * Sets the value of the id property.
  *
  * @param value allowed object is {@link String }
  */
 public void setId(String value) {
   try {
     support.fireVetoableChange("Id", id, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.id = value;
 }
Beispiel #5
0
 /**
  * Sets the value of the description property.
  *
  * @param value allowed object is {@link Description }
  */
 public void setDescription(Description value) {
   try {
     support.fireVetoableChange("Description", description, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.description = value;
 }
Beispiel #6
0
 /**
  * Sets the value of the formErrorPage property.
  *
  * @param value allowed object is {@link FormErrorPage }
  */
 public void setFormErrorPage(FormErrorPage value) {
   try {
     support.fireVetoableChange("FormErrorPage", formErrorPage, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.formErrorPage = value;
 }
Beispiel #7
0
 /**
  * Sets the value of the urlPattern property.
  *
  * @param value allowed object is {@link UrlPattern }
  */
 public void setUrlPattern(UrlPattern value) {
   try {
     support.fireVetoableChange("UrlPattern", urlPattern, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.urlPattern = value;
 }
Beispiel #8
0
 /**
  * Sets the value of the servletName property.
  *
  * @param value allowed object is {@link ServletName }
  */
 public void setServletName(ServletName value) {
   try {
     support.fireVetoableChange("ServletName", servletName, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.servletName = value;
 }
Beispiel #9
0
 /**
  * Sets the value of the local property.
  *
  * @param value allowed object is {@link Local }
  */
 public void setLocal(Local value) {
   try {
     support.fireVetoableChange("Local", local, value);
   } catch (PropertyVetoException _x) {
     return;
   }
   this.local = value;
 }
Beispiel #10
0
 /**
  * Setter for the field <code>threads</code>.
  *
  * @param threads the threads to set
  * @throws java.beans.PropertyVetoException if any.
  */
 public void setThreads(Integer threads) throws PropertyVetoException {
   java.lang.Integer oldThreads = this.threads;
   if (threads < 1 || threads > 50) {
     throw new PropertyVetoException(
         guiTexts.getString("INVALID_THREADS_NUMBER"),
         new PropertyChangeEvent(this, PROP_THREADS, oldThreads, threads));
   }
   vetoableChangeSupport.fireVetoableChange(PROP_THREADS, oldThreads, threads);
   this.threads = threads;
   propertyChangeSupport.firePropertyChange(PROP_THREADS, oldThreads, threads);
 }
Beispiel #11
0
 /** @param maxCacheDays the maxCacheDays to set */
 public void setMaxCacheDays(Integer maxCacheDays) throws PropertyVetoException {
   java.lang.Integer oldMaxCacheDays = this.maxCacheDays;
   if (maxCacheDays < 1 || maxCacheDays > 500) {
     throw new PropertyVetoException(
         guiTexts.getString("INVALID_THREADS_NUMBER"),
         new PropertyChangeEvent(this, PROP_MAXCACHEDAYS, oldMaxCacheDays, maxCacheDays));
   }
   vetoableChangeSupport.fireVetoableChange(PROP_MAXCACHEDAYS, oldMaxCacheDays, maxCacheDays);
   this.maxCacheDays = maxCacheDays;
   propertyChangeSupport.firePropertyChange(PROP_MAXCACHEDAYS, oldMaxCacheDays, maxCacheDays);
 }
Beispiel #12
0
 /**
  * Setter for the field <code>timeout</code>.
  *
  * @param timeout the timeout to set
  * @throws java.beans.PropertyVetoException if any.
  */
 public void setTimeout(Integer timeout) throws PropertyVetoException {
   java.lang.Integer oldTimeout = this.timeout;
   if (timeout < 1000 || timeout > 300000) {
     throw new PropertyVetoException(
         guiTexts.getString("INVALID_TIMEOUT"),
         new PropertyChangeEvent(this, PROP_TIMEOUT, oldTimeout, timeout));
   }
   vetoableChangeSupport.fireVetoableChange(PROP_TIMEOUT, oldTimeout, timeout);
   this.timeout = timeout;
   propertyChangeSupport.firePropertyChange(PROP_TIMEOUT, oldTimeout, timeout);
 }
Beispiel #13
0
 /**
  * Setter for the field <code>serverBaseUrl</code>.
  *
  * @param serverBaseUrl the serverBaseUrl to set
  * @throws java.beans.PropertyVetoException if any.
  */
 public void setServerBaseUrl(URL serverBaseUrl) throws PropertyVetoException {
   java.net.URL oldServerBaseUrl = this.serverBaseUrl;
   //        try {
   //            java.net.URL newServerBaseUrl = new URL(serverBaseUrl);
   vetoableChangeSupport.fireVetoableChange(PROP_SERVERBASEURL, oldServerBaseUrl, serverBaseUrl);
   this.serverBaseUrl = serverBaseUrl;
   //        } catch (MalformedURLException ex) {
   //            throw new PropertyVetoException(ex.getLocalizedMessage(), new
   // PropertyChangeEvent(this, PROP_SERVERBASEURL,
   //                    oldServerBaseUrl.toString(), serverBaseUrl));
   //        }
   propertyChangeSupport.firePropertyChange(PROP_SERVERBASEURL, oldServerBaseUrl, serverBaseUrl);
 }
  /**
   * Reports a vetoable property update to any registered listeners. If anyone vetos the change,
   * then a new event is fired reverting everyone to the old value, and then the
   * PropertyVetoException is rethrown.
   *
   * <p>No event is fired if old and new are equal and non-null.
   *
   * @param propertyName the programmatic name of the property that was changed
   * @param oldValue the old value of the property
   * @param newValue the new value of the property
   * @exception PropertyVetoException if the specified property value is unacceptable
   */
  @SuppressWarnings("unchecked")
  public void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
      throws PropertyVetoException {
    if (oldValue != null && oldValue.equals(newValue)) {
      return;
    }

    super.fireVetoableChange(propertyName, oldValue, newValue);

    java.util.Hashtable<String, Vector<VetoableChangeListener>> templistenerTable = null;

    synchronized (this) {
      if (listenerTable == null || !listenerTable.containsKey(propertyName)) {
        return;
      }
      templistenerTable =
          (java.util.Hashtable<String, Vector<VetoableChangeListener>>) listenerTable.clone();
    }

    java.util.Vector<VetoableChangeListener> listenerList;

    listenerList = templistenerTable.get(propertyName);

    PropertyChangeEvent evt = new PropertyChangeEvent(source, propertyName, oldValue, newValue);

    try {
      for (int i = 0; i < listenerList.size(); i++) {
        VetoableChangeListener target = listenerList.elementAt(i);
        target.vetoableChange(evt);
      }
    } catch (PropertyVetoException veto) {
      // Create an event to revert everyone to the old value.
      evt = new PropertyChangeEvent(source, propertyName, newValue, oldValue);
      for (int i = 0; i < listenerList.size(); i++) {
        try {
          VetoableChangeListener target = listenerList.elementAt(i);
          target.vetoableChange(evt);
        } catch (PropertyVetoException ex) {
          // We just ignore exceptions that occur during reversions.
        }
      }
      // And now rethrow the PropertyVetoException.
      throw veto;
    }
  }
 @Override
 public void removeVetoableChangeListener(@Nullable VetoableChangeListener listener) {
   vcs.removeVetoableChangeListener(listener);
 }
 @Override
 public void addVetoableChangeListener(@Nullable VetoableChangeListener listener) {
   vcs.addVetoableChangeListener(listener);
 }
 protected void fireVetoableChange(
     @Nonnull String propertyName, @Nullable Object oldValue, @Nullable Object newValue)
     throws PropertyVetoException {
   vcs.fireVetoableChange(
       requireNonBlank(propertyName, ERROR_PROPERTY_NAME_BLANK), oldValue, newValue);
 }
 protected void fireVetoableChange(@Nonnull PropertyChangeEvent event)
     throws PropertyVetoException {
   vcs.fireVetoableChange(requireNonNull(event, ERROR_EVENT_NULL));
 }
 @Nonnull
 @Override
 public VetoableChangeListener[] getVetoableChangeListeners(@Nullable String propertyName) {
   return vcs.getVetoableChangeListeners(propertyName);
 }
 public void removeVetoableChangeListener(VetoableChangeListener l) {
   veto.removeVetoableChangeListener(l);
 }
 public void addVetoableChangeListener(VetoableChangeListener l) {
   veto.addVetoableChangeListener(l);
 }
Beispiel #22
0
 public void removeVetoableChangeListener(VetoableChangeListener param0) {
   support.removeVetoableChangeListener(param0);
 }
Beispiel #23
0
 public void removeVetoableChangeListener(String param0, VetoableChangeListener param1) {
   support.removeVetoableChangeListener(param0, param1);
 }
Beispiel #24
0
 public void addVetoableChangeListener(String param0, VetoableChangeListener param1) {
   support.addVetoableChangeListener(param0, param1);
 }
 @Override
 public void removeVetoableChangeListener(
     @Nullable String propertyName, @Nullable VetoableChangeListener listener) {
   vcs.removeVetoableChangeListener(propertyName, listener);
 }
 @Nonnull
 @Override
 public VetoableChangeListener[] getVetoableChangeListeners() {
   return vcs.getVetoableChangeListeners();
 }
Beispiel #27
0
 public void addVetoableChangeListener(VetoableChangeListener param0) {
   support.addVetoableChangeListener(param0);
 }