public void setDirectory(boolean directory) {
    boolean oldValue = this.directory;
    if (oldValue != directory) {
      this.directory = directory;
      firePropertyChange(DIRECTORY_PROP, oldValue, this.directory);
    }
  }
public void setDirectory(boolean directory)