Java Doc for DefaultDataGridStateCodec.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » databinding » datagrid » runtime » config » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.databinding.datagrid.runtime.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.netui.databinding.datagrid.api.DataGridStateCodec
      org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridStateCodec

DefaultDataGridStateCodec
class DefaultDataGridStateCodec extends DataGridStateCodec (Code)

Derault implementation of the DataGridStateCodec abstract base class. This class provides support for obtaining a DataGridState object which contains "current" state for a data grid and will be used when rendering a data grid.



Field Summary
final static  StringPARAM_KEY_FILTER
    
final static  StringPARAM_KEY_PAGE_SIZE
    
final static  StringPARAM_KEY_ROW
    
final static  StringPARAM_KEY_SORT
    

Constructor Summary
 DefaultDataGridStateCodec(DataGridConfig config)
     Package protected constructor; this class should only be constructed via the DefaultDataGridConfig class.

Method Summary
 MapbuildFilterParamMap(List filters)
     Build the filter parameter map given this list of Filter instances.
 MapbuildPageParamMap(Integer row, Integer pageSize)
     Build the URL parameter map given a current row and page size.
 MapbuildSortParamMap(List sorts)
     Build the sort parameter map given this list of Sort instances.
 StringencodeFilters(List filters)
    
 StringencodePageSize(int pageSize)
    
 StringencodeRow(int row)
    
 StringencodeSorts(List sorts)
    
public  DataGridStategetDataGridState()
     Get the current DataGridState .
public  DataGridURLBuildergetDataGridURLBuilder()
     Get the DataGridURLBuilder for this state codec.
 MapgetExistingParams()
     Returns the existing query parameters map.
public  voidsetDataGridState(DataGridState state)
    

Set the DataGridState object.


Field Detail
PARAM_KEY_FILTER
final static String PARAM_KEY_FILTER(Code)



PARAM_KEY_PAGE_SIZE
final static String PARAM_KEY_PAGE_SIZE(Code)



PARAM_KEY_ROW
final static String PARAM_KEY_ROW(Code)



PARAM_KEY_SORT
final static String PARAM_KEY_SORT(Code)




Constructor Detail
DefaultDataGridStateCodec
DefaultDataGridStateCodec(DataGridConfig config)(Code)
Package protected constructor; this class should only be constructed via the DefaultDataGridConfig class.
Parameters:
  config - the data grid config object used to manufacture a state object




Method Detail
buildFilterParamMap
Map buildFilterParamMap(List filters)(Code)
Build the filter parameter map given this list of Filter instances. Note, the query parameters returned here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters:
  filters - the filters a map containing the filter query parameters



buildPageParamMap
Map buildPageParamMap(Integer row, Integer pageSize)(Code)
Build the URL parameter map given a current row and page size. Note, the query parameters returned here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters:
  row - the current row
Parameters:
  pageSize - the current page size a map containing the pager query parameters



buildSortParamMap
Map buildSortParamMap(List sorts)(Code)
Build the sort parameter map given this list of Sort instances. Note, the query parameters returned here are not URL encoded. The map contains key / value pairs as (String, String[]).
Parameters:
  sorts - the sorts a map containing the sort query parameters



encodeFilters
String encodeFilters(List filters)(Code)



encodePageSize
String encodePageSize(int pageSize)(Code)



encodeRow
String encodeRow(int row)(Code)



encodeSorts
String encodeSorts(List sorts)(Code)



getDataGridState
public DataGridState getDataGridState()(Code)
Get the current DataGridState . the data grid state



getDataGridURLBuilder
public DataGridURLBuilder getDataGridURLBuilder()(Code)
Get the DataGridURLBuilder for this state codec. The URL builder can be used to build URLs managing the DataGridState obtainable via DefaultDataGridStateCodec.getDataGridState() . the data grid URL builder



getExistingParams
Map getExistingParams()(Code)
Returns the existing query parameters map. This is a clone that can be augmented by client code but the existing parameters are not changed.



setDataGridState
public void setDataGridState(DataGridState state)(Code)

Set the DataGridState object. This mechanism provides callers a way to explicitly set the DataGridState . This useful when a grid's state needs to be provided from an outside source and attached so it is obtainable from the data grid via the usual mechanism.


Parameters:
  state - the new data grid state



Methods inherited from org.apache.beehive.netui.databinding.datagrid.api.DataGridStateCodec
abstract public DataGridState getDataGridState()(Code)(Java Doc)
abstract public DataGridURLBuilder getDataGridURLBuilder()(Code)(Java Doc)
public String getGridName()(Code)(Java Doc)
public ServletRequest getServletRequest()(Code)(Java Doc)
abstract public void setDataGridState(DataGridState state)(Code)(Java Doc)
public void setGridName(String gridName)(Code)(Java Doc)
public void setServletRequest(ServletRequest request)(Code)(Java Doc)

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.