Sha256: b8773fa964f7d89c2ec4779498ed6e0bb5d47736abc008d37371e85b6d7fa123

Contents?: true

Size: 1.41 KB

Versions: 22

Compression:

Stored size: 1.41 KB

Contents

/*
 * Copyright (c) 2016-18 Martin Prout
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 *
 * http://creativecommons.org/licenses/LGPL/2.1/
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
package monkstone.filechooser;

import java.io.File;

/**
 * This interface makes it easier/possible to use the reflection methods
 * selectInput
 * def setup
 *   java_signature 'void selectInput(String, String)'
 *   selectInput('Select a file to process:', 'fileSelected')
 * end
 *
 * def file_selected(selection)
 *   if selection.nil?
 *     puts 'Window was closed or the user hit cancel.'
 *   else
 *     puts format('User selected %s', selection.get_absolute_path)
 *   end
 * end
 *
 */
public interface Chooser {

    /**
     *
     * @param selection
     */
    public void file_selected(File selection);
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
picrate-1.3.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.2.4-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.2.3-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.2.2-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.2.1-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.2.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.1.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-1.0.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.9.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.8.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.7.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.6.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.5.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.4.3-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.4.2-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.4.1-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.4.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.3.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.2.0-java src/main/java/monkstone/filechooser/Chooser.java
picrate-0.1.0-java src/main/java/monkstone/filechooser/Chooser.java