[Schmitzm-commits] r1786 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Nov 19 13:43:00 CET 2011


Author: mojays
Date: 2011-11-19 13:42:59 +0100 (Sat, 19 Nov 2011)
New Revision: 1786

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/FileInputOption.java
Log:
FileInputOption: Provide access to file chooser

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/FileInputOption.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/FileInputOption.java	2011-11-18 13:11:01 UTC (rev 1785)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/input/FileInputOption.java	2011-11-19 12:42:59 UTC (rev 1786)
@@ -42,7 +42,7 @@
  * @version 1.0
  */
 public class FileInputOption extends BrowseInputOption {
-  private JFileChooser fileChooser = new JFileChooser();
+  protected JFileChooser fileChooser = new JFileChooser();
 
   /**
    * Erzeugt eine neue Eingabe-Option.
@@ -82,6 +82,14 @@
   }
 
   /**
+   * Setzt den Dateiauswahl-Dialog fuer die Browse-Aktion.
+   * @see JFileChooser
+   */
+  public void setFileChooser(JFileChooser fileChooser) {
+    this.fileChooser = fileChooser;
+  }
+
+  /**
    * Liefert das ein {@link File}-Objekt zu der Text-Eingabe (Dateipfad)
    * der Option.
    * @param objectStr Objekt-String



More information about the Schmitzm-commits mailing list