|
||||||||||
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
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(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 IEngineService |
getAjaxService()
Injected PartialService |
abstract String |
getElement()
Element to wrap body with |
String |
getLinkString()
Constructs a PartialService link request. |
NumberFormat |
getNumberFormat()
Number formatter |
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(IMarkupWriter writer,
IRequestCycle cycle)
|
abstract void |
setWorker(ProgressWorker worker)
sets the worker |
void |
trigger(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, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, 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, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, 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 IEngineService getAjaxService()
PartialService
public abstract String getElement()
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
public NumberFormat getNumberFormat()
public String truncate(String input)
input
-
StringUtils.abbreviate(java.lang.String, int)
public void cancelTask(IRequestCycle cycle)
cycle
- public boolean isStateful()
isStateful
in interface IDirect
public void trigger(IRequestCycle cycle)
trigger
in interface IDirect
public String getUpdateId()
public String getLinkString()
PartialService
link request.
PartialService
with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |