nextapp.echo2.app.filetransfer.FilePane Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ibis-echo2 Show documentation
Show all versions of ibis-echo2 Show documentation
Echo2 bundled with Echo2_Extras, Echo2_FileTransfer and echopointing and various improvements/bugfixes
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