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


org.itsnat.comp.ItsNatTableHeader

All known Subclasses:   org.itsnat.impl.comp.ItsNatTableHeaderImpl,
ItsNatTableHeader
public interface ItsNatTableHeader extends ItsNatElementComponent(Code)
Is the base interface of table header components.

A table header component depends on a table component and is created automatically by the table whether the table markup has a header (for instance a <thead>).

A header component is not very different to a list but column values (header data model) are managed by the javax.swing.table.TableModel data model of the parent table (see DefaultTableModel.addColumn(Object)).

Any change to the header data model is notified to the component and the markup is rendered again. The data model ever mandates over the markup, any initial markup content (initial header cell) is removed.

Almost a header cell must be present in the markup, this cell is used as pattern to create new cells, and is removed because by default the header model is empty.

If a header column is clicked the column is selected.

There is no default header cell decoration when a complete column is selected, use a column selection model listener to detect when a column is selected.

Header cell indexes start in 0.


author:
   Jose Maria Arranz Santamaria




Method Summary
public  ItsNatTablegetItsNatTable()
     Returns the table component this header belongs to. the parent table component.
public  ItsNatTableHeaderCellRenderergetItsNatTableHeaderCellRenderer()
     Returns the current component renderer.
public  ItsNatTableHeaderUIgetItsNatTableHeaderUI()
     Returns the user interface manager of this component.
public  ListSelectionModelgetListSelectionModel()
     Returns the current header selection model.
public  intgetSelectedIndex()
     Returns the index of the first selected header column.
public  voidsetItsNatTableHeaderCellRenderer(ItsNatTableHeaderCellRenderer renderer)
     Sets the component renderer.
public  voidsetListSelectionModel(ListSelectionModel selectionModel)
     Sets the new selection model.

If the new selection model is the current defined then is "reset", component listener is removed and added again.

public  voidsetSelectedIndex(int index)
     Selects the specified header column.



Method Detail
getItsNatTable
public ItsNatTable getItsNatTable()(Code)
Returns the table component this header belongs to. the parent table component. Never is null.



getItsNatTableHeaderCellRenderer
public ItsNatTableHeaderCellRenderer getItsNatTableHeaderCellRenderer()(Code)
Returns the current component renderer. This renderer converts a column value of the table header to markup. the current renderer. By default uses the default renderer (ItsNatComponentManager.createDefaultItsNatTableHeaderCellRenderer)
See Also:   ItsNatTableHeader.setItsNatTableHeaderCellRenderer(ItsNatTableHeaderCellRenderer)



getItsNatTableHeaderUI
public ItsNatTableHeaderUI getItsNatTableHeaderUI()(Code)
Returns the user interface manager of this component. the user interface manager.



getListSelectionModel
public ListSelectionModel getListSelectionModel()(Code)
Returns the current header selection model. This selection model is used to manage only the selection state of header columns.

By default if a header cell is clicked the selection model is used to remember this selection, may be used to do typical tasks like to sort the rows by the selected column.

the current selection model. By default a javax.swing.DefaultListSelectionModel instancein ListSelectionModel.SINGLE_SELECTION mode.
See Also:   ItsNatTableHeader.setListSelectionModel(javax.swing.ListSelectionModel)



getSelectedIndex
public int getSelectedIndex()(Code)
Returns the index of the first selected header column. If the component allows multiple selection returns the first one. index of the first selected header column. -1 if none is selected.



setItsNatTableHeaderCellRenderer
public void setItsNatTableHeaderCellRenderer(ItsNatTableHeaderCellRenderer renderer)(Code)
Sets the component renderer.
Parameters:
  renderer - the new renderer.
See Also:   ItsNatTableHeader.getItsNatTableHeaderCellRenderer()
See Also:   



setListSelectionModel
public void setListSelectionModel(ListSelectionModel selectionModel)(Code)
Sets the new selection model.

If the new selection model is the current defined then is "reset", component listener is removed and added again. Use this technique if you want to add a listener to be executed before the default component listener.
Parameters:
  selectionModel - the new selection model.
See Also:   ItsNatTableHeader.getListSelectionModel()




setSelectedIndex
public void setSelectedIndex(int index)(Code)
Selects the specified header column. If this component allows multiple selection, the current selection is cleared before.
Parameters:
  index - the index of the item to select



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