Java Doc for ItsNatTableUI.java in  » Ajax » ItsNat » org » itsnat » comp » ui » 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 » Ajax » ItsNat » org.itsnat.comp.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.itsnat.comp.ui.ItsNatTableUI

All known Subclasses:   org.itsnat.impl.comp.ui.ItsNatTableUIImpl,
ItsNatTableUI
public interface ItsNatTableUI extends ItsNatElementComponentUI(Code)
Is the base interface of the User Interface of a table body component.

Table cells are managed as a DOM element table, using the current table structure and renderer.

Current implementation does not use the data model and relays heavily on org.itsnat.core.domutil.ElementTable .

Rows and column indexes are 0 based.


author:
   Jose Maria Arranz Santamaria
See Also:   ItsNatTable.getItsNatTableUI
See Also:   ItsNatTable.getItsNatTableCellRenderer
See Also:   ItsNatTable.getItsNatTableStructure
See Also:   
See Also:   ItsNatTableHeaderUI




Method Summary
public  ElementgetBodyElement()
     Returns the element used as parent of the table body.
public  ElementgetCellContentElementAt(int row, int column)
     Returns the content element of the cell.
public  ElementgetCellElementAt(int row, int column)
     Returns the cell element at the specified row and column.
Parameters:
  row - the row index of the cell element to search.
Parameters:
  column - the column index of the cell element to search.
public  Element[]getCellElementsOfColumn(int column)
     Returns the cell elements of the specified column as an array.
Parameters:
  column - the column index.
public  Element[]getCellElementsOfRow(int row)
     Returns the cell elements of the specified row as an array.
Parameters:
  row - the row index.
public  intgetColumnCount()
     Returns the number of columns.
public  ItsNatTablegetItsNatTable()
     Returns the associated component object.
public  ItsNatTableCellUIgetItsNatTableCellUIAt(int row, int column)
     Returns an object info of the cell element at the specified row and column.
Parameters:
  row - row index of the cell element.
Parameters:
  column - column index of the cell element.
public  ItsNatTableCellUIgetItsNatTableCellUIFromNode(Node node)
     Returns an object info of the cell element containing the specified node (or the node is itself an element of the table body).
Parameters:
  node - the node to search for.
public  ItsNatTableHeaderUIgetItsNatTableHeaderUI()
     Returns the header user interface manager of this component. the header user interface manager.
public  ElementgetRowContentElementAt(int row)
     Returns the content row element.
public  intgetRowCount()
     Returns the number of rows.
public  ElementgetRowElementAt(int row)
     Returns the row element at the specified index.
Parameters:
  row - index of the row element to search.
public  voidinsertColumnAt(int column, Object[] values)
     Inserts a new column at the specified position, and renders the specified values.
public  voidinsertRowAt(int row, Object[] values)
     Inserts a new row element at the specified position rendering the specified cell values.
public  booleanisUsePatternMarkupToRender()
     Informs whether the original (saved as pattern) markup is used to render.
public  voidremoveAllColumns()
     Removes all columns.
public  voidremoveAllRows()
     Removes all row elements.
public  voidremoveColumnAt(int column)
     Removes the specified column.
public  voidremoveRowAt(int row)
     Removes the specified row element.
public  voidsetCellValueAt(int row, int column, Object value, boolean isSelected, boolean hasFocus)
     Renders the specified value into the cell element with the given row and column position.
Parameters:
  row - row of the cell.
public  voidsetColumnCount(int columns)
     Increases or shrinks the number of columns to fit the new size.
public  voidsetColumnValuesAt(int column, Object[] values, boolean[] isSelected, boolean[] hasFocus)
     Renders the specified values into the column with the given position.
public  voidsetRowCount(int rows)
     Increases or shrinks the number of rows to fit the new size.
public  voidsetRowValuesAt(int row, Object[] values, boolean[] isSelected, boolean[] hasFocus)
     Renders the specified values into the row element with the given position.
Parameters:
  row - index of the row element.
Parameters:
  values - the row values to render.
Parameters:
  isSelected - array with the current selection state of the row cells.
Parameters:
  hasFocus - array with the current focus state of the row cells.
