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


org.apache.beehive.netui.tags.AbstractSimpleTag
   org.apache.beehive.netui.tags.databinding.datagrid.ConfigurePager

ConfigurePager
public class ConfigurePager extends AbstractSimpleTag (Code)

The configurePager tag is used to parameterize the data used to render a data grid's pager. This tag should be used inside of a <netui-data:dataGrid> tag. The tag supports adding a custom PagerRenderer via the ConfigurePager.setPagerRendererClass(String) , overriding the default page size for a data grid via the ConfigurePager.setDefaultPageSize(Integer) attribute, and setting the current data grid's page size via the ConfigurePager.setPageSize(int) attribute. This tag produces no output and does not evaluate its body.

PagerRendererConfigurePager.setPagerRendererClass(String)ConfigurePager.setDefaultPageSize(Integer)ConfigurePager.setPageSize(int)




Method Summary
public  voiddoTag()
     Execute the ConfigurePager tag.
public  StringgetTagName()
     The name of this tag; this value is used for error reporting.
public  voidsetDefaultPageSize(Integer defaultPageSize)
     Set the default page size for the data grid.
public  voidsetDisableDefaultPager(boolean disableDefaultPager)
     Sets the value of an attribute that enables or disables rendering the data grid's default pager. When this value is set to false, the data grid will not render its pager and rendering is left to the page author.
public  voidsetPageAction(String pageAction)
     Set the action used to perform paging.
public  voidsetPageHref(String pageHref)
     Set the HREF used to perform paging.
public  voidsetPageSize(int pageSize)
     Set the page size for the current data grid.
public  voidsetPagerFormat(String pagerFormat)
     Set the appearance of the pager rendered by the data grid.
public  voidsetPagerRendererClass(String pagerRendererClass)
     Set a Java class name to create a PagerRenderer used to render a data grid's pager.



Method Detail
doTag
public void doTag() throws JspException(Code)
Execute the ConfigurePager tag. When the ConfigurePager tag runs, it applies its tag attributes onto a DataGridTagModel state object which is used when the data grid renders its pager.
throws:
  JspException - when errors occur when processing this tag's attribute values



getTagName
public String getTagName()(Code)
The name of this tag; this value is used for error reporting. the String name of this tag



setDefaultPageSize
public void setDefaultPageSize(Integer defaultPageSize)(Code)
Set the default page size for the data grid. The grid has a default page size that is used when no other page size is specified; this value is PagerModel.DEFAULT_PAGE_SIZE . This value overrides that default so that the normal rendering of such a data grid is change in the absence of an override provided by the ConfigurePager.setPageSize(int) attribute. PagerModel.DEFAULT_PAGE_SIZEConfigurePager.setPageSize(int)



setDisableDefaultPager
public void setDisableDefaultPager(boolean disableDefaultPager)(Code)
Sets the value of an attribute that enables or disables rendering the data grid's default pager. When this value is set to false, the data grid will not render its pager and rendering is left to the page author. When rendering is disabled, a pager can be rendered using the RenderPager tag or manually in a page. RenderPager



setPageAction
public void setPageAction(String pageAction)(Code)
Set the action used to perform paging. When a pager renders anchors for navigating the data set in a data grid, this action is used as the request URI to perform the paging. Only one of this and the ConfigurePager.setPageHref(String) may be set. ConfigurePager.setPageHref(String)



setPageHref
public void setPageHref(String pageHref)(Code)
Set the HREF used to perform paging. When a pager renders anchors for navigating the data set inside of the data grid, this HREF when set is used as the request URI to perform the paging. Only one of this and the ConfigurePager.setPageAction(String) may be set. ConfigurePager.setPageAction(String)



setPageSize
public void setPageSize(int pageSize)(Code)
Set the page size for the current data grid. This value is the maximum number of data rows that will be rendered by a data grid. When this value is set, it overides the ConfigurePager.setDefaultPageSize(Integer) attribute. If this value is not set, the ConfigurePager.setDefaultPageSize(Integer) is used to determine the maximum size of a data grid's page. Use this value when a data grid allows a user to vary the number of rows in a grid. ConfigurePager.setDefaultPageSize(Integer)ConfigurePager.setDefaultPageSize(Integer)



setPagerFormat
public void setPagerFormat(String pagerFormat)(Code)
Set the appearance of the pager rendered by the data grid. This attribute allows the page author to choose from a set of pre-defined pager renderers which can be used to render paging UI in a data grid. The values include: prevNext which renders a pager as:
 Page # of # Previous Next
 
where Previous and Next are anchors that can navigate to the previous and next pages. When there is no previous or next page, Previous or Next are displayed as literal text.

firstPrevNextLast which renders a pager as:
 Page # of # First Previous Next Last
 
where First, Previous, Next, and Last are anchors that can navigate to the first, previous, next, and last pages respectively. When the anchors would reference invalid pages, First, Previous, Nest, and Last are displayed as literal text.



setPagerRendererClass
public void setPagerRendererClass(String pagerRendererClass)(Code)
Set a Java class name to create a PagerRenderer used to render a data grid's pager. The class referenced by this name must extend the PagerRenderer base class. PagerRendererPagerRenderer



Methods inherited from org.apache.beehive.netui.tags.AbstractSimpleTag
protected String getBufferBody(boolean trim) throws JspException, IOException(Code)(Java Doc)
protected IScriptReporter getHtmlTag(ServletRequest req)(Code)(Java Doc)
final protected String getIdForTagId(String tagId)(Code)(Java Doc)
protected String getInlineError()(Code)(Java Doc)
protected PageContext getPageContext()(Code)(Java Doc)
protected IScriptReporter getScriptReporter()(Code)(Java Doc)
abstract public String getTagName()(Code)(Java Doc)
protected Locale getUserLocale()(Code)(Java Doc)
protected boolean hasErrors()(Code)(Java Doc)
public void registerTagError(String message, Throwable e) throws JspException(Code)(Java Doc)
public void registerTagError(AbstractPageError error) throws JspException(Code)(Java Doc)
protected void reportErrors() throws JspException(Code)(Java Doc)
final protected String rewriteName(String name)(Code)(Java Doc)
final protected String setNonEmptyValueAttribute(String attrValue)(Code)(Java Doc)
final protected String setRequiredValueAttribute(String attrValue, String attrName) throws JspException(Code)(Java Doc)
final protected void write(String string) throws JspException(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.