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


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlContainer
         com.salmonllc.html.HtmlDataTable

All known Subclasses:   com.salmonllc.html.HtmlDataTable2D,
HtmlDataTable
public class HtmlDataTable extends HtmlContainer implements ImageGenerator(Code)
This component will generate an HTML table. It serves as a container and layout manager for other components. There are several bands of components in the page. Heading Components are displayed at the top of the table and occur only once. Row Components are displayed below the heading components and are repeated for each row in the DataStoreBuffer. Footer Components are displayed at the end of the table. Control Break Header and Footer components are displayed before and after a set of control break columns change.


Field Summary
final public static  StringALIGN_CENTER
    
final public static  StringALIGN_LEFT
    
final public static  StringALIGN_NONE
    
final public static  StringALIGN_RIGHT
    
final public static  intMAX_ROW_LIMIT
    
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
    
final public static  intSIZE_PERCENT
    
final public static  intSIZE_PIXELS
    
final public static  StringVALIGN_BASELINE
    
final public static  StringVALIGN_BOTTOM
    
final public static  StringVALIGN_MIDDLE
    
final public static  StringVALIGN_NONE
    
final public static  StringVALIGN_TOP
    
protected  String_align
    
protected  Color_backgroundColor
    
protected  int_baseSortColumn
    
protected  int_baseSortDir
    
protected  String_bgColor
    
protected  int_border
    
protected  Color_bottomRightBorder
    
protected  int_breakColumns
    
protected  Font_buttonFont
    
protected  long_cacheKey
    
protected  int_cellPadding
    
protected  int_cellSpacing
    
protected  boolean_clickSort
    
protected  int_clickSortColumn
    
protected  Vector_columnWidth
    
protected  HtmlComponent_contMessage
    
protected  int_containerWidth
    
protected  String_defaultHeadingBackground
    
protected  String_defaultRowBackground1
    
protected  String_defaultRowBackground2
    
protected  boolean_didSubmit
    
protected  boolean_displayRowComponents
    
protected  DataStoreBuffer_ds
    
protected  int_firstRowOnPage
    
protected  int_firstSubmitButton
    
protected  int_height
    
protected  String_imageURL
    
protected  int_maxPageButtons
    
protected  int_newFirstButton
    
protected  int_newRowsPerPage
    
protected  int_newStartRow
    
protected  int_pageButtonType
    
protected  DataTablePageSelectRenderer_pageSelectRenderer
    
protected  Vector_propertyExpressions
    
protected  boolean_rowPerPageSel
    
protected  int_rowsPerPage
    
protected  DataTableRowsPerPageRenderer_rowsPerPageRenderer
    
protected  boolean_scroll
    
protected  String_scrollAnchor
    
protected  boolean_scrollOnSort
    
protected  int_sizeOption
    
protected  int_sortColumn
    
protected  int_sortDir
    
protected  String_style
    
protected  String_summaryRowText
    
protected  Color_textColor
    
protected  String_theme
    
protected  Color_topLeftBorder
    
protected  Color_transparentColor
    
protected  boolean_useCache
    

Constructor Summary
public  HtmlDataTable(String name, DataStoreBuffer d, HtmlPage p)
     Constructs a new HTMLDataTable.
public  HtmlDataTable(String name, DataStoreBuffer d, String theme, HtmlPage p)
     Constructs a new HTMLDataTable.

Method Summary
public  voidadd(HtmlComponent comp)
     This method should not be used in this type of container.
public  voidaddBucket(String name, String heading, int type)
     Creates a datastore bucket and corresponding display components for the search and list boxes.
public  voidaddBucket(String name, String heading, int type, String href, String format)
     Creates a datastore bucket and corresponding display components for the search and list boxes.
public  voidaddBucket(String name, String heading, int type, String href, String format, HtmlTableCellProperties propList)
     Creates a datastore bucket and corresponding display components for the search and list boxes.
public  voidaddColumn(String table, String column, String heading, int type)
     Creates a datastore column and corresponding display components for the search and list boxes.
public  voidaddColumn(String table, String column, String heading, int type, String href)
     Creates a datastore column and corresponding display components for the search and list boxes.
public  voidaddColumn(String table, String column, String heading, int type, String href, String format)
     Creates a datastore column and corresponding display components for the search and list boxes.
public  voidaddColumn(String table, String column, String heading, int type, String href, String format, HtmlTableCellProperties propList)
     Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore.
public  voidaddColumn(String table, String column, String heading, int type, String href, String format, HtmlTableCellProperties propHeading, HtmlTableCellProperties propList)
     Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore.
public  voidaddDisplay(String fullColName, String heading, HtmlComponent component, HtmlTableCellProperties prop)
     Adds a component to the List display.
public  voidaddDisplay(String fullColName, String heading, HtmlComponent component, HtmlTableCellProperties propHeading, HtmlTableCellProperties propComponent)
     Adds a component to the List display.
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval)
     This method will add a property expression to the HtmlDataTable.
public  voidaddPropertyExpression(Object comp, String propertyName, DataStoreExpression propExpression)
     This method will add a property expression to the HtmlDataTable.
public  voidaddPropertyExpression(Object comp, String propertyName, String expression)
     This method will add a property expression to the HtmlDataTable.
public  voidclearPropertyExpressions()
     This method will remove all property expressions from the table.
public  booleanexecuteEvent(int eventType)
    
protected  HtmlComponentfindSortComponent(HtmlComponent sortComp)
    
public  voidgenerateHTML(java.io.PrintWriter p, int rowNo)
    
public  voidgenerateImage(String img, OutputStream out)
    
public  voidgenerateInitialHTML(PrintWriter p)
    
public  StringgetAlign()
     Returns the alignment property for the table.
public  StringgetBackgroundColor()
     Gets the background color for the table.
protected  StringgetBackgroundColor(String currentColor)
    
public  intgetBorder()
     Gets the border thickness for the table.
public  longgetCacheKey()
    
public  intgetCellPadding()
     Gets the cell padding for the table.
public  intgetCellSpacing()
     Gets the cell spacing for the table.
public  booleangetClickSort()
     Returns true if heading components should be underline links that sort the list.
public  intgetColumnWidth(int column)
    
public  EnumerationgetComponents()
     This method returns all the elements in the container.
public  DataStoreBuffergetDataStoreBuffer()
     Returns the internal data store buffer used by the 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()
     This method gets the first row displayed on the current page.
protected  VectorgetFooterComponents()
     Gets a vector containing the components in the data table footer.
public  intgetFooterComponentsSize()
     This method returns all the elements in the container.
public  booleangetGenImagesForPagingButtons()
     Gets whether the or not paging buttons will be generated images or regular submit buttons.
public  booleangetGenTHeadAndBody()
    
public  HtmlComponentgetHeadingComponentAt(int pos)
     This method returns the heading component at the specified position or null if non is found.
public  HtmlComponentgetHeadingComponentAt(String name)
     This method returns the heading component at that is the same as the name specified or null if none is found.
protected  VectorgetHeadingComponents()
     Gets a vector containing the components in the data table heading.
public  intgetHeadingComponentsSize()
     This method returns all the elements in the container.
public  StringgetHeadingStyleClassName()
    
public  StringgetLinkFont()
     This method returns the font that is being used for links created with addColumn.
public  intgetMaxPageButtons()
     This method gets the maximum number of paging buttons to display.
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  booleangetRepeatHeadingsAfterBreak()
    
public  HtmlComponentgetRowComponentAt(int pos)
     This method returns the row component at the specified position or null if non is found.
public  HtmlComponentgetRowComponentAt(String name)
     This method returns the row component at that is the same as the name specified or null if none is found.
protected  VectorgetRowComponents()
     Gets a vector containing the components in a data table row.
public  intgetRowComponentsSize()
     This method returns all the elements in the container.
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  intgetSizeOption()
     This method returns the size option for the table and each cell in it.
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.
protected  StringgetStyle(String currentStyle)
    
public  intgetTableHeight()
    
public  StringgetTheme()
     This method returns the property theme for the component.
public  booleangetUseCache()
     If the image is dynamically generated, this method will indicate whether or not the Objectstore should cache it.
public  booleangetUseLinksForPagingButtons()
     Gets whether the or not paging buttons will be links or submit.
public  intgetWidth()
     This method returns the width of the table.
public  booleanisRowOnPage(int row)
     This method returns true if the specified row is on the current page.
public  booleanprocessParms(Hashtable parms, int rowNo)
    
protected  voidprocessPropertyExpressions(int row)
    
public  voidremoveAll()
    
public  voidremoveRowComponent(HtmlComponent comp)
     Removes an html component from the row container.
public  voidreset()
    
public  voidresetControlBreakFooterComponents()
     This method will remove all Control Break Footer Components from the DataTable.
public  voidresetControlBreakHeadingComponents()
     This method will remove all Control Break Heading Components from the DataTable.
public  voidresetFooterComponents()
     This method will remove all Footer Components from the DataTable.
public  voidresetHeadingComponents()
     This method will remove all Heading Components from the DataTable.
public  voidresetRowComponents()
     This method will remove all Row Components from the DataTable.
public  voidsetAlign(String align)
     Sets the alignment property for the table.
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  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)
    
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 clickSort)
     Set to true if heading components should be underline links that sort the list.
public  voidsetColumnWidth(int column, int width)
     Sets the column width for a particular column in the table.
public  voidsetContMessage(HtmlComponent comp)
     Use this method to set a continuation message for an HtmlDataTable with Control Break Columns.
public  voidsetControlBreakFooterComponentAt(int column, HtmlComponent comp)
     Sets a control break footer component at a particular row position in the table.
public  voidsetControlBreakFooterComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a control break footer component at a particular column position in the table.
public  voidsetControlBreakFooterComponents(HtmlComponent comp)
     Sets all the control break footer components on a particular row in the table.
public  voidsetControlBreakFooterComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets all the control break footer components on a particular row in the table.
public  voidsetControlBreakHeadingComponentAt(int column, HtmlComponent comp)
     Sets a control break heading component at a particular row position in the table.
public  voidsetControlBreakHeadingComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a control break heading component at a particular column position in the table.
public  voidsetControlBreakHeadingComponents(HtmlComponent comp)
     Sets all the control break heading components on a particular row in the table.
public  voidsetControlBreakHeadingComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets all the control break heading components on a particular row in the table.
public  voidsetDataStore(DataStoreBuffer d)
     Sets the internal data store used by the component.
public  voidsetDisplayRowComponents(boolean display)
     Use this method if you don't want the datatable to display the band with row components.
public  voidsetFirstRowOnPage(int firstRowOnPage)
     This method sets the first row displayed on the current page.
public  voidsetFooterComponentAt(int column, HtmlComponent comp)
     Sets a footer component at a particular row position in the table.
public  voidsetFooterComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a footer component at a particular row position in the table.
public  voidsetFooterComponents(HtmlComponent comp)
     Sets all the footer components on a particular row in the table.
public  voidsetFooterComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets all the footer components on a particular row in the table.
public  voidsetGenImagesForPagingButtons(boolean gen)
     Sets whether the or not paging buttons will be generated images or regular submit buttons.
public  voidsetGenTHeadAndBody(boolean genTHeadAndBody)
    
public  voidsetHeadingBackgroundColor(String value)
    
public  voidsetHeadingComponentAt(int column, HtmlComponent comp)
     Sets a heading component at a particular row position in the table.
public  voidsetHeadingComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a heading component at a particular row position in the table.
public  voidsetHeadingComponents(HtmlComponent comp)
     Sets all the heading components on a particular row in the table.
public  voidsetHeadingComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets all the heading components on a particular row in the table.
public  voidsetHeadingStyleClassName(String string)
    
public  voidsetLinkFont(String font)
     This method set which font will be used for links created with addColumn.
public  voidsetMaxPageButtons(int max)
     This method sets the maximum number of paging buttons to display.
public  voidsetPage(int page)
    
public  voidsetPageBreak(boolean bAddPageBreak)
     Adds a page break to this table for printing purposes (IE 5 and up only).
public  voidsetPageBreakIndex(int idx)
    
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  voidsetRepeatHeadingsAfterBreak(boolean repeatHeadingsAfterBreak)
    
public  voidsetRowBackgroundColor1(String value)
     Sets the background color for rows in the data table.
public  voidsetRowBackgroundColor2(String value)
     Sets the background color for rows in the data table.
public  voidsetRowComponentAt(int column, HtmlComponent comp)
     Sets a row component at a particular row position in the table.
public  voidsetRowComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)
     Sets a row component at a particular row position in the table.
public  voidsetRowComponents(HtmlComponent comp)
     Sets a row component at a particular row position in the table.
public  voidsetRowComponents(HtmlComponent comp, HtmlTableCellProperties props)
     Sets a row component at a particular row position in the table.
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  voidsetSizeOption(int option)
     This method sets the size option for the table and each cell in it.
public  voidsetSummaryRowText(String summaryRowText)
     This method sets the size option for the table and each cell in it.
public  voidsetTableHeight(int tableHeight)
    
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetUseCache(boolean useCache)
     If the image is dynamically generated, this method will indicate whether or not the Objectstore should cache it.
public  voidsetUseLinksForPagingButtons(boolean gen)
     Sets whether the or not paging buttons will be links or submit.
public  voidsetWidth(int width)
     This method sets the minimum width of the table in either pixels or percent depending on size option.
protected  voidsortOnComponent(HtmlComponent comp, int colNo)
     This method was created in VisualAge.

Field Detail
ALIGN_CENTER
final public static String ALIGN_CENTER(Code)



ALIGN_LEFT
final public static String ALIGN_LEFT(Code)



ALIGN_NONE
final public static String ALIGN_NONE(Code)



ALIGN_RIGHT
final public static String ALIGN_RIGHT(Code)



MAX_ROW_LIMIT
final public static int MAX_ROW_LIMIT(Code)



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)



SIZE_PERCENT
final public static int SIZE_PERCENT(Code)



SIZE_PIXELS
final public static int SIZE_PIXELS(Code)



VALIGN_BASELINE
final public static String VALIGN_BASELINE(Code)



VALIGN_BOTTOM
final public static String VALIGN_BOTTOM(Code)



VALIGN_MIDDLE
final public static String VALIGN_MIDDLE(Code)



VALIGN_NONE
final public static String VALIGN_NONE(Code)



VALIGN_TOP
final public static String VALIGN_TOP(Code)



_align
protected String _align(Code)



_backgroundColor
protected Color _backgroundColor(Code)



_baseSortColumn
protected int _baseSortColumn(Code)



_baseSortDir
protected int _baseSortDir(Code)



_bgColor
protected String _bgColor(Code)



_border
protected int _border(Code)



_bottomRightBorder
protected Color _bottomRightBorder(Code)



_breakColumns
protected int _breakColumns(Code)



_buttonFont
protected Font _buttonFont(Code)



_cacheKey
protected long _cacheKey(Code)



_cellPadding
protected int _cellPadding(Code)



_cellSpacing
protected int _cellSpacing(Code)



_clickSort
protected boolean _clickSort(Code)



_clickSortColumn
protected int _clickSortColumn(Code)



_columnWidth
protected Vector _columnWidth(Code)



_contMessage
protected HtmlComponent _contMessage(Code)



_containerWidth
protected int _containerWidth(Code)



_defaultHeadingBackground
protected String _defaultHeadingBackground(Code)



_defaultRowBackground1
protected String _defaultRowBackground1(Code)



_defaultRowBackground2
protected String _defaultRowBackground2(Code)



_didSubmit
protected boolean _didSubmit(Code)



_displayRowComponents
protected boolean _displayRowComponents(Code)



_ds
protected DataStoreBuffer _ds(Code)



_firstRowOnPage
protected int _firstRowOnPage(Code)



_firstSubmitButton
protected int _firstSubmitButton(Code)



_height
protected int _height(Code)



_imageURL
protected String _imageURL(Code)



_maxPageButtons
protected int _maxPageButtons(Code)



_newFirstButton
protected int _newFirstButton(Code)



_newRowsPerPage
protected int _newRowsPerPage(Code)



_newStartRow
protected int _newStartRow(Code)



_pageButtonType
protected int _pageButtonType(Code)



_pageSelectRenderer
protected DataTablePageSelectRenderer _pageSelectRenderer(Code)



_propertyExpressions
protected Vector _propertyExpressions(Code)



_rowPerPageSel
protected boolean _rowPerPageSel(Code)



_rowsPerPage
protected int _rowsPerPage(Code)



_rowsPerPageRenderer
protected DataTableRowsPerPageRenderer _rowsPerPageRenderer(Code)



_scroll
protected boolean _scroll(Code)



_scrollAnchor
protected String _scrollAnchor(Code)



_scrollOnSort
protected boolean _scrollOnSort(Code)



_sizeOption
protected int _sizeOption(Code)



_sortColumn
protected int _sortColumn(Code)



_sortDir
protected int _sortDir(Code)



_style
protected String _style(Code)



_summaryRowText
protected String _summaryRowText(Code)



_textColor
protected Color _textColor(Code)



_theme
protected String _theme(Code)



_topLeftBorder
protected Color _topLeftBorder(Code)



_transparentColor
protected Color _transparentColor(Code)



_useCache
protected boolean _useCache(Code)




Constructor Detail
HtmlDataTable
public HtmlDataTable(String name, DataStoreBuffer d, HtmlPage p)(Code)
Constructs a new HTMLDataTable.
Parameters:
  name - Each component on a page must have a unique name.
Parameters:
  d - The DataStoreBuffer to get the data from.
Parameters:
  p - The page that the table will be added to.



HtmlDataTable
public HtmlDataTable(String name, DataStoreBuffer d, String theme, HtmlPage p)(Code)
Constructs a new HTMLDataTable.
Parameters:
  name - Each component on a page must have a unique name.
Parameters:
  d - The DataStoreBuffer to get the data from.
Parameters:
  theme - The theme to use for loading properties.
Parameters:
  p - The page that the table will be added to.




Method Detail
add
public void add(HtmlComponent comp)(Code)
This method should not be used in this type of container. Instead use setComponentAt().



addBucket
public void addBucket(String name, String heading, int type) throws Exception(Code)
Creates a datastore bucket and corresponding display components for the search and list boxes.
Parameters:
  name - Name of bucket
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values



addBucket
public void addBucket(String name, String heading, int type, String href, String format) throws Exception(Code)
Creates a datastore bucket and corresponding display components for the search and list boxes.
Parameters:
  name - Name of bucket
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.
Parameters:
  format - Format used to display column in listbox (as in DataStore),else null.



addBucket
public void addBucket(String name, String heading, int type, String href, String format, HtmlTableCellProperties propList) throws Exception(Code)
Creates a datastore bucket and corresponding display components for the search and list boxes.
Parameters:
  name - Name of bucket
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.
Parameters:
  format - Format used to display column in listbox (as in DataStore),else null.
Parameters:
  propList - HtmlTableCellProperties



addColumn
public void addColumn(String table, String column, String heading, int type) throws Exception(Code)
Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore
Parameters:
  column - Name of column for datastore
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values



addColumn
public void addColumn(String table, String column, String heading, int type, String href) throws Exception(Code)
Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore
Parameters:
  column - Name of column for datastore
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.



addColumn
public void addColumn(String table, String column, String heading, int type, String href, String format) throws Exception(Code)
Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore
Parameters:
  column - Name of column for datastore
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.
Parameters:
  format - Format used to display column in listbox (as in DataStore),else null.



addColumn
public void addColumn(String table, String column, String heading, int type, String href, String format, HtmlTableCellProperties propList) throws Exception(Code)
Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore. If table == null then table willbe forced to "NULL_TABLE"
Parameters:
  column - Name of column for datastore
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.
Parameters:
  format - Format used to display column in listbox (as in DataStore),else null.
Parameters:
  propList - HtmlTableCellProperties



addColumn
public void addColumn(String table, String column, String heading, int type, String href, String format, HtmlTableCellProperties propHeading, HtmlTableCellProperties propList) throws Exception(Code)
Creates a datastore column and corresponding display components for the search and list boxes.
Parameters:
  table - Name of table for datastore. If table == null then table willbe forced to "NULL_TABLE"
Parameters:
  column - Name of column for datastore
Parameters:
  heading - heading for search box and/or list box, or null
Parameters:
  type - Type of datastore column, using DataStore.DATATYPE_* values
Parameters:
  href - HREF to use in hotlink from this column in list box, elsenull.
Parameters:
  format - Format used to display column in listbox (as in DataStore),else null.
Parameters:
  propHeading - HtmlTableCellProperties
Parameters:
  propList - HtmlTableCellProperties



addDisplay
public void addDisplay(String fullColName, String heading, HtmlComponent component, HtmlTableCellProperties prop) throws Exception(Code)
Adds a component to the List display.
Parameters:
  fullColName - Datastore column name in form table.column
Parameters:
  heading - DataTable Heading, or null
Parameters:
  component - HtmlComponent The component to add
Parameters:
  prop - HtmlTableCellProperties Table cell properties



addDisplay
public void addDisplay(String fullColName, String heading, HtmlComponent component, HtmlTableCellProperties propHeading, HtmlTableCellProperties propComponent) throws Exception(Code)
Adds a component to the List display.
Parameters:
  fullColName - Datastore column name in form table.column
Parameters:
  heading - DataTable Heading, or null
Parameters:
  component - HtmlComponent The component to add
Parameters:
  propHeading - HtmlTableCellProperties the table-cell properties for thecolumn heading
Parameters:
  propComponent - HtmlTableCellProperties the table-cell properties for the listdata



addPropertyExpression
public void addPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval) throws NoSuchMethodException, DataStoreException(Code)
This method will add a property expression to the HtmlDataTable. The property expression will automatically set a property value on the specified component with the results of the passed expression as each row in the table is processed. This can be used for example to make a component invisible or visible depending on the value in the datastore for a particular row: ex: addPropertyExpression(comp,"visible","bucket==1") will call the setVisible method on the component comp passing the results of the expression.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have acorresponding setProperty method or this method will throw aNoSuchMethodException
Parameters:
  expEval - DataStoreEvaluator The datastore evaluator that evaluates theexpression
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 property expression will automatically set a property value on the specified component with the results of the passed expression as each row in the table is processed. This can be used for example to make a component invisible or visible depending on the value in the datastore for a particular row: ex: addPropertyExpression(comp,"visible","bucket==1") will call the setVisible method on the component comp passing the results of the expression.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have acorresponding setProperty method or this method will throw aNoSuchMethodException
Parameters:
  propExpression - com.salmonllc.html.PropertyExpression The instance ofPropertyExpression 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)
