Java Doc for JspDataTable.java in  » J2EE » Sofia » com » salmonllc » jsp » 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 » Sofia » com.salmonllc.jsp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.jsp.JspContainer
         com.salmonllc.jsp.JspDataTable

JspDataTable
public class JspDataTable extends JspContainer implements ImageGenerator(Code)
This object is used to render tabular data in a JSP Page


Field Summary
final public static  StringPAGE_BUTTON_STYLE_OVAL
    
final public static  StringPAGE_BUTTON_STYLE_RECTANGLE
    
final public static  intPAGE_BUTTON_TYPE_IMAGE
    
final public static  intPAGE_BUTTON_TYPE_SCROLLBAR
    
final public static  intPAGE_BUTTON_TYPE_SUBMIT
    
final public static  intPAGE_BUTTON_TYPE_TEXT
    

Constructor Summary
public  JspDataTable(String name, com.salmonllc.html.HtmlPage p)
    
public  JspDataTable(String name, String theme, com.salmonllc.html.HtmlPage p)
    

Method Summary
public  voidadd(HtmlComponent comp, int type)
    
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval)
     The propExpression will be evaluated by the evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreExpression propExpression)
     This method will add a property expression to the HtmlDataTable. The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidaddPropertyExpression(Object comp, String propertyName, String expression)
     The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set.
public  voidclearPropertyExpressions()
    
public  booleanexecuteEvent(int eventType)
    
public  HtmlComponentfindSortComponent(HtmlComponent sortComp)
     This method will find a component suitable for sorting (an html for component attached to a datastore) inside the passed component.
public  voidflipColor()
     This method should not be called directly.
public  voidgenerateHTML(TagWriter t, String content)
     Generates the HTML for the component.
public  voidgenerateImage(String img, OutputStream out)
    
public  StringgenerateNextTDName(int colSpan, int type)
     This method should not be called directly.
public  StringgenerateNextTRName(int type)
     This method should not be called directly.
public  booleangetAlwaysShowGroupFooter()
    
public  intgetBorder()
     Gets the border thickness for the table.
public  StringgetBorderColor()
     Gets the background color for the table.
public  int[]getBreakColumns()
     Returns an array of column numbers used for control breaks.
public  longgetCacheKey()
    
public  intgetCellPadding()
     Gets the cell padding for the table.
public  intgetCellSpacing()
     Gets the cell spacing for the table.
public  booleangetClickSort()
    
public  intgetCols()
     Sets the cell padding for the table.
public  StringgetCurrentRowBackgroundColor()
     This method should not be called directly.
public  StringgetCurrentRowStyleClassName()
     This method should not be called directly.
public  DataStoreBuffergetDataStoreBuffer()
     Returns the DataStoreBuffer attached to this component.
public  booleangetDidSubmit()
     This method returns true if the datatable did the last submit of the page through a sort or clicking on a paging button.
public  intgetFirstRowOnPage()
     Returns the first row on the page displayed in the datatable.
public  booleangetGenTHeadAndBody()
    
public  StringgetGroupBy()
     Returns the GroupBy string initialized by the JSP.
public  intgetHSpace()
     Gets the horizontal margin for the table.
public  StringgetHeaderTDNameForRow(String name)
     This method should not be called directly.
public  StringgetHeadingBackgroundColor()
     This method returns the background color for the heading of the Data Table.
public  StringgetHeadingStyleClassName()
    
public  StringgetHeight()
    
public  intgetLastRenderedRow()
    
public  intgetMaxPageButtons()
     This method gets the maximum number of paging buttons to display.
public  intgetMaxPagingButtons()
     Sets the maximum number of paging buttons for the table.
public  intgetMaxTDColumns()
     This method should not be called directly.
public  StringgetNextRowBackgroundColor()
    
public  intgetPage(int row)
     This method returns the page the row is on.
public  intgetPageButtonType()
     Gets the type of paging buttons for the data table.
public  ColorgetPagingButtonBackgroundColor()
    
public  ColorgetPagingButtonBottomRightColor()
    
