コード例 #1
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #2
0
ファイル: JspFile.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #3
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #4
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #5
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #6
0
ファイル: FormLoginConfig.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #7
0
ファイル: ServletMapping.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #8
0
ファイル: ServletMapping.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #9
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 /**
  * 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;
 }
コード例 #10
0
ファイル: Configuration.java プロジェクト: rrrekin/KlientPBI
 /**
  * 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);
 }
コード例 #11
0
ファイル: Configuration.java プロジェクト: rrrekin/KlientPBI
 /** @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);
 }
コード例 #12
0
ファイル: Configuration.java プロジェクト: rrrekin/KlientPBI
 /**
  * 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);
 }
コード例 #13
0
ファイル: Configuration.java プロジェクト: rrrekin/KlientPBI
 /**
  * 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);
 }
コード例 #14
0
  /**
   * 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;
    }
  }
コード例 #15
0
 @Override
 public void removeVetoableChangeListener(@Nullable VetoableChangeListener listener) {
   vcs.removeVetoableChangeListener(listener);
 }
コード例 #16
0
 @Override
 public void addVetoableChangeListener(@Nullable VetoableChangeListener listener) {
   vcs.addVetoableChangeListener(listener);
 }
コード例 #17
0
 protected void fireVetoableChange(
     @Nonnull String propertyName, @Nullable Object oldValue, @Nullable Object newValue)
     throws PropertyVetoException {
   vcs.fireVetoableChange(
       requireNonBlank(propertyName, ERROR_PROPERTY_NAME_BLANK), oldValue, newValue);
 }
コード例 #18
0
 protected void fireVetoableChange(@Nonnull PropertyChangeEvent event)
     throws PropertyVetoException {
   vcs.fireVetoableChange(requireNonNull(event, ERROR_EVENT_NULL));
 }
コード例 #19
0
 @Nonnull
 @Override
 public VetoableChangeListener[] getVetoableChangeListeners(@Nullable String propertyName) {
   return vcs.getVetoableChangeListeners(propertyName);
 }
コード例 #20
0
 public void removeVetoableChangeListener(VetoableChangeListener l) {
   veto.removeVetoableChangeListener(l);
 }
コード例 #21
0
 public void addVetoableChangeListener(VetoableChangeListener l) {
   veto.addVetoableChangeListener(l);
 }
コード例 #22
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 public void removeVetoableChangeListener(VetoableChangeListener param0) {
   support.removeVetoableChangeListener(param0);
 }
コード例 #23
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 public void removeVetoableChangeListener(String param0, VetoableChangeListener param1) {
   support.removeVetoableChangeListener(param0, param1);
 }
コード例 #24
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 public void addVetoableChangeListener(String param0, VetoableChangeListener param1) {
   support.addVetoableChangeListener(param0, param1);
 }
コード例 #25
0
 @Override
 public void removeVetoableChangeListener(
     @Nullable String propertyName, @Nullable VetoableChangeListener listener) {
   vcs.removeVetoableChangeListener(propertyName, listener);
 }
コード例 #26
0
 @Nonnull
 @Override
 public VetoableChangeListener[] getVetoableChangeListeners() {
   return vcs.getVetoableChangeListeners();
 }
コード例 #27
0
ファイル: EjbLocalRef.java プロジェクト: phan-pivotal/OSS
 public void addVetoableChangeListener(VetoableChangeListener param0) {
   support.addVetoableChangeListener(param0);
 }