er.ajax
Class AjaxProgressBar
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.ajax.AjaxProgressBar
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
public class AjaxProgressBar
- extends WOComponent
- Author:
- mschrag
- See Also:
- Serialized Form
| Bindings |
id | the id of the update container |
progressID | the id of the AjaxProgress |
progress | the progress object for this progress bar (can bind a new progress back out if one is in the
registry) |
startedFunction | the javascript function to execute when the progress is started |
canceledFunction | the javascript function to execute when the progress is canceled |
succeededFunction | the javascript function to execute when the progress succeeds |
failedFunction | the javascript function to execute when the progress fails |
finishedFunction | the javascript function to execute when the progress finishes (succeeded, failed, or
canceled) |
cancelText | the text to display for the cancel link |
cancelingText | the text to display when the progress is being canceled |
startingText | the text to display when the progress is starting |
finishedAction | the action to fire when the progress finishes (cancel, failed, or succeeded) |
canceledAction | the action to fire when the progress is canceled |
succeededAction | the action to fire when the progress succeeded |
failedAction | the action to fire when the progress fails |
started | boolean of whether or not the progress has started (i.e. begin polling) |
allowCancel | if true, the cancel link is visible |
visibleBeforeStart | if true, the progress bar is visible before the activity is started |
visibleAfterDone | if true, the progress bar is visible after the activity is done |
refreshTime | the number of milliseconds to wait between refreshes |
| Methods inherited from class com.webobjects.appserver.WOComponent |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding |
AJAX_PROGRESSES_KEY
public static final String AJAX_PROGRESSES_KEY
- See Also:
- Constant Field Values
AjaxProgressBar
public AjaxProgressBar(WOContext context)
appendToResponse
public void appendToResponse(WOResponse aResponse,
WOContext aContext)
- Overrides:
appendToResponse in class WOComponent
synchronizesVariablesWithBindings
public boolean synchronizesVariablesWithBindings()
- Overrides:
synchronizesVariablesWithBindings in class WOComponent
fireStartedJavascriptEvent
public boolean fireStartedJavascriptEvent()
fireFinishedJavascriptEvents
public boolean fireFinishedJavascriptEvents()
progressBarVisible
public boolean progressBarVisible()
startingText
public String startingText()
cancelingText
public String cancelingText()
progress
public AjaxProgress progress()
progressID
public String progressID()
id
public String id()
finishedClass
public String finishedClass()
displayValue
public Object displayValue()
displayMaximum
public Object displayMaximum()
percentage
public String percentage()
isStarted
public boolean isStarted()
cancelText
public String cancelText()
onChange
public String onChange()
_checkForCompletion
protected void _checkForCompletion()
done
public boolean done()
refreshTime
public String refreshTime()
refreshing
public WOActionResults refreshing()
cancel
public WOActionResults cancel()
finished
protected void finished()
progressCanceled
protected void progressCanceled()
progressSucceeded
protected void progressSucceeded()
progressFailed
protected void progressFailed()
registerProgress
public static void registerProgress(WOSession session,
AjaxProgress progress)
- Register a progress object in the registry.
- Parameters:
session - the sessionprogress - the progress object to register
unregisterProgress
public static void unregisterProgress(WOSession session,
AjaxProgress progress)
- Unregister a progress object from the registry.
- Parameters:
session - the sessionprogress - the progress object to unregister
progress
public static AjaxProgress progress(WOSession session,
String id)
- Returns the progress object with the given id (or null if one does not exist).
- Parameters:
session - the sessionid - the id of the progress to retrieve
- Returns:
- the matching progess object (or null)
Copyright © 2002 – 2007 Project Wonder.