public  StringgetPagingButtonDisplayStyle()
     This method gets the Display Style for a generated page button image.
public  FontgetPagingButtonFont()
    
public  intgetPagingButtonHeight()
    
public  ColorgetPagingButtonTextColor()
    
public  StringgetRowBackgroundColor1()
    
public  StringgetRowBackgroundColor2()
    
public  HtmlRowHighlightergetRowHighlighter()
    
public  StringgetRowStyleClassName1()
    
public  StringgetRowStyleClassName2()
    
public  intgetRowsPerPage()
     This method gets the number of rows to display on one page of output.
public  StringgetScrollAnchor()
     This method gets the anchor to scroll to when a paging button on the table is clicked.
public  booleangetScrollOnClickSort()
     Gets whether the datastore will build scrolling javascript when the user clicks on a column heading to sort or a paging button.
public  booleangetSelRowsPerPage()
     Returns true if rows per page selector is visible.
public  intgetSortColumn()
     This method returns the number of the last column that the user clicked on to sort the list.
public  intgetSortDirection()
     This method returns the direction of the sort set when the user last clicked a column heading to sort the list.
public  booleangetUseCache()
    
public  intgetVSpace()
     Gets the vertical margin for the table.
public  StringgetWidth()
    
public  voidinitColor()
     This method should not be called directly.
public  booleanisRowOnPage(int row)
     This method returns true if the specified row is on the current page.
public  booleanprocessParms(Hashtable parms, int rowNo)
    
public  voidprocessPropertyExpressions(int row)
    
public  voidresetCounters()
     This method should not be called directly.
public  voidsetAlign(String newAlign)
     Sets the alignment for the Data Table.
public  voidsetAlwaysShowGroupFooter(boolean alwaysShowGroupFooter)
    
public  voidsetBackgroundColor(String value)
     Sets the background color for the table.
public  voidsetBaseClickSort(String column, int dir)
     This method will set the base click sort column for the datastore.
public  voidsetBorder(int border)
     Sets the border width for the table.
public  voidsetBorderColor(String value)
     Sets the background color for the table.
public  voidsetBreakColumns(int[] cols)
     Use this method to set the columns that the Data Table will control break on.
public  voidsetBreakColumns(String[] cols)
     Use this method to set the columns that the Data Table will control break on.
public  voidsetBreakColumns(int col)
     Use this method to set the columns that the Data Table will control break on.
public  voidsetBreakColumns(String col)
     Use this method to set the columns that the Data Table will control break on.
public  voidsetCacheKey(long key)
     This method is used by the framework to decide whether or not to generate the image or get it from cache.
public  voidsetCellPadding(int value)
     Sets the cell padding for the table.
public  voidsetCellSpacing(int value)
     Sets the cell spacing for the table.
public  voidsetClickSort(boolean newClickSort)
    
public  voidsetCols(int value)
     Sets the number of columns for the table.
public  voidsetDataStoreBuffer(DataStoreBuffer ds)
     Set the datastore buffer that will be used to generate the table.
public  voidsetFirstRowOnPage(int firstRowOnPage)
     This method sets the first row displayed on the current page.
public  voidsetGenTHeadAndBody(boolean genTHeadAndBody)
    
public  voidsetGroupBy(java.lang.String newGroupBy)
     Sets the groupby string for the datatable.
public  voidsetHSpace(int val)
     Sets the horizontal margin for the table.
public  voidsetHeadingBackgroundColor(String value)
    
public  voidsetHeadingStyleClassName(String string)
    
public  voidsetHeight(String val)
    
public  voidsetLastRenderedRow(int lastRenderedRow)
    
public  voidsetMaxPageButtons(int max)
     This method sets the maximum number of paging buttons to display.
public  voidsetMaxPagingButtons(int max)
     Sets the maximum number of paging buttons for the table.
public  voidsetMaxTDColumns(int cols)
     This method should not be called directly.
public  voidsetPage(int page)
     This method will scroll to the first row on the current selected page It also adjusts the _firstSubmitButton to correctly set up the page range below the table.
