Java Doc for STableColumn.java in  » Swing-Library » wings3 » org » wings » table » 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 » Swing Library » wings3 » org.wings.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.table.STableColumn

All known Subclasses:   org.wingx.table.XTableColumn,
STableColumn
public class STableColumn implements Serializable(Code)
STableColumn


Field Summary
protected  STableCellEditorcellEditor
    
protected  STableCellRenderercellRenderer
    
protected  STableCellRendererheaderRenderer
    
protected  ObjectheaderValue
    
protected  booleanhidden
    
protected  Objectidentifier
    
protected  intmodelIndex
    
protected  Stringwidth
    

Constructor Summary
public  STableColumn()
     Empty constructor of a table column.
public  STableColumn(int modelIndex)
     Constructs a new table column.
public  STableColumn(int modelIndex, String width)
     Constructs a new table column.
Parameters:
  modelIndex - The index of this column inside the data model.
Parameters:
  width - The desired width of this column as relative weight.
public  STableColumn(int modelIndex, String width, STableCellRenderer cellRenderer, STableCellEditor cellEditor)
     Constructs a new table column.

Method Summary
public  STableCellEditorgetCellEditor()
     Returns the TableCellEditor used by the JTable to edit values for this column.
public  STableCellRenderergetCellRenderer()
     Returns the TableCellRenderer used by the JTable to draw values for this column.
public  STableCellRenderergetHeaderRenderer()
     Returns the TableCellRenderer used to draw the header of the STableColumn.
public  ObjectgetHeaderValue()
     Returns the Object used as the value for the header renderer.
public  ObjectgetIdentifier()
     Returns the identifier object for this column.
public  intgetModelIndex()
     Returns the cmp2 index for this column.
public  StringgetWidth()
    
public  booleanisHidden()
    
public  voidsetCellEditor(STableCellEditor cellEditor)
     Sets the editor to used by when a cell in this column is edited.
public  voidsetCellRenderer(STableCellRenderer cellRenderer)
     Sets the TableCellRenderer used by JTable to draw individual values for this column.
public  voidsetHeaderRenderer(STableCellRenderer headerRenderer)
     Sets the TableCellRenderer used to draw the STableColumn's header to headerRenderer.
public  voidsetHeaderValue(Object headerValue)
     Sets the Object whose string representation will be used as the value for the header for this column.
public  voidsetHidden(boolean hidden)
    
public  voidsetIdentifier(Object identifier)
     Sets the STableColumn's identifier to anIdentifier.
public  voidsetModelIndex(int modelIndex)
     Sets the cmp2 index for this column.
public  voidsetWidth(String width)
    

Field Detail
cellEditor
protected STableCellEditor cellEditor(Code)



cellRenderer
protected STableCellRenderer cellRenderer(Code)



headerRenderer
protected STableCellRenderer headerRenderer(Code)



headerValue
protected Object headerValue(Code)



hidden
protected boolean hidden(Code)



identifier
protected Object identifier(Code)



modelIndex
protected int modelIndex(Code)



width
protected String width(Code)




Constructor Detail
STableColumn
public STableColumn()(Code)
Empty constructor of a table column. Assumes model index 0.



STableColumn
public STableColumn(int modelIndex)(Code)
Constructs a new table column.
Parameters:
  modelIndex - The index of this column inside the data model.



STableColumn
public STableColumn(int modelIndex, String width)(Code)
Constructs a new table column.
Parameters:
  modelIndex - The index of this column inside the data model.
Parameters:
  width - The desired width of this column as relative weight. (1 = default)



STableColumn
public STableColumn(int modelIndex, String width, STableCellRenderer cellRenderer, STableCellEditor cellEditor)(Code)
Constructs a new table column.
Parameters:
  modelIndex - The index of this column inside the data model.
Parameters:
  width - The desired width of this column in px.
Parameters:
  cellRenderer - The renderer for cells in this column
Parameters:
  cellEditor - The editor for cells in this column