This method will add a property expression to the HtmlDataTable. The property expression will automatically set a property value on the specified component with the results of the passed expression as each row in the table is processed. This can be used for example to make a component invisible or visible depending on the value in the datastore for a particular row: ex: addPropertyExpression(comp,"visible","bucket==1") will call the setVisible method on the component comp passing the results of the expression.
Parameters:
  comp - The component to set the property for
Parameters:
  propertyName - The name of the property to set. The component must have acorresponding setProperty method or this method will throw aNoSuchMethodException
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
protected HtmlComponent findSortComponent(HtmlComponent sortComp)(Code)



generateHTML
public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception(Code)



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



generateInitialHTML
public void generateInitialHTML(PrintWriter p) throws Exception(Code)



getAlign
public String getAlign()(Code)
Returns the alignment property for the table. align Valid values are ALIGN_LEFT,ALIGN_CENTER,ALIGN_RIGHT andALIGN_NONE.



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



getBackgroundColor
protected String getBackgroundColor(String currentColor)(Code)



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



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 true if heading components should be underline links that sort the list.



getColumnWidth
public int getColumnWidth(int column)(Code)
This method gets the minimum width for a particular column in the table or -1 if the column width has not been set



getComponents
public Enumeration getComponents()(Code)
This method returns all the elements in the container.



getDataStoreBuffer
public DataStoreBuffer getDataStoreBuffer()(Code)
Returns the internal data store buffer used by the 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)
This method gets the first row displayed on the current page.



getFooterComponents
protected Vector getFooterComponents()(Code)
Gets a vector containing the components in the data table footer.



getFooterComponentsSize
public int getFooterComponentsSize()(Code)
This method returns all the elements in the container.



getGenImagesForPagingButtons
public boolean getGenImagesForPagingButtons()(Code)
Gets whether the or not paging buttons will be generated images or regular submit buttons.



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



getHeadingComponentAt
public HtmlComponent getHeadingComponentAt(int pos)(Code)
This method returns the heading component at the specified position or null if non is found.



getHeadingComponentAt
public HtmlComponent getHeadingComponentAt(String name)(Code)
This method returns the heading component at that is the same as the name specified or null if none is found.



getHeadingComponents
protected Vector getHeadingComponents()(Code)
Gets a vector containing the components in the data table heading.



getHeadingComponentsSize
public int getHeadingComponentsSize()(Code)
This method returns all the elements in the container.



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



getLinkFont
public String getLinkFont()(Code)
This method returns the font that is being used for links created with addColumn.



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



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



getRepeatHeadingsAfterBreak
public boolean getRepeatHeadingsAfterBreak()(Code)
A true false value indicating whether the heading band should be reprinted after a page break



getRowComponentAt
public HtmlComponent getRowComponentAt(int pos)(Code)
This method returns the row component at the specified position or null if non is found.



getRowComponentAt
public HtmlComponent getRowComponentAt(String name)(Code)
This method returns the row component at that is the same as the name specified or null if none is found.



getRowComponents
protected Vector getRowComponents()(Code)
Gets a vector containing the components in a data table row.



getRowComponentsSize
public int getRowComponentsSize()(Code)
This method returns all the elements in the container.



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.



getSizeOption
public int getSizeOption()(Code)
This method returns the size option for the table and each cell in it. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



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.



getStyle
protected String getStyle(String currentStyle)(Code)



getTableHeight
public int getTableHeight()(Code)
Returns the table height (used for tables withpageButtonType=PAGE_BUTTON_TYPE_SCROLLBAR).



getTheme
public String getTheme()(Code)
This method returns the property theme for the component.



getUseCache
public boolean getUseCache()(Code)
If the image is dynamically generated, this method will indicate whether or not the Objectstore should cache it.



getUseLinksForPagingButtons
public boolean getUseLinksForPagingButtons()(Code)
Gets whether the or not paging buttons will be links or submit.



getWidth
public int getWidth()(Code)
This method returns the width of the table.



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
protected void processPropertyExpressions(int row)(Code)



removeAll
public void removeAll()(Code)
Removes all the components from the DataTable



removeRowComponent
public void removeRowComponent(HtmlComponent comp)(Code)
Removes an html component from the row container.
Parameters:
  comp - The component to remove