public  voidsetUsePatternMarkupToRender(boolean value)
     Sets whether the original (saved as pattern) markup is used to render.



Method Detail
getBodyElement
public Element getBodyElement()(Code)
Returns the element used as parent of the table body. In an HTML <table> returns the <tbody> the body parent element.



getCellContentElementAt
public Element getCellContentElementAt(int row, int column)(Code)
Returns the content element of the cell. This element is obtained using the current structure.
Parameters:
  row - index of the row. the content element of the row.
See Also:   org.itsnat.core.domutil.ElementTable.getCellContentElementAt(intint)



getCellElementAt
public Element getCellElementAt(int row, int column)(Code)
Returns the cell element at the specified row and column.
Parameters:
  row - the row index of the cell element to search.
Parameters:
  column - the column index of the cell element to search. the element in this position or null if some index is out of range.
See Also:   org.itsnat.core.domutil.ElementTableBase.getCellElementAt(intint)
See Also:   



getCellElementsOfColumn
public Element[] getCellElementsOfColumn(int column)(Code)
Returns the cell elements of the specified column as an array.
Parameters:
  column - the column index. the cell element array or null if index is out of range.
See Also:   org.itsnat.core.domutil.ElementTableBase.getCellElementsOfColumn(int)
See Also:   



getCellElementsOfRow
public Element[] getCellElementsOfRow(int row)(Code)
Returns the cell elements of the specified row as an array.
Parameters:
  row - the row index. the cell element array or null if index is out of range.
See Also:   org.itsnat.core.domutil.ElementTableBase.getCellElementsOfRow(int)
See Also:   



getColumnCount
public int getColumnCount()(Code)
Returns the number of columns. the number of columns.
See Also:   org.itsnat.core.domutil.ElementTable.getColumnCount



getItsNatTable
public ItsNatTable getItsNatTable()(Code)
Returns the associated component object. the component object.



getItsNatTableCellUIAt
public ItsNatTableCellUI getItsNatTableCellUIAt(int row, int column)(Code)
Returns an object info of the cell element at the specified row and column.
Parameters:
  row - row index of the cell element.
Parameters:
  column - column index of the cell element. the object info of the matched table cell element. Null if row or column is out of range.This object is ever the same per cell and may be used to save any context data.
See Also:   ItsNatTableUI.getItsNatTableCellUIFromNode(Node)
See Also:   org.itsnat.core.domutil.ElementTableBase.getTableCellElementInfoAt(intint)



getItsNatTableCellUIFromNode
public ItsNatTableCellUI getItsNatTableCellUIFromNode(Node node)(Code)
Returns an object info of the cell element containing the specified node (or the node is itself an element of the table body).
Parameters:
  node - the node to search for. the object info of the matched child element. Null if this node is not contained by the table.This object is ever the same per cell and may be used to save any context data.
See Also:   ItsNatTableUI.getItsNatTableCellUIAt(int,int)
See Also:   org.itsnat.core.domutil.ElementTableBase.getTableCellElementInfoFromNode(Node)



getItsNatTableHeaderUI
public ItsNatTableHeaderUI getItsNatTableHeaderUI()(Code)
Returns the header user interface manager of this component. the header user interface manager. Null if this table has not a header.



getRowContentElementAt
public Element getRowContentElementAt(int row)(Code)
Returns the content row element. This element is obtained using the current structure.
Parameters:
  row - index of the row element. the content element.
See Also:   org.itsnat.comp.ItsNatTableStructure.getRowContentElement(org.itsnat.comp.ItsNatTableintElement)
See Also:   org.itsnat.core.domutil.ElementTable.getRowContentElementAt(int)
See Also:   



getRowCount
public int getRowCount()(Code)
Returns the number of rows. the number of rows.
See Also:   org.itsnat.core.domutil.ElementTableBase.getRowCount



getRowElementAt
public Element getRowElementAt(int row)(Code)
Returns the row element at the specified index.
Parameters:
  row - index of the row element to search. the row element in this position or null if index is out of range.
See Also:   org.itsnat.core.domutil.ElementTableBase.getRowElementAt(int)
See Also:   



insertColumnAt
public void insertColumnAt(int column, Object[] values)(Code)
Inserts a new column at the specified position, and renders the specified values.
Parameters:
  column - index of the new column.
