|
||||||||||
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 net.sf.tacos.ajax.components.ProgressBar
public abstract class ProgressBar
Generates and renders a progress bar for use with pages that have extremely
heavy loads. It is intended that the ProgressWorker
being managed by this component
be started as a seperate thread from the page requesting processing. This component
will cause the page to be re-loaded every few number of seconds, with the default being
4.
Constructor Summary | |
---|---|
ProgressBar()
|
Method Summary | |
---|---|
void |
cancelTask(org.apache.tapestry.IRequestCycle cycle)
Cancels the threaded run of the currently running task, if selected by the user and if the specified task adheres to the cancel request. |
abstract AjaxWebRequest |
getAjaxRequest()
Injected request |
abstract org.apache.tapestry.engine.IEngineService |
getAjaxService()
Injected AjaxDirectService |
abstract String |
getElement()
Element to wrap body with |
String |
getLinkString()
Constructs a AjaxDirectService link request. |
NumberFormat |
getNumberFormat()
Number formatter |
abstract String |
getOnCompleteObject()
Js object to call when completed |
abstract int |
getTruncateLength()
Gets the value of truncate |
String |
getUpdateId()
Gets this components unique id, or if available the id specified in the html attribute. |
abstract ProgressWorker |
getWorker()
gets the worker this component is managing |
boolean |
isStateful()
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setWorker(ProgressWorker worker)
sets the worker |
void |
trigger(org.apache.tapestry.IRequestCycle cycle)
Called for each refresh of component. |
String |
truncate(String input)
Used by UI to truncate a long string to a certain length, followed by 3 ellipses. |
Methods inherited from class org.apache.tapestry.BaseComponent |
---|
addOuter, finishLoad |
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, getExtendedId, getId, getIdPath, 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, getExtendedId, getId, getIdPath, 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 ProgressBar()
Method Detail |
---|
public abstract ProgressWorker getWorker()
public abstract void setWorker(ProgressWorker worker)
public abstract int getTruncateLength()
public abstract org.apache.tapestry.engine.IEngineService getAjaxService()
AjaxDirectService
public abstract AjaxWebRequest getAjaxRequest()
public abstract String getElement()
public abstract String getOnCompleteObject()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.BaseComponent
public NumberFormat getNumberFormat()
public String truncate(String input)
input
-
StringUtils.abbreviate(java.lang.String, int)
public void cancelTask(org.apache.tapestry.IRequestCycle cycle)
cycle
- public boolean isStateful()
isStateful
in interface org.apache.tapestry.IDirect
public void trigger(org.apache.tapestry.IRequestCycle cycle)
trigger
in interface org.apache.tapestry.IDirect
public String getUpdateId()
public String getLinkString()
AjaxDirectService
link request.
AjaxDirectService
with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |