|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.ajax.AjaxComponent
er.ajax.AjaxBusySpinner
public class AjaxBusySpinner
AjaxBusySpinner provides various ways of performing operations when an Ajax request is in process. It uses http://fgnass.github.com/spin.js to render the spinner, and can be configured to the desired style using the optional bindings
| Bindings | |
busyClass | (optional) the CSS class to apply to the updating element during the request |
divID | (optional) the id of the div to show and hide during the request |
onCreate | (optional) the function to execute when the request starts |
onComplete | (optional) the function to execute when the request ends |
watchContainerID | (optional) if set, the other bindings will only apply when this container ID is being
updated, which provides for per-element busy controls |
id | (optional) if bound, you can provide a custom style for the generated busy image div |
class | (optional) if bound, you can provide a custom style for the generated busy image div |
style | (optional) if bound, you can provide a custom style for the generated busy image div |
lines | (optional) number of lines to draw |
length | (optional) length of each line |
width | (optional) line thickness |
radius | (optional) radius of the inner circle |
color | (optional) #rgb or #rrggbb |
speed | (optional) rounds per second |
trail | (optional) afterglow percentage |
shadow | (optional) whether to render a shadow |
spinOpts | (optional) json style list of spinner options (explicit binding values take precedence) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
|---|
WOComponent._EventLoggingEnabler, WOComponent.Event |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary |
|---|
| 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 | |
|---|---|
AjaxBusySpinner(WOContext context)
|
|
| Method Summary | |
|---|---|
protected void |
addRequiredWebResources(WOResponse res)
Override this method to append the needed scripts for this component. |
boolean |
customStyle()
|
String |
divID()
|
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request. |
boolean |
isStateless()
|
String |
onComplete()
|
String |
onCreate()
|
String |
spinOpts()
|
String |
style()
|
boolean |
synchronizesVariablesWithBindings()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AjaxBusySpinner(WOContext context)
| Method Detail |
|---|
public boolean isStateless()
isStateless in class WOComponentpublic boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings in class WOComponentprotected void addRequiredWebResources(WOResponse res)
AjaxComponent
addRequiredWebResources in class AjaxComponentpublic boolean customStyle()
public String style()
public String divID()
public String onCreate()
public String onComplete()
public String spinOpts()
throws org.json.JSONException
org.json.JSONException
public WOActionResults handleRequest(WORequest request,
WOContext context)
AjaxComponent
handleRequest in interface IAjaxElementhandleRequest in class AjaxComponent
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||