Java Doc for UpdateManager.java in  » Ajax » gwtext-2.01 » com » gwtext » client » core » 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 » Ajax » gwtext 2.01 » com.gwtext.client.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.core.JsObject
      com.gwtext.client.core.UpdateManager

UpdateManager
public class UpdateManager extends JsObject (Code)
Provides AJAX-style update for Element object.

Usage :

 ExtElement el = Ext.get("foo");
 UpdateManager mgr = el.getUpdateManager();
 mgr.update("http://myserver.com/index.php", "param1=1¶m2=2");
 

mgr.formUpdate("myFormId", "http://myserver.com/index.php");

// or directly (returns the same UpdateManager instance) UpdateManager mgr2 = new UpdateManager("myElementId"); mgr2.startAutoRefresh(60, "http://myserver.com/index.php"); mgr2.addListener("update", new EventCallback() { public void execute(EventObject e) { // } });




Constructor Summary
public  UpdateManager(String elementID)
     Create new UpdateManager directly.
public  UpdateManager(Element element)
     Create new UpdateManager directly.
public  UpdateManager(ExtElement element)
     Create new UpdateManager directly.
public  UpdateManager(JavaScriptObject jsObj)
    

Method Summary
native public  voidabort()
     Aborts the executing transaction.
native public  voidaddListener(String eventName, EventCallback cb)
     Appends an event handler.
native public  voidformUpdate(String formID)
     Performs an async form post, updating this element with the response.
native public  voidformUpdate(String formID, String url)
     Performs an async form post, updating this element with the response.
native public  voidformUpdate(String formID, String url, boolean reset, UrlLoadCallback callback)
     Performs an async form post, updating this element with the response.
native public  ExtElementgetEl()
     Get the Element this UpdateManager is bound to.
public static  UpdateManagerinstance(JavaScriptObject jsObj)
    
native public  booleanisUpdating()
     Returns true if an update is in progress.
native public  voidrefresh()
     Refresh the element with the last used url or defaultUrl.
native public static  voidsetDefaultDisableCaching(boolean disableCaching)
     Whether to append unique parameter on get request to disable caching (Defaults to false).
native public static  voidsetDefaultIndicatorText(String indicatorText)
     Text for loading indicator (Defaults to '<div class="loading-indicator">Loading...</div>').
native public static  voidsetDefaultLoadScripts(boolean loadScripts)
     True to process scripts in the output (Defaults to false).
native public static  voidsetDefaultShowLoadIndicator(boolean showLoadIndicator)
     Whether to show indicatorText when loading (Defaults to true).
native public static  voidsetDefaultSslBlankUrl(String sslBlankUrl)
     Blank page URL to use with SSL file uploads (Defaults to "about:blank").
native public static  voidsetDefaultTimeout(int timeout)
     Timeout for requests or form posts in seconds (Defaults to 30 seconds).
native public  voidsetDefaultUrl(String url)
     Set the defaultUrl used for updates.
native public  voidsetDisableCaching(boolean disableCaching)
     True to disable caching.
native public  voidsetIndicatorText(String indicatorText)
     Set the loading indicator text.
native public  voidsetLoadScripts(boolean loadScripts)
     Wheter to load scripts in the contents.
native public  voidsetMethod(Connection.Method method)
     Request method (GET or POST).
native public  voidsetShowIndicator(boolean showIndicator)
     Whether to show the loading indicator.
native public  voidsetTimeout(int timeout)
     Timeout for the request.
native public  voidstartAutoRefresh(int interval)
     Set this element to auto refresh.
native public  voidstartAutoRefresh(int interval, String url)
     Set this element to auto refresh.
native public  voidstartAutoRefresh(int interval, String url, String params, Function cb, boolean refreshNow)
     Set this element to auto refresh.
native public  voidstopAutoRefresh()
     Stop auto refresh on this element.
native public  voidupdate(String url, String params)
     Performs an async request, updating this element with the response.
public  voidupdate(String url, UrlLoadConfig params, UrlLoadCallback callback, boolean discardUrl)
     Performs an async request, updating this element with the response.


Constructor Detail
UpdateManager
public UpdateManager(String elementID)(Code)
Create new UpdateManager directly.
Parameters:
  elementID - the elemetn ID



UpdateManager
public UpdateManager(Element element)(Code)
Create new UpdateManager directly.
Parameters:
  element - the element



UpdateManager
public UpdateManager(ExtElement element)(Code)
Create new UpdateManager directly.
Parameters:
  element - the element



UpdateManager
public UpdateManager(JavaScriptObject jsObj)(Code)




Method Detail
abort
native public void abort()(Code)
Aborts the executing transaction.



addListener
native public void addListener(String eventName, EventCallback cb)(Code)
Appends an event handler.
Parameters:
  eventName - the type of event to append
Parameters:
  cb - the event callback



formUpdate
native public void formUpdate(String formID)(Code)
Performs an async form post, updating this element with the response. If the form has the attribute enctype="multipart/form-data", it assumes it's a file upload. Uses this.sslBlankUrl for SSL file uploads to prevent IE security warning.
Parameters:
  formID - the form ID



formUpdate
native public void formUpdate(String formID, String url)(Code)
Performs an async form post, updating this element with the response. If the form has the attribute enctype="multipart/form-data", it assumes it's a file upload. Uses this.sslBlankUrl for SSL file uploads to prevent IE security warning.
Parameters:
  formID - the form ID
Parameters:
  url - The url to pass the form to. If omitted the action attribute on the form will be used.



