Java Doc for AbstractDefaultAjaxBehavior.java in  » J2EE » wicket » wicket » ajax » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » wicket » wicket.ajax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


wicket.behavior.AbstractAjaxBehavior
   wicket.ajax.AbstractDefaultAjaxBehavior

All known Subclasses:   wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteBehavior,  wicket.ajax.AjaxEventBehavior,  wicket.ajax.AbstractAjaxTimerBehavior,
AbstractDefaultAjaxBehavior
abstract public class AbstractDefaultAjaxBehavior extends AbstractAjaxBehavior (Code)
The base class for Wicket's default AJAX implementation.
since:
   1.2
author:
   Igor Vaynberg (ivaynberg)


Field Summary
final public static  ResourceReferenceINDICATOR
     reference to the default indicator gif file.


Method Summary
protected  IAjaxCallDecoratorgetAjaxCallDecorator()
    
protected  CharSequencegetCallbackScript()
    
protected  CharSequencegetCallbackScript(boolean recordPageVersion, boolean onlyTargetActivePage)
    
protected  CharSequencegetCallbackScript(CharSequence partialCall, CharSequence onSuccessScript, CharSequence onFailureScript)
     Returns javascript that performs an ajax callback to this behavior.
protected  StringgetImplementationId()
    
protected  voidonBind()
    
protected  voidonRenderHeadInitContribution(Response response)
    
final public  voidonRequest()
    
abstract protected  voidrespond(AjaxRequestTarget target)
    
final public static  CharSequencethrottleScript(CharSequence script, String throttleId, Duration throttleDelay)
     Wraps the provided javascript with a throttled block.

Field Detail
INDICATOR
final public static ResourceReference INDICATOR(Code)
reference to the default indicator gif file.





Method Detail
getAjaxCallDecorator
protected IAjaxCallDecorator getAjaxCallDecorator()(Code)
ajax call decorator used to decorate the call generated by thisbehavior or null for none



getCallbackScript
protected CharSequence getCallbackScript()(Code)
javascript that will generate an ajax GET request to thisbehavior



getCallbackScript
protected CharSequence getCallbackScript(boolean recordPageVersion, boolean onlyTargetActivePage)(Code)
javascript that will generate an ajax GET request to thisbehavior *
Parameters:
  recordPageVersion - if true the url will be encoded to execute on the current pageversion, otherwise url will be encoded to execute on thelatest page version
Parameters:
  onlyTargetActivePage - if true the callback to this behavior will be ignore if thepage is not the last one the user accessed



getCallbackScript
protected CharSequence getCallbackScript(CharSequence partialCall, CharSequence onSuccessScript, CharSequence onFailureScript)(Code)
Returns javascript that performs an ajax callback to this behavior. The script is decorated by the ajax callback decorator from AbstractDefaultAjaxBehavior.getAjaxCallDecorator .
Parameters:
  partialCall - Javascript of a partial call to the function performing theactual ajax callback. Must be in formatfunction(params, with signaturefunction(params, onSuccessHandler, onFailureHandler.Example: wicketAjaxGet('callbackurl'
Parameters:
  onSuccessScript - javascript that will run when the ajax call finishessuccessfully
Parameters:
  onFailureScript - javascript that will run when the ajax call finishes with anerror status script that peforms ajax callback to this behavior



getImplementationId
protected String getImplementationId()(Code)

See Also:   wicket.behavior.AbstractAjaxBehavior.getImplementationId



onBind
protected void onBind()(Code)
Subclasses should call super.onBind()
See Also:   wicket.behavior.AbstractAjaxBehavior.onBind



onRenderHeadInitContribution
protected void onRenderHeadInitContribution(Response response)(Code)

See Also:   wicket.behavior.AbstractAjaxBehavior.onRenderHeadInitContribution(wicket.Response)



onRequest
final public void onRequest()(Code)

See Also:   wicket.behavior.IBehaviorListener.onRequest



respond
abstract protected void respond(AjaxRequestTarget target)(Code)

Parameters:
  target - The AJAX target



throttleScript
final public static CharSequence throttleScript(CharSequence script, String throttleId, Duration throttleDelay)(Code)
Wraps the provided javascript with a throttled block. Throttled behaviors only execute once within the given delay even though they are triggered multiple times.

For example, this is useful when attaching an event behavior to the onkeypress event. It is not desirable to have an ajax call made every time the user types so we throttle that call to a desirable delay, such as once per second. This gives us a near real time ability to provide feedback without overloading the server with ajax calls.
Parameters:
  script - javascript to be throttled
Parameters:
  throttleId - the id of the throttle to be used. Usually this should remainconstant for the same javascript block.
Parameters:
  throttleDelay - time span within which the javascript block will only executeonce wrapped javascript




Methods inherited from wicket.behavior.AbstractAjaxBehavior
final public void bind(Component hostComponent)(Code)(Java Doc)
public void cleanup()(Code)(Java Doc)
public CharSequence getCallbackUrl()(Code)(Java Doc)
final public CharSequence getCallbackUrl(boolean recordPageVersion, boolean onlyTargetActivePage)(Code)(Java Doc)
final protected Component getComponent()(Code)(Java Doc)
abstract protected String getImplementationId()(Code)(Java Doc)
protected void onBind()(Code)(Java Doc)
protected void onComponentRendered()(Code)(Java Doc)
final public void onComponentTag(Component component, ComponentTag tag)(Code)(Java Doc)
protected void onComponentTag(ComponentTag tag)(Code)(Java Doc)
protected void onRenderHeadContribution(Response response)(Code)(Java Doc)
protected void onRenderHeadInitContribution(Response response)(Code)(Java Doc)
final public void onRendered(Component hostComponent)(Code)(Java Doc)
final public void renderHead(Response response)(Code)(Java Doc)
protected void writeJsReference(Response response, PackageResourceReference ref)(Code)(Java Doc)
protected void writeJsReference(Response response, ResourceReference ref)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.