Method Detail
getCellEditor
public STableCellEditor getCellEditor()(Code)
Returns the TableCellEditor used by the JTable to edit values for this column. When the cellEditor is null, the JTable uses a default editor based on the class of the cells in that column. The default value for a cellEditor is null. the cellEditor property
See Also:   STableColumn.setCellEditor
See Also:   JTable.setDefaultEditor



getCellRenderer
public STableCellRenderer getCellRenderer()(Code)
Returns the TableCellRenderer used by the JTable to draw values for this column. The cellRenderer of the column not only controls the visual look for the column, but is also used to interpret the value object supplied by the TableModel. When the cellRenderer is null, the JTable uses a default renderer based on the class of the cells in that column. The default value for a cellRenderer is null. the cellRenderer property
See Also:   STableColumn.setCellRenderer
See Also:   JTable.setDefaultRenderer



getHeaderRenderer
public STableCellRenderer getHeaderRenderer()(Code)
Returns the TableCellRenderer used to draw the header of the STableColumn. When the headerRenderer is null, the JTableHeader uses its defaultRenderer. The default value for a headerRenderer is null. the headerRenderer property
See Also:   STableColumn.setHeaderRenderer
See Also:   STableColumn.setHeaderValue
See Also:   javax.swing.table.JTableHeader.getDefaultRenderer



getHeaderValue
public Object getHeaderValue()(Code)
Returns the Object used as the value for the header renderer. the headerValue property
See Also:   STableColumn.setHeaderValue



getIdentifier
public Object getIdentifier()(Code)
Returns the identifier object for this column. Note identifiers are not used by JTable, they are purely a convenience for external use. If the identifier is null, getIdentifier() returns getHeaderValue as a default. the identifier property
See Also:   STableColumn.setIdentifier



getModelIndex
public int getModelIndex()(Code)
Returns the cmp2 index for this column. the modelIndex property



getWidth
public String getWidth()(Code)
The widht of this column including the unit.



isHidden
public boolean isHidden()(Code)
Indicates if this column is hidden true if this column is invisible



setCellEditor
public void setCellEditor(STableCellEditor cellEditor)(Code)
Sets the editor to used by when a cell in this column is edited.
Parameters:
  cellEditor - the new cellEditor
See Also:   STableColumn.getCellEditor
See Also:    bound: true
See Also:   description: The editor to use for cell values.



setCellRenderer
public void setCellRenderer(STableCellRenderer cellRenderer)(Code)
Sets the TableCellRenderer used by JTable to draw individual values for this column.
Parameters:
  cellRenderer - the new cellRenderer
See Also:   STableColumn.getCellRenderer
See Also:    bound: true
See Also:   description: The renderer to use for cell values.



setHeaderRenderer
public void setHeaderRenderer(STableCellRenderer headerRenderer)(Code)
Sets the TableCellRenderer used to draw the STableColumn's header to headerRenderer.
Parameters:
  headerRenderer - the new headerRenderer
See Also:   STableColumn.getHeaderRenderer
See Also:   bound: true
See Also:   description: The header renderer.



setHeaderValue
public void setHeaderValue(Object headerValue)(Code)
Sets the Object whose string representation will be used as the value for the header for this column.



setHidden
public void setHidden(boolean hidden)(Code)
Indicates if this column should be hidden
Parameters:
  hidden - true if this column should be invisible



setIdentifier
public void setIdentifier(Object identifier)(Code)
Sets the STableColumn's identifier to anIdentifier.

Note: identifiers are not used by the JTable, they are purely a convenience for the external tagging and location of columns.
Parameters:
  identifier - an identifier for this column
See Also:   STableColumn.getIdentifier
See Also:   bound: true
See Also:   description: A unique identifier for this column.




setModelIndex
public void setModelIndex(int modelIndex)(Code)
Sets the cmp2 index for this column. The cmp2 index is the index of the column in the cmp2 that will be displayed by this STableColumn. As the STableColumn is moved around in the view the cmp2 index remains constant.
Parameters:
  modelIndex - the new modelIndexbound: truedescription: The cmp2 index.



setWidth
public void setWidth(String width)(Code)
The widht for this column including the unit
Parameters:
  width - The width



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.