public  voidsetPageButtonType(int type)
     Sets the type of paging buttons for the data table.
public  voidsetPageSelectRenderer(DataTablePageSelectRenderer r)
    
public  voidsetPageSelectRenderer(String r)
    
public  voidsetPagingButtonBackgroundColor(Color c)
    
public  voidsetPagingButtonBottomRightColor(Color c)
    
public  voidsetPagingButtonDisplayStyle(String style)
     This method sets the Display Style for a generated image button.
public  voidsetPagingButtonFont(Font f)
     This method sets the font used for dynamically generated page button images.
public  voidsetPagingButtonHeight(int height)
    
public  voidsetRowBackgroundColor1(String value)
    
public  voidsetRowBackgroundColor2(String value)
    
public  voidsetRowHighlighter(HtmlRowHighlighter rowHighlighter)
    
Parameters:
  Framework - method, do not call directly.
public  voidsetRowStyleClassName1(String string)
    
public  voidsetRowStyleClassName2(String string)
    
public  voidsetRowsPerPage(int rowsPerPage)
     This method sets the number of rows to display on one page of output.
public  voidsetRowsPerPageRenderer(DataTableRowsPerPageRenderer r)
    
public  voidsetRowsPerPageRenderer(String r)
    
public  voidsetScrollAnchor(String anchor)
     This method sets the anchor to scroll to when a paging button on the table is clicked.
public  voidsetScrollOnClickSort(boolean scroll)
     Sets whether the datastore will build scrolling javascript when the user clicks on a column heading to sort or a paging button.
public  voidsetSelRowsPerPage(boolean sel)
     Sets whether rows per page selector is visible.
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetVSpace(int val)
     Sets the vertical margin for the table.
public  voidsetWidth(String val)
    
public  voidupdateLocale()
    

Field Detail
PAGE_BUTTON_STYLE_OVAL
final public static String PAGE_BUTTON_STYLE_OVAL(Code)



PAGE_BUTTON_STYLE_RECTANGLE
final public static String PAGE_BUTTON_STYLE_RECTANGLE(Code)



PAGE_BUTTON_TYPE_IMAGE
final public static int PAGE_BUTTON_TYPE_IMAGE(Code)



PAGE_BUTTON_TYPE_SCROLLBAR
final public static int PAGE_BUTTON_TYPE_SCROLLBAR(Code)



PAGE_BUTTON_TYPE_SUBMIT
final public static int PAGE_BUTTON_TYPE_SUBMIT(Code)



PAGE_BUTTON_TYPE_TEXT
final public static int PAGE_BUTTON_TYPE_TEXT(Code)




Constructor Detail
JspDataTable
public JspDataTable(String name, com.salmonllc.html.HtmlPage p)(Code)



JspDataTable
public JspDataTable(String name, String theme, com.salmonllc.html.HtmlPage p)(Code)




Method Detail
add
public void add(HtmlComponent comp, int type)(Code)
Framework method, do not call directly



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval) throws NoSuchMethodException, DataStoreException(Code)
The propExpression will be evaluated by the evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  expEval - DataStoreEvaluator The datastore evaluator that evaluates the expression
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreExpression propExpression) throws NoSuchMethodException, DataStoreException(Code)
This method will add a property expression to the HtmlDataTable. The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  propExpression - com.salmonllc.html.PropertyExpression The instance of PropertyExpression that should do the evaluating.
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, String expression) throws NoSuchMethodException, DataStoreException(Code)
The propExpression will be evaluated for each row in the DataStore and the set method for the specified property will be called on the specified object.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have a corresponding setProperty method or this method will throw a NoSuchMethodException
Parameters:
  expression - java.lang.String The datastore expression to evaluate
exception:
  java.lang.NoSuchMethodException - The exception description.
exception:
  com.salmonllc.sql.DataStoreException - The exception description.



clearPropertyExpressions
public void clearPropertyExpressions()(Code)
This method will remove all property expressions from the table