reset
public void reset()(Code)



resetControlBreakFooterComponents
public void resetControlBreakFooterComponents()(Code)
This method will remove all Control Break Footer Components from the DataTable.



resetControlBreakHeadingComponents
public void resetControlBreakHeadingComponents()(Code)
This method will remove all Control Break Heading Components from the DataTable.



resetFooterComponents
public void resetFooterComponents()(Code)
This method will remove all Footer Components from the DataTable.



resetHeadingComponents
public void resetHeadingComponents()(Code)
This method will remove all Heading Components from the DataTable.



resetRowComponents
public void resetRowComponents()(Code)
This method will remove all Row Components from the DataTable.



setAlign
public void setAlign(String align)(Code)
Sets the alignment property for the table.
Parameters:
  align - Valid values are ALIGN_LEFT,ALIGN_CENTER,ALIGN_RIGHT andALIGN_NONE.



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.



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)



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 clickSort)(Code)
Set to true if heading components should be underline links that sort the list.



setColumnWidth
public void setColumnWidth(int column, int width)(Code)
Sets the column width for a particular column in the table.



setContMessage
public void setContMessage(HtmlComponent comp)(Code)
Use this method to set a continuation message for an HtmlDataTable with Control Break Columns. The component will be set to visible only for control break headings where the first row on the page is not the first row in the group.



setControlBreakFooterComponentAt
public void setControlBreakFooterComponentAt(int column, HtmlComponent comp)(Code)
Sets a control break footer component at a particular row position in the table.



setControlBreakFooterComponentAt
public void setControlBreakFooterComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a control break footer component at a particular column position in the table. The cell in the table will use properties specified in the props argument.



setControlBreakFooterComponents
public void setControlBreakFooterComponents(HtmlComponent comp)(Code)
Sets all the control break footer components on a particular row in the table. If you want to use HtmlTableCellProperties you will have to use setControlBreakFooterComponentAt(int,HtmlComponent,HtmlTableCellProperties)



setControlBreakFooterComponents
public void setControlBreakFooterComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets all the control break footer components on a particular row in the table. If you want to use HtmlTableCellProperties pass an array of HtmlTableCellProperties with the ones that do not need cell props it as null.



setControlBreakHeadingComponentAt
public void setControlBreakHeadingComponentAt(int column, HtmlComponent comp)(Code)
Sets a control break heading component at a particular row position in the table.



setControlBreakHeadingComponentAt
public void setControlBreakHeadingComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a control break heading component at a particular column position in the table. The cell in the table will use properties specified in the props argument.



setControlBreakHeadingComponents
public void setControlBreakHeadingComponents(HtmlComponent comp)(Code)
Sets all the control break heading components on a particular row in the table. If you want to use HtmlTableCellProperties you will have to use setControlBreakHeadingComponentAt(int,HtmlComponent,HtmlTableCellProperties)



setControlBreakHeadingComponents
public void setControlBreakHeadingComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets all the control break heading components on a particular row in the table. If you want to use HtmlTableCellProperties pass an array of HtmlTableCellProperties with the ones that do not need cell props it as null.



setDataStore
public void setDataStore(DataStoreBuffer d)(Code)
Sets the internal data store used by the component.



setDisplayRowComponents
public void setDisplayRowComponents(boolean display)(Code)
Use this method if you don't want the datatable to display the band with row components.



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



setFooterComponentAt
public void setFooterComponentAt(int column, HtmlComponent comp)(Code)
Sets a footer component at a particular row position in the table.



setFooterComponentAt
public void setFooterComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a footer component at a particular row position in the table. The cell in the table will use properties specified in the props argument.



setFooterComponents
public void setFooterComponents(HtmlComponent comp)(Code)
Sets all the footer components on a particular row in the table. If you want to use HtmlTableCellProperties you will have to use setFooterComponentAt(int,HtmlComponent,HtmlTableCellProperties)



setFooterComponents
public void setFooterComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets all the footer components on a particular row in the table. If you want to use HtmlTableCellProperties pass an array of HtmlTableCellProperties with the ones that do not need cell props it as null.



setGenImagesForPagingButtons
public void setGenImagesForPagingButtons(boolean gen)(Code)
Sets whether the or not paging buttons will be generated images or regular submit buttons.



setGenTHeadAndBody
public void setGenTHeadAndBody(boolean genTHeadAndBody)(Code)
trueif the component will generate THEAD, TBODY and TFOOT tagsaround the sections of the table.



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



setHeadingComponentAt
public void setHeadingComponentAt(int column, HtmlComponent comp)(Code)
Sets a heading component at a particular row position in the table.



