|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tucana.DownloadCommand
public class DownloadCommand
A command used to enqueue a file (or similar) to the client for downlaoding from the server.
The following code shows the simplest form of using this command:
import java.io.File;
import echopoint.tucana.DownloadButton
...
final File file = new File( "/tmp/test.txt" );
final DownloadButton button = new DownloadButton( file );
button.setText( "Download file" );
button.setStyleName( "mystyle" );
parent.add( button );
DownloadButton,
Serialized Form| Constructor Summary | |
|---|---|
DownloadCommand()
Constructs a new download command. |
|
DownloadCommand(DownloadProvider provider)
Constructs a new download command, whose data will be taken from the passed DownloadProvider. |
|
| Method Summary | |
|---|---|
DownloadCallback |
getCallback()
Accessor for property 'callback'. |
DownloadProvider |
getProvider()
Returns the download provider. |
String |
getRenderId()
Returns the render id. |
protected void |
notifyCallback(DownloadEvent event)
Notify the download progress callback handler of updates to the download process. |
void |
setCallback(DownloadCallback callback)
Mutator for property 'callback'. |
void |
setProvider(DownloadProvider newValue)
Sets the download provider from which to get the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadCommand()
public DownloadCommand(DownloadProvider provider)
DownloadProvider.
provider - the provider from which to get the data.| Method Detail |
|---|
public DownloadProvider getProvider()
public void setProvider(DownloadProvider newValue)
newValue - the download provider from which to get the data.public String getRenderId()
getRenderId in interface RenderIdSupportpublic DownloadCallback getCallback()
public void setCallback(DownloadCallback callback)
callback - Value to set for property 'callback'.protected void notifyCallback(DownloadEvent event)
event - The progress event.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||