formUpdate
native public void formUpdate(String formID, String url, boolean reset, UrlLoadCallback callback)(Code)
Performs an async form post, updating this element with the response. If the form has the attribute enctype="multipart/form-data", it assumes it's a file upload. Uses this.sslBlankUrl for SSL file uploads to prevent IE security warning.
Parameters:
  formID - the form ID
Parameters:
  url - The url to pass the form to. If omitted the action attribute on the form will be used.
Parameters:
  reset - Whether to try to reset the form after the update
Parameters:
  callback - callback when transaction is complete



getEl
native public ExtElement getEl()(Code)
Get the Element this UpdateManager is bound to. the element



instance
public static UpdateManager instance(JavaScriptObject jsObj)(Code)



isUpdating
native public boolean isUpdating()(Code)
Returns true if an update is in progress. true if update in progress



refresh
native public void refresh()(Code)
Refresh the element with the last used url or defaultUrl. If there is no url, it returns immediately.



setDefaultDisableCaching
native public static void setDefaultDisableCaching(boolean disableCaching)(Code)
Whether to append unique parameter on get request to disable caching (Defaults to false).
Parameters:
  disableCaching - true to disable caching



setDefaultIndicatorText
native public static void setDefaultIndicatorText(String indicatorText)(Code)
Text for loading indicator (Defaults to '<div class="loading-indicator">Loading...</div>').
Parameters:
  indicatorText - the indicator text



setDefaultLoadScripts
native public static void setDefaultLoadScripts(boolean loadScripts)(Code)
True to process scripts in the output (Defaults to false).
Parameters:
  loadScripts - true to laod scripts



setDefaultShowLoadIndicator
native public static void setDefaultShowLoadIndicator(boolean showLoadIndicator)(Code)
Whether to show indicatorText when loading (Defaults to true).
Parameters:
  showLoadIndicator - true to show indicator



setDefaultSslBlankUrl
native public static void setDefaultSslBlankUrl(String sslBlankUrl)(Code)
Blank page URL to use with SSL file uploads (Defaults to "about:blank").
Parameters:
  sslBlankUrl - ssl blank url



setDefaultTimeout
native public static void setDefaultTimeout(int timeout)(Code)
Timeout for requests or form posts in seconds (Defaults to 30 seconds).
Parameters:
  timeout - the default timeout



setDefaultUrl
native public void setDefaultUrl(String url)(Code)
Set the defaultUrl used for updates.
Parameters:
  url - the default url



setDisableCaching
native public void setDisableCaching(boolean disableCaching)(Code)
True to disable caching.
Parameters:
  disableCaching - true to disable caching



setIndicatorText
native public void setIndicatorText(String indicatorText)(Code)
Set the loading indicator text.
Parameters:
  indicatorText - the indicator text



setLoadScripts
native public void setLoadScripts(boolean loadScripts)(Code)
Wheter to load scripts in the contents.
Parameters:
  loadScripts - true to laod scripts



setMethod
native public void setMethod(Connection.Method method)(Code)
Request method (GET or POST).
Parameters:
  method - the request method



setShowIndicator
native public void setShowIndicator(boolean showIndicator)(Code)
Whether to show the loading indicator.
Parameters:
  showIndicator - true to show loading indicator



setTimeout
native public void setTimeout(int timeout)(Code)
Timeout for the request.
Parameters:
  timeout - the timeout in seconds



startAutoRefresh
native public void startAutoRefresh(int interval)(Code)
Set this element to auto refresh.
Parameters:
  interval - how often to update in seconds



startAutoRefresh
native public void startAutoRefresh(int interval, String url)(Code)
Set this element to auto refresh.
Parameters:
  interval - how often to update in seconds
Parameters:
  url - The url for this request or a function to call to get the url (Defaults to the last used url)



startAutoRefresh
native public void startAutoRefresh(int interval, String url, String params, Function cb, boolean refreshNow)(Code)
Set this element to auto refresh.
Parameters:
  interval - how often to update in seconds
Parameters:
  url - The url for this request or a function to call to get the url (Defaults to the last used url)
Parameters:
  params - the parameters to pass as a url encoded string "¶m1=1¶m2=2"
Parameters:
  cb - callback when the transaction is complete
Parameters:
  refreshNow - whether to execute the refresh now, or wait the interval



stopAutoRefresh
native public void stopAutoRefresh()(Code)
Stop auto refresh on this element.



update
native public void update(String url, String params)(Code)
Performs an async request, updating this element with the response. If params are specified it uses POST, otherwise it uses GET.
Parameters:
  url - the url for this request
Parameters:
  params - the parameters to pass as a url encoded string "param1=1¶m2=2"



update
public void update(String url, UrlLoadConfig params, UrlLoadCallback callback, boolean discardUrl)(Code)
Performs an async request, updating this element with the response. If params are specified it uses POST, otherwise it uses GET.
Parameters:
  url - the url for this request
Parameters:
  params - the parameters to pass as a url encoded string "param1=1¶m2=2"
Parameters:
  callback - the callback when transaction is complete
Parameters:
  discardUrl - by default when you execute an update the defaultUrl is changed to the last used url. If true, it will not store the url.



Fields inherited from com.gwtext.client.core.JsObject
protected JavaScriptObject jsObj(Code)(Java Doc)

Methods inherited from com.gwtext.client.core.JsObject
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public String[] getProperties()(Code)(Java Doc)
protected boolean isCreated()(Code)(Java Doc)
public void setJsObj(JavaScriptObject jsObj)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.