Parameters:
  values - the column values to render.
See Also:   org.itsnat.core.domutil.ElementTable.insertColumnAt(intObject[])



insertRowAt
public void insertRowAt(int row, Object[] values)(Code)
Inserts a new row element at the specified position rendering the specified cell values.
Parameters:
  row - row index of the new row element.
Parameters:
  values - the cell values to render as markup.
See Also:   org.itsnat.core.domutil.ElementTable.insertRowAt(intObject[])



isUsePatternMarkupToRender
public boolean isUsePatternMarkupToRender()(Code)
Informs whether the original (saved as pattern) markup is used to render.

The default value is defined by org.itsnat.core.ItsNatDocument.isUsePatternMarkupToRender

true if the original markup is used.
See Also:   ItsNatTableUI.setUsePatternMarkupToRender(boolean)



removeAllColumns
public void removeAllColumns()(Code)
Removes all columns. The table body remains as a row list with no cells.
See Also:   org.itsnat.core.domutil.ElementTableBase.removeAllColumns
See Also:   



removeAllRows
public void removeAllRows()(Code)
Removes all row elements. The table body is now empty.
See Also:   org.itsnat.core.domutil.ElementTableBase.removeAllRows
See Also:   



removeColumnAt
public void removeColumnAt(int column)(Code)
Removes the specified column.
Parameters:
  column - index of the column to remove.
See Also:   org.itsnat.core.domutil.ElementTableBase.removeColumnAt(int)
See Also:   



removeRowAt
public void removeRowAt(int row)(Code)
Removes the specified row element.
Parameters:
  row - index of the row element to remove.
See Also:   org.itsnat.core.domutil.ElementTableBase.removeRowAt(int)
See Also:   



setCellValueAt
public void setCellValueAt(int row, int column, Object value, boolean isSelected, boolean hasFocus)(Code)
Renders the specified value into the cell element with the given row and column position.
Parameters:
  row - row of the cell.
Parameters:
  column - column of the cell.
Parameters:
  value - the value to render.
See Also:   org.itsnat.core.domutil.ElementTable.setCellValueAt(intintObject)



setColumnCount
public void setColumnCount(int columns)(Code)
Increases or shrinks the number of columns to fit the new size.

If the new size is bigger new columns are added at the end, if the size is lower tail columns are removed.


Parameters:
  columns - the new number of columns.
See Also:   org.itsnat.core.domutil.ElementTable.setColumnCount(int)
See Also:   



setColumnValuesAt
public void setColumnValuesAt(int column, Object[] values, boolean[] isSelected, boolean[] hasFocus)(Code)
Renders the specified values into the column with the given position.
Parameters:
  column - index of the column.
Parameters:
  values - the column values to render.
Parameters:
  isSelected - array with the current selection state of the column cells.
Parameters:
  hasFocus - array with the current focus state of the column cells. Current ItsNat implementation ever passes false values.
See Also:   org.itsnat.core.domutil.ElementTable.setColumnValuesAt(intObject[])



setRowCount
public void setRowCount(int rows)(Code)
Increases or shrinks the number of rows to fit the new size.

If the new size is bigger new row elements are added at the end, if the size is lower tail row elements are removed.


Parameters:
  rows - the new number of rows.
See Also:   org.itsnat.core.domutil.ElementTable.setRowCount(int)
See Also:   



setRowValuesAt
public void setRowValuesAt(int row, Object[] values, boolean[] isSelected, boolean[] hasFocus)(Code)
Renders the specified values into the row element with the given position.
Parameters:
  row - index of the row element.
Parameters:
  values - the row values to render.
Parameters:
  isSelected - array with the current selection state of the row cells.
Parameters:
  hasFocus - array with the current focus state of the row cells. Current ItsNat implementation ever passes false values.
See Also:   org.itsnat.core.domutil.ElementTable.setRowValuesAt(intObject[])



setUsePatternMarkupToRender
public void setUsePatternMarkupToRender(boolean value)(Code)
Sets whether the original (saved as pattern) markup is used to render.
Parameters:
  value - true to enable the use of original markup to render.
See Also:   ItsNatTableUI.isUsePatternMarkupToRender()



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