| com.xoetrope.resource.XResourceLoaderProgressPanel
XResourceLoaderProgressPanel | public class XResourceLoaderProgressPanel extends XPanel implements XResourceLoaderStatus,ActionListener,ListSelectionListener(Code) | | A panel for showing download progress. The panel may contain the following
components
- fileList, an XList showing the list of files to download
- downloadProgress, a XProgressBar showing the overall download progress
- downloadStatus, a XLabel showing the download status
- fileDetails, a XLabel showing details of the selected file
- targetEdit, a XEdit field showing the output folder
- startDownload, a XButton used to start the download
- pauseDownload, a XButton used to pause the download
- stopDownload, a XButton used to stop the download
The resource loader expects a list of files to be downloaded to be set as
children of the model node passed to startDownload. Each child node should
contain the attributes: file name, file date, file size in the positions
specified by the contsnts in XResourceLoader.
by default the class expect the list of files to be stored in the
resourceList node of the model, but this can be changed via the
setResourceList method
Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
author: luano |
XResourceLoaderProgressPanel | public XResourceLoaderProgressPanel()(Code) | | |
actionPerformed | public void actionPerformed(ActionEvent ae)(Code) | | Respond to one of the button presses
|
browseStaging | public void browseStaging()(Code) | | Find the staging area
|
clearStatusMsg | public void clearStatusMsg()(Code) | | |
fileSelected | public void fileSelected()(Code) | | A new document has been selected, so update the display
|
getResourceList | public XBaseModel getResourceList()(Code) | | |
pauseDownload | public void pauseDownload()(Code) | | |
setProgress | public void setProgress(int percent)(Code) | | |
setProgressMessage | public void setProgressMessage(String msg)(Code) | | |
setResourceList | public void setResourceList(XBaseModel node)(Code) | | |
startDownload | public void startDownload()(Code) | | |
stopDownload | public void stopDownload()(Code) | | |
updateFileProgress | public void updateFileProgress()(Code) | | |
valueChanged | public void valueChanged(ListSelectionEvent e)(Code) | | Called whenever the value of the selection changes.
Parameters: e - the event that characterizes the change. |
|
|