Java Doc for GenericTableColumn.java in  » Development » jga-Generic-Algorithms » net » sf » jga » swing » 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 » Development » jga Generic Algorithms » net.sf.jga.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.table.TableColumn
      net.sf.jga.swing.GenericTableColumn

GenericTableColumn
public class GenericTableColumn extends TableColumn (Code)
Column class used in conjuction with GenericTableModel.

Copyright © 2003-2005 David A. Hall
author:
   David A. Hall



Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn)
     Builds a read-only column that will apply the given functor to objects of the given class to get the value of specific cells.
public  GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn)
     Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells.
public  GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, UnaryFunctor<C, String> formatter, UnaryFunctor<String, C> parser)
     Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells. The setFn can be null: if it is, then this column will not be editable. The formatter will be used to build a GenericTableCellRenderer for the column if it is non-null.
public  GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, TableCellRenderer renderer, TableCellEditor editor)
     Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells. The setFn can be null: if it is, then this column will not be editable. Either the renderer or editor may be null: the Table will supply the default renderer/editor in this case.

Method Summary
public  Class<C>getColumnClass()
    
public  CgetValueAt(R rowvalue)
    
public  booleanisEditable()
    
public  voidsetValueAt(R rowvalue, Object obj)
    
public  StringtoString()
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
GenericTableColumn
public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn)(Code)
Builds a read-only column that will apply the given functor to objects of the given class to get the value of specific cells. A default table renderer will be used, as defined by the Table that uses this column.



GenericTableColumn
public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn)(Code)
Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells. The setFn can be null: if it is, then this column will not be editable. A default table renderer and editor will be used, as defined by the Table that uses this column.



GenericTableColumn
public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, UnaryFunctor<C, String> formatter, UnaryFunctor<String, C> parser)(Code)
Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells. The setFn can be null: if it is, then this column will not be editable. The formatter will be used to build a GenericTableCellRenderer for the column if it is non-null. If formatter, parser, and setFn are all non-null, then a GenericCellEditor will be built for this column. If any of these fields are null, the the Table that uses this column will supply the default renderer/editor.



GenericTableColumn
public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, TableCellRenderer renderer, TableCellEditor editor)(Code)
Builds a potentially editable column that will apply the given functors to objects of the given class to get and set the value of specific cells. The setFn can be null: if it is, then this column will not be editable. Either the renderer or editor may be null: the Table will supply the default renderer/editor in this case. Note that if the setFn is null, there will be no editor configured (as it would never be called anyway).




Method Detail
getColumnClass
public Class<C> getColumnClass()(Code)



getValueAt
public C getValueAt(R rowvalue)(Code)



isEditable
public boolean isEditable()(Code)



setValueAt
public void setValueAt(R rowvalue, Object obj)(Code)



toString
public String toString()(Code)



Fields inherited from javax.swing.table.TableColumn
final public static String CELL_RENDERER_PROPERTY(Code)(Java Doc)
final public static String COLUMN_WIDTH_PROPERTY(Code)(Java Doc)
final public static String HEADER_RENDERER_PROPERTY(Code)(Java Doc)
final public static String HEADER_VALUE_PROPERTY(Code)(Java Doc)
protected TableCellEditor cellEditor(Code)(Java Doc)
protected TableCellRenderer cellRenderer(Code)(Java Doc)
protected TableCellRenderer headerRenderer(Code)(Java Doc)
protected Object headerValue(Code)(Java Doc)
protected Object identifier(Code)(Java Doc)
protected boolean isResizable(Code)(Java Doc)
protected int maxWidth(Code)(Java Doc)
protected int minWidth(Code)(Java Doc)
protected int modelIndex(Code)(Java Doc)
protected transient int resizedPostingDisableCount(Code)(Java Doc)
protected int width(Code)(Java Doc)

Methods inherited from javax.swing.table.TableColumn
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
protected TableCellRenderer createDefaultHeaderRenderer()(Code)(Java Doc)
public void disableResizedPosting()(Code)(Java Doc)
public void enableResizedPosting()(Code)(Java Doc)
public TableCellEditor getCellEditor()(Code)(Java Doc)
public TableCellRenderer getCellRenderer()(Code)(Java Doc)
public TableCellRenderer getHeaderRenderer()(Code)(Java Doc)
public Object getHeaderValue()(Code)(Java Doc)
public Object getIdentifier()(Code)(Java Doc)
public int getMaxWidth()(Code)(Java Doc)
public int getMinWidth()(Code)(Java Doc)
public int getModelIndex()(Code)(Java Doc)
public int getPreferredWidth()(Code)(Java Doc)
public synchronized PropertyChangeListener[] getPropertyChangeListeners()(Code)(Java Doc)
public boolean getResizable()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void setCellEditor(TableCellEditor cellEditor)(Code)(Java Doc)
public void setCellRenderer(TableCellRenderer cellRenderer)(Code)(Java Doc)
public void setHeaderRenderer(TableCellRenderer headerRenderer)(Code)(Java Doc)
public void setHeaderValue(Object headerValue)(Code)(Java Doc)
public void setIdentifier(Object identifier)(Code)(Java Doc)
public void setMaxWidth(int maxWidth)(Code)(Java Doc)
public void setMinWidth(int minWidth)(Code)(Java Doc)
public void setModelIndex(int modelIndex)(Code)(Java Doc)
public void setPreferredWidth(int preferredWidth)(Code)(Java Doc)
public void setResizable(boolean isResizable)(Code)(Java Doc)
public void setWidth(int width)(Code)(Java Doc)
public void sizeWidthToFit()(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.