Source Code Cross Referenced for Grid.java in  » Web-Framework » ThinWire » thinwire » util » 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 » Web Framework » ThinWire » thinwire.util 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:        #IFNDEF ALT_LICENSE
003:                                   ThinWire(R) RIA Ajax Framework
004:                         Copyright (C) 2003-2007 Custom Credit Systems
005:
006:          This library is free software; you can redistribute it and/or modify it under
007:          the terms of the GNU Lesser General Public License as published by the Free
008:          Software Foundation; either version 2.1 of the License, or (at your option) any
009:          later version.
010:
011:          This library is distributed in the hope that it will be useful, but WITHOUT ANY
012:          WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
013:          PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
014:
015:          You should have received a copy of the GNU Lesser General Public License along
016:          with this library; if not, write to the Free Software Foundation, Inc., 59
017:          Temple Place, Suite 330, Boston, MA 02111-1307 USA
018:
019:          Users who would rather have a commercial license, warranty or support should
020:          contact the following company who invented, built and supports the technology:
021:          
022:                        Custom Credit Systems, Richardson, TX 75081, USA.
023:           	            email: info@thinwire.com    ph: +1 (888) 644-6405
024:         	                        http://www.thinwire.com
025:        #ENDIF
026:         [ v1.2_RC2 ] 
027:         */
028:        package thinwire.util;
029:
030:        import java.util.List;
031:
032:        /**
033:         * An interface used to create a local data source. A Grid is a 2 dimensional table of values.
034:         * @author Joshua J. Gertzen
035:         */
036:        public interface Grid<R extends Grid.Row, C extends Grid.Column> {
037:            /**
038:             * A Column is a list of values. The 1st Column of a Grid is the list of values in the Grid's 1st column (i.e. the Column at
039:             * index 0). Element j of Column k in a Grid is element k of Row j.
040:             */
041:            public interface Column extends List<Object> {
042:                /**
043:                 * Get the name of this Column
044:                 * @return the name of this Column
045:                 */
046:                public String getName();
047:
048:                /**
049:                 * Sets the name of this Column.
050:                 * @param name the name of this Column
051:                 */
052:                public void setName(String name);
053:
054:                /**
055:                 * Get the Grid that this Column is part of.
056:                 * @return the Grid that this column is part of.
057:                 */
058:                public Grid getParent();
059:
060:                /**
061:                 * Get the index of this Column.
062:                 * @return the index for this Column
063:                 */
064:                public int getIndex();
065:            }
066:
067:            /**
068:             * A Row is a list of values. The 1st Row of a Grid is the list of values in the Grid's 1st Row (i.e. the Row at index 0).
069:             * Element j of Row k in a Grid is element k of Column j.
070:             */
071:            public interface Row extends List<Object> {
072:
073:                /**
074:                 * Get the field in the specified Column at this Row.
075:                 * @param columnName the specified Column
076:                 * @return the field specified by the current row and the column name passed.
077:                 */
078:                public Object get(String columnName);
079:
080:                /**
081:                 * Set the field in the specified Column at this Row.
082:                 * @param columnName the specified Column
083:                 * @param o the new value to set for the cell.
084:                 * @return the field specified by the current row and the column name passed.
085:                 */
086:                public Object set(String columnName, Object o);
087:
088:                /**
089:                 * Get the Grid this Row is part of.
090:                 * @return the Grid this Row is part of
091:                 */
092:                public Grid getParent();
093:
094:                /**
095:                 * Get the index for this Row.
096:                 * @return the index for this Row
097:                 */
098:                public int getIndex();
099:            }
100:
101:            /**
102:             * Get the Columns belonging to this Grid.
103:             * @return a list of all the columns in the Grid.
104:             */
105:            public List<C> getColumns();
106:
107:            /**
108:             * Get the Rows belonging to this Grid.
109:             * @return a list of all the rows in the Grid.
110:             */
111:            public List<R> getRows();
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.