Source Code Cross Referenced for FieldSet.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * GWT-Ext Widget Library
003:         * Copyright(c) 2007-2008, GWT-Ext.
004:         * licensing@gwt-ext.com
005:         * 
006:         * http://www.gwt-ext.com/license
007:         */
008:
009:        package com.gwtext.client.widgets.form;
010:
011:        import com.google.gwt.core.client.JavaScriptObject;
012:        import com.gwtext.client.widgets.Panel;
013:        import com.gwtext.client.widgets.layout.ContainerLayout;
014:
015:        /**
016:         * Creates a fieldset container for layout and rendering of fields in a {@link Form}.
017:         *
018:         */
019:        public class FieldSet extends Panel {
020:
021:            private static JavaScriptObject configPrototype;
022:
023:            static {
024:                init();
025:            }
026:
027:            private static native void init()/*-{
028:                    var c = new $wnd.Ext.form.FieldSet();
029:                    @com.gwtext.client.widgets.form.FieldSet::configPrototype = c.initialConfig;
030:                }-*/;
031:
032:            protected JavaScriptObject getConfigPrototype() {
033:                return configPrototype;
034:            }
035:
036:            public String getXType() {
037:                return "fieldset";
038:            }
039:
040:            /**
041:             * Creates a new FieldSet.
042:             */
043:            public FieldSet() {
044:                setAutoHeight(true);
045:            }
046:
047:            public FieldSet(String title) {
048:                setTitle(title);
049:                setAutoHeight(true);
050:            }
051:
052:            public FieldSet(String title, int labelWidth) {
053:                setTitle(title);
054:                setLabelWidth(labelWidth);
055:                setAutoHeight(true);
056:            }
057:
058:            public FieldSet(JavaScriptObject jsObj) {
059:                super (jsObj);
060:            }
061:
062:            protected native JavaScriptObject create(JavaScriptObject jsObj) /*-{
063:                   return new $wnd.Ext.form.FieldSet(jsObj);
064:               }-*/;
065:
066:            // --- config properties ---
067:
068:            /** 
069:             * The base CSS class applied to the fieldset (defaults to 'x-fieldset').
070:             *
071:             * @param baseCls the base CSS class applied to the fieldset (defaults to 'x-fieldset').
072:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
073:             */
074:            public void setBaseCls(String baseCls) throws IllegalStateException {
075:                setAttribute("baseCls", baseCls, true);
076:            }
077:
078:            /**
079:             *  The name to assign to the fieldset's checkbox if checkboxToggle = true (defaults to '[checkbox id]-checkbox').
080:             *
081:             * @param checkboxName the name to assign to the fieldset's checkbox if checkboxToggle = true (defaults to '[checkbox id]-checkbox').
082:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
083:             */
084:            public void setCheckboxName(String checkboxName)
085:                    throws IllegalStateException {
086:                setAttribute("checkboxName", checkboxName, true);
087:            }
088:
089:            /**
090:             * True to render a checkbox into the fieldset frame just in front of the legend (defaults to false). The fieldset
091:             * will be expanded or collapsed when the checkbox is toggled.
092:             *
093:             * @param checkboxToggle true to render a checkbox into the fieldset frame just in front of the legend (defaults to false).
094:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
095:             */
096:            public void setCheckboxToggle(boolean checkboxToggle)
097:                    throws IllegalStateException {
098:                setAttribute("checkboxToggle", checkboxToggle, true);
099:            }
100:
101:            /**
102:             * A css class to apply to the x-form-item of fields. This property cascades to child containers.
103:             *
104:             * @param itemCls a css class to apply to the x-form-item of fields. This property cascades to child containers.
105:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
106:             */
107:            public void setItemCls(String itemCls) throws IllegalStateException {
108:                setAttribute("itemCls", itemCls, true);
109:            }
110:
111:            /**
112:             * The width of labels. This property cascades to child containers.
113:             *
114:             * @param labelWidth The width of labels. This property cascades to child containers.
115:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
116:             */
117:            public void setLabelWidth(int labelWidth)
118:                    throws IllegalStateException {
119:                setAttribute("labelWidth", labelWidth, true);
120:            }
121:
122:            /**
123:             * The {@link com.gwtext.client.widgets.Container} layout to use inside the fieldset (defaults to {@link com.gwtext.client.widgets.layout.FormLayout}).
124:             *
125:             * @param layout the container layout to use inside the fieldset
126:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
127:             */
128:            public void setLayout(ContainerLayout layout)
129:                    throws IllegalStateException {
130:                setAttribute("layout", layout.getJsObj(), true);
131:            }
132:
133:            /**
134:             * The fieldset legend text.
135:             *
136:             * @param legend the fieldset legend text.
137:             * @throws IllegalStateException this property cannot be changed after the Component has been rendered
138:             */
139:            public void setLegend(String legend) throws IllegalStateException {
140:                setAttribute("legend", legend, true);
141:            }
142:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.