Project Wonder 5.0

er.ajax
Class AjaxProgressBar

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by er.ajax.AjaxProgressBar
All Implemented Interfaces:
com.webobjects.appserver.WOActionResults, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, java.io.Serializable, java.lang.Cloneable

public class AjaxProgressBar
extends com.webobjects.appserver.WOComponent

See Also:
Serialized Form
Author:
mschrag
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
           
progressOfText the text to display for the word "of" in the "[size] of [totalsize]" string during upload
           
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
           

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
 
Field Summary
static java.lang.String AJAX_PROGRESSES_KEY
           
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSValidation
_CLASS
 
Constructor Summary
AjaxProgressBar(com.webobjects.appserver.WOContext context)
           
 
Method Summary
protected  void _checkForCompletion()
           
 void appendToResponse(com.webobjects.appserver.WOResponse aResponse, com.webobjects.appserver.WOContext aContext)
           
 com.webobjects.appserver.WOActionResults cancel()
           
 java.lang.String cancelingText()
           
 java.lang.String cancelText()
           
 java.lang.Object displayMaximum()
           
 java.lang.Object displayValue()
           
 boolean done()
           
protected  void finished()
           
 java.lang.String finishedClass()
           
 boolean fireFinishedJavascriptEvents()
           
 boolean fireStartedJavascriptEvent()
           
 java.lang.String id()
           
 boolean isStarted()
           
 java.lang.String onChange()
           
 java.lang.String percentage()
           
 AjaxProgress progress()
           
static AjaxProgress progress(com.webobjects.appserver.WOSession session, java.lang.String id)
          Returns the progress object with the given id (or null if one does not exist).
 boolean progressBarVisible()
           
protected  void progressCanceled()
           
protected  void progressFailed()
           
 java.lang.String progressID()
           
 java.lang.String progressOfText()
           
protected  void progressSucceeded()
           
 com.webobjects.appserver.WOActionResults refreshing()
           
 java.lang.String refreshTime()
           
static void registerProgress(com.webobjects.appserver.WOSession session, AjaxProgress progress)
          Register a progress object in the registry.
 java.lang.String startingText()
           
 boolean synchronizesVariablesWithBindings()
           
static void unregisterProgress(com.webobjects.appserver.WOSession session, AjaxProgress progress)
          Unregister a progress object from the registry.
 
Methods inherited from class com.webobjects.appserver.WOComponent
_associationWithName, _awakeInContext, _childTemplate, _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, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AJAX_PROGRESSES_KEY

public static final java.lang.String AJAX_PROGRESSES_KEY
See Also:
Constant Field Values
Constructor Detail

AjaxProgressBar

public AjaxProgressBar(com.webobjects.appserver.WOContext context)
Method Detail

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse aResponse,
                             com.webobjects.appserver.WOContext aContext)
Overrides:
appendToResponse in class com.webobjects.appserver.WOComponent

synchronizesVariablesWithBindings

public boolean synchronizesVariablesWithBindings()
Overrides:
synchronizesVariablesWithBindings in class com.webobjects.appserver.WOComponent

fireStartedJavascriptEvent

public boolean fireStartedJavascriptEvent()

fireFinishedJavascriptEvents

public boolean fireFinishedJavascriptEvents()

progressBarVisible

public boolean progressBarVisible()

startingText

public java.lang.String startingText()

cancelingText

public java.lang.String cancelingText()

progress

public AjaxProgress progress()

progressID

public java.lang.String progressID()

id

public java.lang.String id()

finishedClass

public java.lang.String finishedClass()

displayValue

public java.lang.Object displayValue()

displayMaximum

public java.lang.Object displayMaximum()

percentage

public java.lang.String percentage()

isStarted

public boolean isStarted()

cancelText

public java.lang.String cancelText()

progressOfText

public java.lang.String progressOfText()

onChange

public java.lang.String onChange()

_checkForCompletion

protected void _checkForCompletion()

done

public boolean done()

refreshTime

public java.lang.String refreshTime()

refreshing

public com.webobjects.appserver.WOActionResults refreshing()

cancel

public com.webobjects.appserver.WOActionResults cancel()

finished

protected void finished()

progressCanceled

protected void progressCanceled()

progressSucceeded

protected void progressSucceeded()

progressFailed

protected void progressFailed()

registerProgress

public static void registerProgress(com.webobjects.appserver.WOSession session,
                                    AjaxProgress progress)
Register a progress object in the registry. Cover method that calls through to the AjaxProgress implementation to maintain backwards compatibility.

Parameters:
session - the session
progress - the progress object to register

unregisterProgress

public static void unregisterProgress(com.webobjects.appserver.WOSession session,
                                      AjaxProgress progress)
Unregister a progress object from the registry. Cover method that calls through to the AjaxProgress implementation to maintain backwards compatibility.

Parameters:
session - the session
progress - the progress object to unregister

progress

public static AjaxProgress progress(com.webobjects.appserver.WOSession session,
                                    java.lang.String id)
Returns the progress object with the given id (or null if one does not exist). Cover method that calls through to the AjaxProgress implementation to maintain backwards compatibility.

Parameters:
session - the session
id - the id of the progress to retrieve
Returns:
the matching progess object (or null)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.