executeEvent
public boolean executeEvent(int eventType) throws Exception(Code)



findSortComponent
public HtmlComponent findSortComponent(HtmlComponent sortComp)(Code)
This method will find a component suitable for sorting (an html for component attached to a datastore) inside the passed component.



flipColor
public void flipColor()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



generateHTML
public void generateHTML(TagWriter t, String content) throws java.io.IOException(Code)
Generates the HTML for the component. This should not be called directly.



generateImage
public void generateImage(String img, OutputStream out) throws IOException(Code)



generateNextTDName
public String generateNextTDName(int colSpan, int type)(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



generateNextTRName
public String generateNextTRName(int type)(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



getAlwaysShowGroupFooter
public boolean getAlwaysShowGroupFooter()(Code)
Returns the alwaysShowGroupFooter.



getBorder
public int getBorder()(Code)
Gets the border thickness for the table.



getBorderColor
public String getBorderColor()(Code)
Gets the background color for the table.



getBreakColumns
public int[] getBreakColumns()(Code)
Returns an array of column numbers used for control breaks.



getCacheKey
public long getCacheKey()(Code)



getCellPadding
public int getCellPadding()(Code)
Gets the cell padding for the table.



getCellSpacing
public int getCellSpacing()(Code)
Gets the cell spacing for the table.



getClickSort
public boolean getClickSort()(Code)
Returns whether or not the component should have headings that sort the table when the user clicks on them



getCols
public int getCols()(Code)
Sets the cell padding for the table.



getCurrentRowBackgroundColor
public String getCurrentRowBackgroundColor()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



getCurrentRowStyleClassName
public String getCurrentRowStyleClassName()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



getDataStoreBuffer
public DataStoreBuffer getDataStoreBuffer()(Code)
Returns the DataStoreBuffer attached to this component.



getDidSubmit
public boolean getDidSubmit()(Code)
This method returns true if the datatable did the last submit of the page through a sort or clicking on a paging button.



getFirstRowOnPage
public int getFirstRowOnPage()(Code)
Returns the first row on the page displayed in the datatable.



getGenTHeadAndBody
public boolean getGenTHeadAndBody()(Code)
Returns true if the component will generate THEAD, TBODY and TFOOT tags around the sections of the table.



getGroupBy
public String getGroupBy()(Code)
Returns the GroupBy string initialized by the JSP.



getHSpace
public int getHSpace()(Code)
Gets the horizontal margin for the table.



getHeaderTDNameForRow
public String getHeaderTDNameForRow(String name)(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



getHeadingBackgroundColor
public String getHeadingBackgroundColor()(Code)
This method returns the background color for the heading of the Data Table.



getHeadingStyleClassName
public String getHeadingStyleClassName()(Code)
the default style sheet class for heading rows



getHeight
public String getHeight()(Code)
This method returns the height for the DataTable



getLastRenderedRow
public int getLastRenderedRow()(Code)
framework method, do not call directly



getMaxPageButtons
public int getMaxPageButtons()(Code)
This method gets the maximum number of paging buttons to display.



getMaxPagingButtons
public int getMaxPagingButtons()(Code)
Sets the maximum number of paging buttons for the table.



getMaxTDColumns
public int getMaxTDColumns()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



getNextRowBackgroundColor
public String getNextRowBackgroundColor()(Code)
Returns the next color that will be used to stripe the rows in the table



getPage
public int getPage(int row)(Code)
This method returns the page the row is on.



getPageButtonType
public int getPageButtonType()(Code)
Gets the type of paging buttons for the data table. Valid Types are PAGE_BUTTON_TYPE_SUBMIT, PAGE_BUTTON_TYPE_IMAGE, PAGE_BUTTON_TYPE_TEXT



getPagingButtonBackgroundColor
public Color getPagingButtonBackgroundColor()(Code)
This method returns the background color of paging button images



getPagingButtonBottomRightColor
public Color getPagingButtonBottomRightColor()(Code)
This method returns the bottom right border color of paging button images



getPagingButtonDisplayStyle
public String getPagingButtonDisplayStyle()(Code)
This method gets the Display Style for a generated page button image. Valid Values are PAGE_BUTTON_STYLE_RECTANGLE and PAGE_BUTTON_STYLE_OVAL



getPagingButtonFont
public Font getPagingButtonFont()(Code)
This method returns the font used for page button images



getPagingButtonHeight
public int getPagingButtonHeight()(Code)
This method returns the height used for page button images



getPagingButtonTextColor
public Color getPagingButtonTextColor()(Code)
This method returns the text color of page button images



getRowBackgroundColor1
public String getRowBackgroundColor1()(Code)
This method returns the first background color for the rows in the datatable



getRowBackgroundColor2
public String getRowBackgroundColor2()(Code)
This method returns the second background color for the rows in the datatable



getRowHighlighter
public HtmlRowHighlighter getRowHighlighter()(Code)
Returns the rowHighlighter used by this component.



getRowStyleClassName1
public String getRowStyleClassName1()(Code)
the default style sheet class for table rows



getRowStyleClassName2
public String getRowStyleClassName2()(Code)
the default style sheet class for table alternate rows



getRowsPerPage
public int getRowsPerPage()(Code)
This method gets the number of rows to display on one page of output. A value <= 0 will indicate no limit to the number of rows displayed.



getScrollAnchor
public String getScrollAnchor()(Code)
This method gets the anchor to scroll to when a paging button on the table is clicked. Set it to null for the top of the table.



getScrollOnClickSort
public boolean getScrollOnClickSort()(Code)
Gets whether the datastore will build scrolling javascript when the user clicks on a column heading to sort or a paging button.



getSelRowsPerPage
public boolean getSelRowsPerPage()(Code)
Returns true if rows per page selector is visible.



getSortColumn
public int getSortColumn()(Code)
This method returns the number of the last column that the user clicked on to sort the list.



getSortDirection
public int getSortDirection()(Code)
This method returns the direction of the sort set when the user last clicked a column heading to sort the list. Valid values are DataStoreBuffer.SORT_ASC or DataStoreBuffer.SORT_DES.



getUseCache
public boolean getUseCache()(Code)



getVSpace
public int getVSpace()(Code)
Gets the vertical margin for the table.



getWidth
public String getWidth()(Code)
Gets the width of the DataTable



initColor
public void initColor()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



isRowOnPage
public boolean isRowOnPage(int row)(Code)
This method returns true if the specified row is on the current page.



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)



processPropertyExpressions
public void processPropertyExpressions(int row)(Code)



resetCounters
public void resetCounters()(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



setAlign
public void setAlign(String newAlign)(Code)
Sets the alignment for the Data Table.



setAlwaysShowGroupFooter
public void setAlwaysShowGroupFooter(boolean alwaysShowGroupFooter)(Code)

Parameters:
  alwaysShowGroupFooter - The alwaysShowGroupFooter to set.



setBackgroundColor
public void setBackgroundColor(String value)(Code)
Sets the background color for the table.



setBaseClickSort
public void setBaseClickSort(String column, int dir)(Code)
This method will set the base click sort column for the datastore. This column and direction will be appended to the sort column that the user clicked on.
Parameters:
  column - The column to sort on
Parameters:
  dir - int DataStoreBuffer.SORT_ASC or DataStoreBuffer.SORT_DES



setBorder
public void setBorder(int border)(Code)
Sets the border width for the table.



setBorderColor
public void setBorderColor(String value)(Code)
Sets the background color for the table.



setBreakColumns
public void setBreakColumns(int[] cols)(Code)
Use this method to set the columns that the Data Table will control break on.
Parameters:
  cols - An array of column numbers to break on.



setBreakColumns
public void setBreakColumns(String[] cols)(Code)
Use this method to set the columns that the Data Table will control break on.
Parameters:
  cols - An array of column names to break on.



setBreakColumns
public void setBreakColumns(int col)(Code)
Use this method to set the columns that the Data Table will control break on.
Parameters:
  col - The column number to break on.



setBreakColumns
public void setBreakColumns(String col)(Code)
Use this method to set the columns that the Data Table will control break on.
Parameters:
  col - A column name to break on.



setCacheKey
public void setCacheKey(long key)(Code)
This method is used by the framework to decide whether or not to generate the image or get it from cache. It should not be called directly.



setCellPadding
public void setCellPadding(int value)(Code)
Sets the cell padding for the table.



setCellSpacing
public void setCellSpacing(int value)(Code)
Sets the cell spacing for the table.



setClickSort
public void setClickSort(boolean newClickSort)(Code)
Sets whether or not the table headings will have underline links that sort the table Creation date: (5/22/01 2:32:37 PM)
Parameters:
  newClickSort - java.lang.String



setCols
public void setCols(int value)(Code)
Sets the number of columns for the table.



setDataStoreBuffer
public void setDataStoreBuffer(DataStoreBuffer ds)(Code)
Set the datastore buffer that will be used to generate the table.



setFirstRowOnPage
public void setFirstRowOnPage(int firstRowOnPage)(Code)
This method sets the first row displayed on the current page.



setGenTHeadAndBody
public void setGenTHeadAndBody(boolean genTHeadAndBody)(Code)
true if the component will generate THEAD, TBODY and TFOOT tags around the sections of the table.



setGroupBy
public void setGroupBy(java.lang.String newGroupBy)(Code)
Sets the groupby string for the datatable.



setHSpace
public void setHSpace(int val)(Code)
Sets the horizontal margin for the table.



setHeadingBackgroundColor
public void setHeadingBackgroundColor(String value)(Code)
Sets the background color for the heading



setHeadingStyleClassName
public void setHeadingStyleClassName(String string)(Code)

Parameters:
  string - sets the default style sheet class for heading rows



setHeight
public void setHeight(String val)(Code)
Sets the height for the datatable



setLastRenderedRow
public void setLastRenderedRow(int lastRenderedRow)(Code)
framework method, do not call directly



setMaxPageButtons
public void setMaxPageButtons(int max)(Code)
This method sets the maximum number of paging buttons to display.



setMaxPagingButtons
public void setMaxPagingButtons(int max)(Code)
Sets the maximum number of paging buttons for the table.



setMaxTDColumns
public void setMaxTDColumns(int cols)(Code)
This method should not be called directly. It is public so it can be called from com.salmonllc.jsp.tags.



setPage
public void setPage(int page)(Code)
This method will scroll to the first row on the current selected page It also adjusts the _firstSubmitButton to correctly set up the page range below the table.



setPageButtonType
public void setPageButtonType(int type)(Code)
Sets the type of paging buttons for the data table. Valid Types are PAGE_BUTTON_TYPE_SUBMIT, PAGE_BUTTON_TYPE_IMAGE, PAGE_BUTTON_TYPE_TEXT



setPageSelectRenderer
public void setPageSelectRenderer(DataTablePageSelectRenderer r)(Code)
Sets a new render to draw the HTML for the table page selector



setPageSelectRenderer
public void setPageSelectRenderer(String r)(Code)
Sets a new render to draw the HTML for the table page selector, given the class name for the renderer



setPagingButtonBackgroundColor
public void setPagingButtonBackgroundColor(Color c)(Code)
This method sets the background color for the page button generated image



setPagingButtonBottomRightColor
public void setPagingButtonBottomRightColor(Color c)(Code)
This method sets the bottom and right border color for the page button generated image



setPagingButtonDisplayStyle
public void setPagingButtonDisplayStyle(String style)(Code)
This method sets the Display Style for a generated image button. Valid Values are PAGE_BUTTON_STYLE_RECTANGLE and PAGE_BUTTON_STYLE_OVAL



setPagingButtonFont
public void setPagingButtonFont(Font f)(Code)
This method sets the font used for dynamically generated page button images.



setPagingButtonHeight
public void setPagingButtonHeight(int height)(Code)
This method sets the height used for page button images



setRowBackgroundColor1
public void setRowBackgroundColor1(String value)(Code)
Sets the first background color for the table



setRowBackgroundColor2
public void setRowBackgroundColor2(String value)(Code)
Sets the second background color for rows in the table



setRowHighlighter
public void setRowHighlighter(HtmlRowHighlighter rowHighlighter)(Code)

Parameters:
  Framework - method, do not call directly. Instead add a rowhighlighter to the JSP.



setRowStyleClassName1
public void setRowStyleClassName1(String string)(Code)

Parameters:
  string - sets the default style sheet class for table rows



setRowStyleClassName2
public void setRowStyleClassName2(String string)(Code)

Parameters:
  string - sets the default style sheet class for table alternate rows



setRowsPerPage
public void setRowsPerPage(int rowsPerPage)(Code)
This method sets the number of rows to display on one page of output. A value <= 0 will indicate no limit to the number of rows displayed.



setRowsPerPageRenderer
public void setRowsPerPageRenderer(DataTableRowsPerPageRenderer r)(Code)
Sets a new render to draw the HTML for the rows per page selector



setRowsPerPageRenderer
public void setRowsPerPageRenderer(String r)(Code)
Sets a new render to draw the HTML for the rows per page selector



setScrollAnchor
public void setScrollAnchor(String anchor)(Code)
This method sets the anchor to scroll to when a paging button on the table is clicked. Set it to null for the top of the table.



setScrollOnClickSort
public void setScrollOnClickSort(boolean scroll)(Code)
Sets whether the datastore will build scrolling javascript when the user clicks on a column heading to sort or a paging button.



setSelRowsPerPage
public void setSelRowsPerPage(boolean sel)(Code)
Sets whether rows per page selector is visible.



setTheme
public void setTheme(String theme)(Code)
This method sets the property theme for the component.
Parameters:
  theme - The theme to use.



setVSpace
public void setVSpace(int val)(Code)
Sets the vertical margin for the table.



setWidth
public void setWidth(String val)(Code)
Sets the width of the table



updateLocale
public void updateLocale()(Code)
Updates the data table labels for the current language
The language property file must have the following key structure
JspDataTable.page.Page represents the "Page" in the "Page N of N" label.
JspDataTable.page.Of represents the "of" in the "Page N of N" label.
JspDataTable.rows.PerPage represents the "Rows displayed per page" label.
JspDataTable.rows.Total represents the "Total Rows" label.
Author: Claudio Pi Gamba
Company: http://www.grupo-quanam.com
Email: claudio.pi@quanam.com.uy



Fields inherited from com.salmonllc.jsp.JspContainer
final public static int TYPE_COMP(Code)(Java Doc)
final public static int TYPE_FOOTER(Code)(Java Doc)
final public static int TYPE_GROUP_FOOTER(Code)(Java Doc)
final public static int TYPE_GROUP_HEADER(Code)(Java Doc)
final public static int TYPE_HEADER(Code)(Java Doc)
final public static int TYPE_ROW(Code)(Java Doc)
protected boolean _center(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected HtmlComponent _submit(Code)(Java Doc)

Methods inherited from com.salmonllc.jsp.JspContainer
public void add(HtmlComponent comp, int type)(Code)(Java Doc)
public void clearSubmit()(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowNo) throws java.lang.Exception(Code)(Java Doc)
public HtmlComponent getComponent(int i)(Code)(Java Doc)
public int getComponentCount()(Code)(Java Doc)
public int getComponentIndex(HtmlComponent comp)(Code)(Java Doc)
public int getComponentType(int i)(Code)(Java Doc)
public int getComponentType(HtmlComponent comp)(Code)(Java Doc)
public Enumeration getComponents()(Code)(Java Doc)
public JspController getController()(Code)(Java Doc)
public boolean getDoInit()(Code)(Java Doc)
public HtmlComponent getSubmitComponent()(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
public boolean isComponentInContainer(HtmlComponent comp)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
boolean replaceComponent(HtmlComponent comp, Object compToReplace)(Code)(Java Doc)
public void setDoInit(boolean b)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(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.