Java Doc for SortableTable.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » brms » client » table » 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 » Rule Engine » drolls Rule Engine » org.drools.brms.client.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.drools.brms.client.table.SortableTable

SortableTable
public class SortableTable extends Grid implements TableListener(Code)
A sortable table widget. Extends the GWT Grid widget. (more performant then FlexTable).


Field Summary
public static  StringstyleEvenRow
    
public static  StringstyleList
    
public static  StringstyleListHeader
    
public static  StringstyleSelectedRow
    

Constructor Summary
public  SortableTable(int rows, int cols)
     Create a sortable table widget, of the specified proportions. The number of rows does NOT include the header.

Method Summary
public static  SortableTablecreateTableWidget(DataModel data, String[] header, int fillRows, boolean hasIcons)
     This will return a sortable table ready to go.
protected  voiddrawTable()
    
public  StringgetBlankImage()
    
public  intgetRowNumbers()
    
public  StringgetSelectedKey()
     This will return the key of the selected row.
public  intgetSelectedRow()
    
public  StringgetSortAscImage()
    
public  StringgetSortDescImage()
    
public  voidonCellClicked(SourcesTableEvents sender, int row, int col)
     When a cell is clicked, the selected row is styled, and the currently selected row is remembered.
public  voidsetBlankImage(String blankImage)
    
public  voidsetColumnHeader(String name, int index)
     Adds a header, which will be at the zero index in the table.
public  voidsetHiddenColumn(int colIndex)
     This can be used to ensure that a column is invisible. This will also include the header (first row) You would use this to allow a "key" column to be stored with the data. For example, a UUID for a rule.
public  voidsetRowNumbers(int rowNumbers)
    
public  voidsetSortAscImage(String sortAscImage)
    
public  voidsetSortDescImgage(String sortDescImgage)
    
public  voidsetValue(int row, int col, Comparable val, Widget w)
     This will store the value in the x,y position.
public  voidsort(int columnIndex)
    

Field Detail
styleEvenRow
public static String styleEvenRow(Code)



styleList
public static String styleList(Code)



styleListHeader
public static String styleListHeader(Code)
The stylez



styleSelectedRow
public static String styleSelectedRow(Code)




Constructor Detail
SortableTable
public SortableTable(int rows, int cols)(Code)
Create a sortable table widget, of the specified proportions. The number of rows does NOT include the header.




Method Detail
createTableWidget
public static SortableTable createTableWidget(DataModel data, String[] header, int fillRows, boolean hasIcons)(Code)
This will return a sortable table ready to go.
Parameters:
  rows - The data.
Parameters:
  header - Headers.
Parameters:
  fillRows - The number of rows to pad out, if needed
Parameters:
  hasIcons - A SortableTable ready to go !



drawTable
protected void drawTable()(Code)



getBlankImage
public String getBlankImage()(Code)



getRowNumbers
public int getRowNumbers()(Code)



getSelectedKey
public String getSelectedKey()(Code)
This will return the key of the selected row.



getSelectedRow
public int getSelectedRow()(Code)
The selected row index.



getSortAscImage
public String getSortAscImage()(Code)



getSortDescImage
public String getSortDescImage()(Code)



onCellClicked
public void onCellClicked(SourcesTableEvents sender, int row, int col)(Code)
When a cell is clicked, the selected row is styled, and the currently selected row is remembered. If it was in-fact a header that was clicked, then it will sort the data and redisplay the grid.



setBlankImage
public void setBlankImage(String blankImage)(Code)



setColumnHeader
public void setColumnHeader(String name, int index)(Code)
Adds a header, which will be at the zero index in the table.



setHiddenColumn
public void setHiddenColumn(int colIndex)(Code)
This can be used to ensure that a column is invisible. This will also include the header (first row) You would use this to allow a "key" column to be stored with the data. For example, a UUID for a rule.



setRowNumbers
public void setRowNumbers(int rowNumbers)(Code)



setSortAscImage
public void setSortAscImage(String sortAscImage)(Code)



setSortDescImgage
public void setSortDescImgage(String sortDescImgage)(Code)



setValue
public void setValue(int row, int col, Comparable val, Widget w)(Code)
This will store the value in the x,y position. Values must be comparable for sorting to work of course. Start with a row index of 1 otherwise as zero means header.



sort
public void sort(int columnIndex)(Code)
This performs the sorting



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.