setHeadingComponentAt
public void setHeadingComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a heading component at a particular row position in the table. The cell in the table will use properties specified in the props argument.



setHeadingComponents
public void setHeadingComponents(HtmlComponent comp)(Code)
Sets all the heading components on a particular row in the table. If you want to use HtmlTableCellProperties you wil have to use setHeadingComponentAt(int,HtmlComponent,HtmlTableCellProperties)



setHeadingComponents
public void setHeadingComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets all the heading components on a particular row in the table. If you want to use HtmlTableCellProperties pass an array of HtmlTableCellProperties with the ones that do not need cell props it as null.



setHeadingStyleClassName
public void setHeadingStyleClassName(String string)(Code)

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



setLinkFont
public void setLinkFont(String font)(Code)
This method set which font will be used for links created with addColumn.



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



setPage
public void setPage(int page)(Code)
This method will scroll to the first row on the current selected page



setPageBreak
public void setPageBreak(boolean bAddPageBreak)(Code)
Adds a page break to this table for printing purposes (IE 5 and up only).



setPageBreakIndex
public void setPageBreakIndex(int idx)(Code)
add a page break style to the rows depening on the index Creation date: (11/15/01 1:40:29 PM)
Parameters:
  idx - int



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, PAGE_BUTTON_TYPE_SCROLLBAR



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



setRepeatHeadingsAfterBreak
public void setRepeatHeadingsAfterBreak(boolean repeatHeadingsAfterBreak)(Code)
A true false value indicating whether the heading band should be reprinted after a page break



setRowBackgroundColor1
public void setRowBackgroundColor1(String value)(Code)
Sets the background color for rows in the data table. Rows can alternate in color and this one sets the second color.



setRowBackgroundColor2
public void setRowBackgroundColor2(String value)(Code)
Sets the background color for rows in the data table. Rows can alternate in color and this one sets the second color.



setRowComponentAt
public void setRowComponentAt(int column, HtmlComponent comp)(Code)
Sets a row component at a particular row position in the table.



setRowComponentAt
public void setRowComponentAt(int column, HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a row component at a particular row position in the table. The cell in the table will use properties specified in the props argument.



setRowComponents
public void setRowComponents(HtmlComponent comp)(Code)
Sets a row component at a particular row position in the table.



setRowComponents
public void setRowComponents(HtmlComponent comp, HtmlTableCellProperties props)(Code)
Sets a row component at a particular row position in the table. If you want to use HtmlTableCellProperties pass an array of HtmlTableCellProperties with the ones that do not need cell props it as null.



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.



setSizeOption
public void setSizeOption(int option)(Code)
This method sets the size option for the table and each cell in it. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



setSummaryRowText
public void setSummaryRowText(String summaryRowText)(Code)
This method sets the size option for the table and each cell in it. Valid return values are SIZE_PIXELS or SIZE_PERCENT.



setTableHeight
public void setTableHeight(int tableHeight)(Code)

Parameters:
  Sets - the table height (used for tables withpageButtonType=PAGE_BUTTON_TYPE_SCROLLBAR).



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



setUseCache
public void setUseCache(boolean useCache)(Code)
If the image is dynamically generated, this method will indicate whether or not the Objectstore should cache it.



setUseLinksForPagingButtons
public void setUseLinksForPagingButtons(boolean gen)(Code)
Sets whether the or not paging buttons will be links or submit.



setWidth
public void setWidth(int width)(Code)
This method sets the minimum width of the table in either pixels or percent depending on size option.



sortOnComponent
protected void sortOnComponent(HtmlComponent comp, int colNo) throws Exception(Code)
This method was created in VisualAge.
Parameters:
  comp - com.salmonllc.html.HtmlComponent



Fields inherited from com.salmonllc.html.HtmlContainer
protected boolean _center(Code)(Java Doc)
protected Vector _componentsVec(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected HtmlComponent _submit(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlContainer
public void add(HtmlComponent comp)(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 Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public boolean getCenter()(Code)(Java Doc)
public HtmlComponent getComponent(String name)(Code)(Java Doc)
public Enumeration getComponents()(Code)(Java Doc)
public boolean getEnabled()(Code)(Java Doc)
public HtmlComponent getSubmitComponent()(Code)(Java Doc)
public void insertComponentAt(HtmlComponent comp, int index)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void remove(HtmlComponent comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public boolean replaceComponent(HtmlComponent comp, Object compToReplace)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setCenter(boolean center)(Code)(Java Doc)
public void setEnabled(boolean enabled)(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)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(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.