|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.tapestry.AbstractComponent org.apache.tapestry.BaseComponent org.apache.tapestry.AbstractPage org.apache.tapestry.html.BasePage net.sf.tacos.demo.pages.forms.UploadProgressBar
public abstract class UploadProgressBar
Demonstrates use of ProgressBar
component to render
progress of threaded work.
Constructor Summary | |
---|---|
UploadProgressBar()
|
Method Summary | |
---|---|
String |
getEstimatedTimeLeft()
Calculates amount of time left, in minutes, for task. |
abstract org.apache.tapestry.request.IUploadFile |
getImportFile()
Gets the uploaded file |
abstract String |
getImportFileName()
The original name of the file that was imported |
abstract ProgressWorker |
getProgressWorker()
Worker doing import |
abstract long |
getStartTime()
Gets start time |
boolean |
isImporting()
|
abstract void |
setImportFile(org.apache.tapestry.request.IUploadFile importFile)
Sets the uploaded file |
abstract void |
setImportFileName(String fileName)
Sets the name of the file that was imported |
abstract void |
setProgressWorker(ProgressWorker worker)
sets worker doing import |
abstract void |
setStartTime(long time)
Set time - in milliseconds - that worker started |
void |
startTask(org.apache.tapestry.IRequestCycle cycle)
Starts the progress task. |
Methods inherited from class org.apache.tapestry.html.BasePage |
---|
getResponseContentType |
Methods inherited from class org.apache.tapestry.AbstractPage |
---|
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageRenderListener, addPageValidateListener, attach, beginPageRender, beginResponse, detach, endPageRender, firePageAttached, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getGlobal, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, getVisit, initialize, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageRenderListener, removePageValidateListener, renderPage, setChangeObserver, setLocale, setPageName, validate |
Methods inherited from class org.apache.tapestry.BaseComponent |
---|
addOuter, finishLoad, renderComponent |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getId, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getId, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public UploadProgressBar()
Method Detail |
---|
public abstract ProgressWorker getProgressWorker()
public abstract void setProgressWorker(ProgressWorker worker)
public abstract void setStartTime(long time)
public abstract long getStartTime()
public abstract String getImportFileName()
public abstract void setImportFileName(String fileName)
public abstract org.apache.tapestry.request.IUploadFile getImportFile()
public abstract void setImportFile(org.apache.tapestry.request.IUploadFile importFile)
public boolean isImporting()
public String getEstimatedTimeLeft()
public void startTask(org.apache.tapestry.IRequestCycle cycle) throws Exception
cycle
-
Exception
- on error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |