Java Doc for TableModel.java in  » J2EE » Jaffa » org » jaffa » presentation » portlet » widgets » model » 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 » J2EE » Jaffa » org.jaffa.presentation.portlet.widgets.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jaffa.presentation.portlet.widgets.model.WidgetModel
      org.jaffa.presentation.portlet.widgets.model.TableModel

TableModel
public class TableModel extends WidgetModel (Code)
Model for the Table widget.

Inner Class :public class Column



Method Summary
public  voidaddColumn(String name, String dataType)
     Add a column to the Table.
public  voidaddRow(List fields)
     Add a row to the table.
public  voidaddRow(int position, List fields)
     Add a row to the table.
public  voidclearColumns()
    
public  voidclearRows()
    
public  StringgetColumnDataType(String columnName)
     Returns the dataType for the columnName.
public  ListgetColumnNames()
     Returns a List of columnNames, in the order of entry.
public  ListgetColumns()
     Returns a List of TableModel.Column objects, in the order of entry.
public  ListgetRow(int rowNum)
     Returns a List of field values in column order for the input row number. An IndexOutOfBoundsException will be thrown in case the rowNum is senseless.
Parameters:
  rowNum - The index of the row to be retrieved.
public  ListgetRows()
     Returns a Collection, where each element is a List of fields, in the order of the columns.
public  ListgetSelectedRows()
     Returns a List of selected rows, where each row is a List of field values.
public  ObjectgetValue(String columnName, int rowNum)
     Return a field value from a given row. A null will be returned in case the columnName does not exist An IndexOutOfBoundsException will be thrown in case the rowNum is senseless.
Parameters:
  columnName - The name of the column.
Parameters:
  rowNum - The index of the row to be retrieved.
public  booleanisModelChanged()
     See if model has changed, in the process reset the changed flag.
public  voidsetSelectedRows(List rowNums)
     Sets the selected rows.



Method Detail
addColumn
public void addColumn(String name, String dataType)(Code)
Add a column to the Table. An exisiting column by the same name will be over-written.
Parameters:
  name - The name of the column.
Parameters:
  dataType - The data type of the column.



addRow
public void addRow(List fields)(Code)
Add a row to the table. A ColumnMismatchRuntimeException is thrown if the no. of fields does not equal the no. of columns.
Parameters:
  fields - The List of values.



addRow
public void addRow(int position, List fields)(Code)
Add a row to the table. A ColumnMismatchRuntimeException is thrown if the no. of fields does not equal the no. of columns.
Parameters:
  position - The index of the row.
Parameters:
  fields - The List of values.



clearColumns
public void clearColumns()(Code)
Clear out all the columns



clearRows
public void clearRows()(Code)
Clear out all the rows



getColumnDataType
public String getColumnDataType(String columnName)(Code)
Returns the dataType for the columnName. A null will be returned in case no such column exists.
Parameters:
  columnName - The name of the column. the dataType for the column.



getColumnNames
public List getColumnNames()(Code)
Returns a List of columnNames, in the order of entry. a List of columnNames, in the order of entry.



getColumns
public List getColumns()(Code)
Returns a List of TableModel.Column objects, in the order of entry. a List of TableModel.Column objects, in the order of entry.



getRow
public List getRow(int rowNum)(Code)
Returns a List of field values in column order for the input row number. An IndexOutOfBoundsException will be thrown in case the rowNum is senseless.
Parameters:
  rowNum - The index of the row to be retrieved. a List of field values in column order for the input row number.



getRows
public List getRows()(Code)
Returns a Collection, where each element is a List of fields, in the order of the columns. a Collection, where each element is a List of fields, in the order of the columns.



getSelectedRows
public List getSelectedRows()(Code)
Returns a List of selected rows, where each row is a List of field values. a List of selected rows, where each row is a List of field values.



getValue
public Object getValue(String columnName, int rowNum)(Code)
Return a field value from a given row. A null will be returned in case the columnName does not exist An IndexOutOfBoundsException will be thrown in case the rowNum is senseless.
Parameters:
  columnName - The name of the column.
Parameters:
  rowNum - The index of the row to be retrieved. a field value from a given row.



isModelChanged
public boolean isModelChanged()(Code)
See if model has changed, in the process reset the changed flag. true if the model was changed.



setSelectedRows
public void setSelectedRows(List rowNums)(Code)
Sets the selected rows. This will first reset the selected status of all rows.
Parameters:
  rowNums - A List of row numbers to be marked as selected.




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.