public void setFormat(String format) {
    String oldValue = this.format;
    if (oldValue != null && !oldValue.equals(format) || oldValue == null && format != null) {
      this.format = format;
      firePropertyChange(FORMAT_PROP, oldValue, this.format);
    }
  }
public void setFormat(String format)