Source Code Cross Referenced for TableLayoutData.java in  » Ajax » MyGWT » net » mygwt » ui » client » widget » layout » 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 » MyGWT » net.mygwt.ui.client.widget.layout 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * MyGWT Widget Library
003:         * Copyright(c) 2007, MyGWT.
004:         * licensing@mygwt.net
005:         * 
006:         * http://mygwt.net/license
007:         */
008:        package net.mygwt.ui.client.widget.layout;
009:
010:        /**
011:         * Layout data for <code>TableLayout</code>.
012:         */
013:        public class TableLayoutData {
014:
015:            /**
016:             * Left horizontal alignment.
017:             */
018:            public static final String ALIGN_LEFT = "left";
019:
020:            /**
021:             * Center horizontal alignment.
022:             */
023:            public static final String ALIGN_CENTER = "center";
024:
025:            /**
026:             * Right horizontal alignment.
027:             */
028:            public static final String ALIGN_RIGHT = "right";
029:
030:            /**
031:             * Left vertical alignment.
032:             */
033:            public static final String ALIGN_TOP = "top";
034:
035:            /**
036:             * Center vertical alignment.
037:             */
038:            public static final String ALIGN_MIDDLE = "middle";
039:
040:            /**
041:             * Right vertical alignment.
042:             */
043:            public static final String ALIGN_BOTTOM = "bottom";
044:
045:            int colspan = 1;
046:            int padding;
047:            int margin;
048:            String style;
049:            String align;
050:            String valign;
051:            String width;
052:            String height;
053:
054:            /**
055:             * Creates a new table layout instance.
056:             */
057:            public TableLayoutData() {
058:
059:            }
060:
061:            /**
062:             * Creates a new table layout instance with the given colspan.
063:             * 
064:             * @param colspan the colspan
065:             */
066:            public TableLayoutData(int colspan) {
067:                this .colspan = colspan;
068:            }
069:
070:            /**
071:             * Returns the cell's alignment.
072:             * 
073:             * @return the alignment
074:             */
075:            public String getAlign() {
076:                return align;
077:            }
078:
079:            /**
080:             * Returns the number of columns
081:             * 
082:             * @return the col span
083:             */
084:            public int getColspan() {
085:                return colspan;
086:            }
087:
088:            /**
089:             * Returns the cell's height.
090:             * 
091:             * @return the cell height
092:             */
093:            public String getHeight() {
094:                return height;
095:            }
096:
097:            /**
098:             * Sets the cell's margin.
099:             * 
100:             * @return the margin
101:             */
102:            public int getMargin() {
103:                return margin;
104:            }
105:
106:            /**
107:             * Returns the cell's padding.
108:             * 
109:             * @return the padding
110:             */
111:            public int getPadding() {
112:                return padding;
113:            }
114:
115:            /**
116:             * Returns the cell's style.
117:             * 
118:             * @return the cell style
119:             */
120:            public String getStyle() {
121:                return style;
122:            }
123:
124:            /**
125:             * Returns the cell's vertical alignment.
126:             * 
127:             * @return the vertical aligment
128:             */
129:            public String getValign() {
130:                return valign;
131:            }
132:
133:            /**
134:             * Returns the cell's width.
135:             * 
136:             * @return the cell's width
137:             */
138:            public String getWidth() {
139:                return width;
140:            }
141:
142:            /**
143:             * Sets the cell's horiztonal alignment.
144:             * 
145:             * @param align the alignment
146:             */
147:            public void setAlign(String align) {
148:                this .align = align;
149:            }
150:
151:            /**
152:             * Sets the number of columns to span. Default value is 1.
153:             * 
154:             * @param colspan the col span
155:             */
156:            public void setColspan(int colspan) {
157:                this .colspan = colspan;
158:            }
159:
160:            /**
161:             * Sets the cell's height.
162:             * 
163:             * @param height the cell height
164:             */
165:            public void setHeight(String height) {
166:                this .height = height;
167:            }
168:
169:            /**
170:             * Returns the cell's margin. Default value is 0.
171:             * 
172:             * @param margin the margin
173:             */
174:            public void setMargin(int margin) {
175:                this .margin = margin;
176:            }
177:
178:            /**
179:             * Sets the cell's padding. Default value is 0.
180:             * 
181:             * @param padding the cell padding
182:             */
183:            public void setPadding(int padding) {
184:                this .padding = padding;
185:            }
186:
187:            /**
188:             * Sets the cell's style.
189:             * 
190:             * @param style the style
191:             */
192:            public void setStyle(String style) {
193:                this .style = style;
194:            }
195:
196:            /**
197:             * Sets the cell's vertical alignment.
198:             * 
199:             * @param valign the vertical alignment
200:             */
201:            public void setVAlign(String valign) {
202:                this .valign = valign;
203:            }
204:
205:            /**
206:             * Sets the cell's width.
207:             * 
208:             * @param width the width
209:             */
210:            public void setWidth(String width) {
211:                this.width = width;
212:            }
213:
214:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.