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


com.gwtext.client.widgets.Panel
   com.gwtext.client.widgets.form.FormPanel

FormPanel
public class FormPanel extends Panel (Code)
FormPanel uses a com.gwtext.client.widgets.layout.FormLayout internally, and that is required for fields and labels to work correctly within the FormPanel's layout. To nest additional layout styles within a FormPanel, you should nest additional Panels or other containers that can provide additional layout functionality. You should not override FormPanel's layout.



Constructor Summary
public  FormPanel()
     Create a new FormPanel.
public  FormPanel(Position labelAlign)
     Create a new FormPanel.
public  FormPanel(JavaScriptObject jsObj)
    

Method Summary
public  voidaddFormListener(FormListener listener)
     Add a Form listener.
native protected  JavaScriptObjectcreate(JavaScriptObject config)
    
protected  JavaScriptObjectgetConfigPrototype()
    
native public  FormgetForm()
     Provides access to the Form which this Panel contains.
public  StringgetXType()
    
public  voidsetBaseParams(UrlParam[] params)
     Parameters to pass with all requests.
public  voidsetButtonAlign(Position buttonAlign)
     Valid values are "left," "center" and "right" (defaults to "center").
public  voidsetErrorReader(Reader errorReader)
     A com.gwtext.client.data.Reader (e.g.
public  voidsetFileUpload(boolean fileUpload)
     Set true if this form is a file upload.
public  voidsetHideLabels(boolean hideLabels)
     Set to true to hide all field labels.
public  voidsetItemCls(String itemCls)
     A CSS class to apply to the x-form-item of fields.
public  voidsetLabelAlign(Position labelAlign)
     Valid values are "left," "top" and "right" (defaults to "left").
public  voidsetLabelWidth(int labelWidth)
     The width of labels.
public  voidsetLayout(ContainerLayout layout)
    
public  voidsetMethod(Connection.Method method)
     The request method to use (GET or POST) for form actions if one isn't supplied in the action options.
public  voidsetMinButtonWidth(int minButtonWidth)
     Minimum width of all buttons in pixels (defaults to 75).
public  voidsetMonitorPoll(int monitorPoll)
     The milliseconds to poll valid state, ignored if monitorValid is not true (defaults to 200).
public  voidsetMonitorValid(boolean monitorValid)
     If true the form monitors its valid state client-side and fires a looping event with that state.
public  voidsetReader(Reader reader)
     A Reader (e.g.
public  voidsetTimeout(int timeout)
     Timeout for form actions in seconds (default is 30 seconds).
public  voidsetTrackResetOnLoad(boolean trackResetOnLoad)
     If set to true, form.reset() resets to the last loaded or setValues() data instead of when the form was first created.
public  voidsetUrl(String url)
     The URL to use for form actions if one isn't supplied in the action options.
public  voidsetWaitMsgTarget(String waitMsgTarget)
     By default wait messages are displayed with com.gwtext.client.widgets.MessageBox.wait(long) .
public  voidsetWaitMsgTarget(boolean waitMsgTarget)
     By default wait messages are displayed with com.gwtext.client.widgets.MessageBox.wait(long) .
native public  voidstartMonitoring()
     Starts monitoring of the valid state of this form.
native public  voidstopMonitoring()
     Stops monitoring of the valid state of this form.


Constructor Detail
FormPanel
public FormPanel()(Code)
Create a new FormPanel.



FormPanel
public FormPanel(Position labelAlign)(Code)
Create a new FormPanel.
Parameters:
  labelAlign - the label alignment



FormPanel
public FormPanel(JavaScriptObject jsObj)(Code)




Method Detail
addFormListener
public void addFormListener(FormListener listener)(Code)
Add a Form listener. Although you can add this listener on the com.gwtext.client.widgets.form.Form directly, this method is useful to call when you would like to add a FormListener prior to the FormPaanel being rendered.
Parameters:
  listener - the form listener



create
native protected JavaScriptObject create(JavaScriptObject config)(Code)



getConfigPrototype
protected JavaScriptObject getConfigPrototype()(Code)



getForm
native public Form getForm()(Code)
Provides access to the Form which this Panel contains. Note that this method must be called only after the FormPanel has been rendered. Returns null if called before the FormPanel has been rendered.. If you need to add a listener to he form prior to the FormPanel being rendered, call FormPanel.addFormListener(com.gwtext.client.widgets.form.event.FormListener) instead. the underlying Form, or null if FormPanel not rendered



getXType
public String getXType()(Code)



setBaseParams
public void setBaseParams(UrlParam[] params) throws IllegalStateException(Code)
Parameters to pass with all requests. This effectively acts like Form hidden fields.
Parameters:
  params - the base params
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setButtonAlign
public void setButtonAlign(Position buttonAlign) throws IllegalStateException(Code)
Valid values are "left," "center" and "right" (defaults to "center").
Parameters:
  buttonAlign - form button position
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setErrorReader
public void setErrorReader(Reader errorReader) throws IllegalStateException(Code)
A com.gwtext.client.data.Reader (e.g. com.gwtext.client.data.XmlReader ) to be used to read data when reading validation errors on "submit" actions. This is completely optional as there is built-in support for processing JSON.
Parameters:
  errorReader - the error reader
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setFileUpload
public void setFileUpload(boolean fileUpload) throws IllegalStateException(Code)
Set true if this form is a file upload.
Parameters:
  fileUpload - true if file upload
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHideLabels
public void setHideLabels(boolean hideLabels) throws IllegalStateException(Code)
Set to true to hide all field labels.
Parameters:
  hideLabels - true to hide field labels
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setItemCls
public void setItemCls(String itemCls) throws IllegalStateException(Code)
A CSS class to apply to the x-form-item of fields. This property cascades to child containers.
Parameters:
  itemCls - CSS class
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setLabelAlign
public void setLabelAlign(Position labelAlign) throws IllegalStateException(Code)
Valid values are "left," "top" and "right" (defaults to "left"). This property cascades to child containers if not set.
Parameters:
  labelAlign - label alignment
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setLabelWidth
public void setLabelWidth(int labelWidth) throws IllegalStateException(Code)
The width of labels. This property cascades to child containers.
Parameters:
  labelWidth - the label width
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setLayout
public void setLayout(ContainerLayout layout)(Code)



setMethod
public void setMethod(Connection.Method method) throws IllegalStateException(Code)
The request method to use (GET or POST) for form actions if one isn't supplied in the action options.
Parameters:
  method - the request method
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMinButtonWidth
public void setMinButtonWidth(int minButtonWidth) throws IllegalStateException(Code)
Minimum width of all buttons in pixels (defaults to 75).
Parameters:
  minButtonWidth - min button width
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMonitorPoll
public void setMonitorPoll(int monitorPoll) throws IllegalStateException(Code)
The milliseconds to poll valid state, ignored if monitorValid is not true (defaults to 200).
Parameters:
  monitorPoll - the monitor poll in milliseconds
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMonitorValid
public void setMonitorValid(boolean monitorValid) throws IllegalStateException(Code)
If true the form monitors its valid state client-side and fires a looping event with that state. This is required to bind buttons to the valid state using the config value formBind:true on the button.
Parameters:
  monitorValid - true to enable monitoring
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setReader
public void setReader(Reader reader) throws IllegalStateException(Code)
A Reader (e.g. com.gwtext.client.data.XmlReader ) to be used to read data when executing "load" actions. This is optional as there is built-in support for processing JSON.
Parameters:
  reader - the load Reader
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTimeout
public void setTimeout(int timeout) throws IllegalStateException(Code)
Timeout for form actions in seconds (default is 30 seconds).
Parameters:
  timeout - timeout in seconds
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTrackResetOnLoad
public void setTrackResetOnLoad(boolean trackResetOnLoad) throws IllegalStateException(Code)
If set to true, form.reset() resets to the last loaded or setValues() data instead of when the form was first created.
Parameters:
  trackResetOnLoad - true to track reset on load
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setUrl
public void setUrl(String url) throws IllegalStateException(Code)
The URL to use for form actions if one isn't supplied in the action options.
Parameters:
  url - the url
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setWaitMsgTarget
public void setWaitMsgTarget(String waitMsgTarget) throws IllegalStateException(Code)
By default wait messages are displayed with com.gwtext.client.widgets.MessageBox.wait(long) . You can target a specific element by passing its id.
Parameters:
  waitMsgTarget - ID of the Element to mask
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setWaitMsgTarget
public void setWaitMsgTarget(boolean waitMsgTarget) throws IllegalStateException(Code)
By default wait messages are displayed with com.gwtext.client.widgets.MessageBox.wait(long) . You can mask the form itself by passing in true.
Parameters:
  waitMsgTarget - true to mask the form
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



startMonitoring
native public void startMonitoring()(Code)
Starts monitoring of the valid state of this form. Usually this is done by passing the config option "monitorValid"



stopMonitoring
native public void stopMonitoring()(Code)
Stops monitoring of the valid state of this form.



Methods inherited from com.gwtext.client.widgets.Panel
public void addButton(Button button)(Code)(Java Doc)
native public void addListener(PanelListener listener)(Code)(Java Doc)
public void addTool(Tool tool) throws IllegalStateException(Code)(Java Doc)
public void collapse()(Code)(Java Doc)
public void collapse(boolean animate)(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
public void expand()(Code)(Java Doc)
public void expand(boolean animate)(Code)(Java Doc)
public String getBaseCls()(Code)(Java Doc)
native public ExtElement getBody()(Code)(Java Doc)
public String getBodyStyle()(Code)(Java Doc)
native public ExtElement getBodyWrap()(Code)(Java Doc)
native public Toolbar getBottomToolbar()(Code)(Java Doc)
public boolean getCollapseFirst()(Code)(Java Doc)
public String getCollapsedCls()(Code)(Java Doc)
protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public boolean getFloating()(Code)(Java Doc)
native public ExtElement getFooter()(Code)(Java Doc)
native public int getFrameHeight()(Code)(Java Doc)
native public int getFrameWidth()(Code)(Java Doc)
native public ExtElement getHeader()(Code)(Java Doc)
public String getHtml()(Code)(Java Doc)
public String getIconCls()(Code)(Java Doc)
native public int getInnerHeight()(Code)(Java Doc)
native public int getInnerWidth()(Code)(Java Doc)
public int getMinButtonWidth() throws IllegalStateException(Code)(Java Doc)
public int getShadowOffset()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
native public Toolbar getTopToolbar()(Code)(Java Doc)
native public UpdateManager getUpdateManager()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public boolean isAnimCollapse()(Code)(Java Doc)
public boolean isAutoScroll()(Code)(Java Doc)
public boolean isBodyBorder()(Code)(Java Doc)
public boolean isBorder()(Code)(Java Doc)
public boolean isClosable()(Code)(Java Doc)
public boolean isCollapsed()(Code)(Java Doc)
public boolean isCollapsible()(Code)(Java Doc)
public boolean isFrame()(Code)(Java Doc)
public boolean isHeader()(Code)(Java Doc)
public boolean isHeaderAsText()(Code)(Java Doc)
public boolean isHideCollapseTool()(Code)(Java Doc)
public boolean isMaskDisabled()(Code)(Java Doc)
public boolean isShadow()(Code)(Java Doc)
public boolean isShim()(Code)(Java Doc)
public boolean isTitleCollapse()(Code)(Java Doc)
public void load(String url)(Code)(Java Doc)
public void load(String url, UrlParam[] params, UrlLoadCallback callback, boolean loadScripts)(Code)(Java Doc)
public void setAnimCollapse(boolean animCollapse)(Code)(Java Doc)
public void setAutoLoad(String url)(Code)(Java Doc)
public void setAutoLoad(String url, UrlLoadConfig loadConfig) throws IllegalStateException(Code)(Java Doc)
public void setAutoScroll(boolean autoScroll) throws IllegalStateException(Code)(Java Doc)
public void setBaseCls(String baseCls) throws IllegalStateException(Code)(Java Doc)
public void setBodyBorder(boolean bodyBorder) throws IllegalStateException(Code)(Java Doc)
public void setBodyStyle(String bodyStyle) throws IllegalStateException(Code)(Java Doc)
public void setBorder(boolean border) throws IllegalStateException(Code)(Java Doc)
public void setBottomToolbar(Toolbar toolbar)(Code)(Java Doc)
public void setBottomToolbar(Button button) throws IllegalStateException(Code)(Java Doc)
public void setBottomToolbar(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
public void setButtonAlign(Position buttonAlign) throws IllegalStateException(Code)(Java Doc)
public void setButtons(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
public void setClosable(boolean closable) throws IllegalStateException(Code)(Java Doc)
public void setCollapseFirst(boolean collapseFirst) throws IllegalStateException(Code)(Java Doc)
public void setCollapsed(boolean collapsed)(Code)(Java Doc)
public void setCollapsedCls(String collapsedCls) throws IllegalStateException(Code)(Java Doc)
public void setCollapsible(boolean collapsible) throws IllegalStateException(Code)(Java Doc)
public void setContentEl(Element contentEl) throws IllegalStateException(Code)(Java Doc)
public void setDraggable(boolean draggable) throws IllegalStateException(Code)(Java Doc)
public void setFloating(boolean floating) throws IllegalStateException(Code)(Java Doc)
public void setFooter(boolean footer) throws IllegalStateException(Code)(Java Doc)
public void setFrame(boolean frame) throws IllegalStateException(Code)(Java Doc)
public void setHeader(boolean header) throws IllegalStateException(Code)(Java Doc)
public void setHeaderAsText(boolean headerAsText)(Code)(Java Doc)
public void setHideCollapseTool(boolean hideCollapseTool) throws IllegalStateException(Code)(Java Doc)
public void setHtml(String html)(Code)(Java Doc)
public void setIconCls(String iconCls)(Code)(Java Doc)
public void setMargins(int margin) throws IllegalStateException(Code)(Java Doc)
public void setMargins(int top, int left, int right, int bottom) throws IllegalStateException(Code)(Java Doc)
public void setMaskDisabled(boolean maskDisabled) throws IllegalStateException(Code)(Java Doc)
public void setMinButtonWidth(int minButtonWidth) throws IllegalStateException(Code)(Java Doc)
public void setPaddings(int padding) throws IllegalStateException(Code)(Java Doc)
public void setPaddings(int top, int left, int right, int bottom) throws IllegalStateException(Code)(Java Doc)
public void setShadow(boolean shadow)(Code)(Java Doc)
public void setShadow(Shadow.Type shadow)(Code)(Java Doc)
public void setShadowOffset(int shadowOffset) throws IllegalStateException(Code)(Java Doc)
public void setShim(boolean shim) throws IllegalStateException(Code)(Java Doc)
public void setStyleName(String style)(Code)(Java Doc)
public void setTitle(String title, String iconCls)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setTitleCollapse(boolean titleCollapse) throws IllegalStateException(Code)(Java Doc)
public void setTools(Tool[] tools) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Toolbar toolbar) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Button button) throws IllegalStateException(Code)(Java Doc)
public void setTopToolbar(Button[] buttons) throws IllegalStateException(Code)(Java Doc)
native public void toggleCollapse()(Code)(Java Doc)
native public void toggleCollapse(boolean animate)(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.