⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertyvaluevetoexception.java

📁 本系统是用 java 语言实现的一个 Email客户端
💻 JAVA
字号:
package net.suberic.util.gui.propedit;public class PropertyValueVetoException extends Exception {  String propertyName;  String rejectedValue;  String reason;  PropertyEditorListener listener;  String message = null;  /**   * Creates a new PropertyValueVetoException.   */  public PropertyValueVetoException(String pProperty, String pRejectedValue, String pReason, PropertyEditorListener pListener) {    propertyName = pProperty;    rejectedValue = pRejectedValue;    reason = pReason;    listener = pListener;  }  /**   * Creates a new PropertyValueVetoException.   */  public PropertyValueVetoException(String pMessage) {    message = pMessage;  }  /**   * Returns the property being changed.   */  public String getProperty() {    return propertyName;  }  /**   * Returns the rejected value.   */  public String getRejectedValue() {    return rejectedValue;  }  /**   * Returns the reason for rejection.   */  public String getReason() {    return reason;  }  /**   * Returns the listener that rejected the change.   */  public PropertyEditorListener getListener() {    return listener;  }  /**   * Returns the message for this exception.   */  public String getMessage() {    if (message == null)      return "Error changing value " + getProperty() + " to '" + getRejectedValue() + "':  " + getReason();    else      return message;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -