All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nextapp.echo2.app.filetransfer.FilePane Maven / Gradle / Ivy

Go to download

Echo2 bundled with Echo2_Extras, Echo2_FileTransfer and echopointing and various improvements/bugfixes

There is a newer version: 2.0.4
Show newest version
package nextapp.echo2.app.filetransfer;

import nextapp.echo2.app.Component;
import nextapp.echo2.app.Pane;

public class FilePane extends Component 
implements Pane {
    
    public static final String PROVIDER_CHANGED_PROPERTY = "provider";
    
    private DownloadProvider provider;

    /**
     * Creates a new FilePane with no download
     * provider.
     */
    public FilePane() {
        this(null);
    }
    
    /**
     * Creates a new Download command with the specified 
     * producer and active state.
     *
     * @param provider The DownloadProvider that will provide the
     *        file download.
     * @param active True if the file should be immediately downloaded by the 
     *        client.
     */
    public FilePane(DownloadProvider provider) {
        super();
        this.provider = provider;
    }

    /** 
     * Returns the DownloadProvider that will provide the file
     * download.
     *
     * @return The DownloadProvider that will provide the file
     *         download.
     */
    public DownloadProvider getProvider() {
        return provider;
    }
    
    /**    
     * Sets the DownloadProvider that will provide the file
     * download.
     *
     * @param newValue A DownloadProvider that will provide the file
     * download.
     */
    public void setProvider(DownloadProvider newValue) {
        DownloadProvider oldValue = provider;
        provider = newValue;
        firePropertyChange(PROVIDER_CHANGED_PROPERTY, oldValue, newValue);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy