Java Doc for TableColumn.java in  » Ajax » MyGWT » net » mygwt » ui » client » widget » 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 » Ajax » MyGWT » net.mygwt.ui.client.widget.table 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.mygwt.ui.client.widget.table.TableColumn

All known Subclasses:   net.mygwt.ui.client.widget.treetable.TreeTableColumn,
TableColumn
public class TableColumn (Code)
A column in a Table. Column sizes can be specified as either pixels or percentanges. Width values less than or equal to 1 are treated as percentages.

Note: Public members should not be modified after the column is added to a column model.



Field Summary
final public static  ComparatorDEFAULT_COMPARATOR
    
 intindex
    
 intsortDir
    

Constructor Summary
public  TableColumn(String id, float width)
     Creates a new column instance.
public  TableColumn(String id, String text)
     Creates a new column instance.
public  TableColumn(String id, String text, float width)
     Creates a new column instance.

Method Summary
public  intgetAlignment()
     Returns the column's alignment.
public  ComparatorgetComparator()
     returns the table's comparator.
public  ObjectgetData()
     Returns the application defined data associated with the column, or null if it has not been set.
public  ObjectgetData(String key)
     Returns the application defined property for the given name, or null if it has not been set.
public  StringgetID()
     Returns the column's id.
protected  intgetIndex()
    
public  intgetMaxWidth()
     Returns the column's maximum width.
public  intgetMinWidth()
     Returns the column's minimum width.
public  CellRenderergetRenderer()
     Returns the column's cell rendered.
public  intgetSortDir()
     Returns the column's current sort direction.
public  StringgetText()
     Returns the column's text.
public  floatgetWidth()
     Returns the column's width.
public  booleanisHidden()
     Returns true if hidden, false otherwise.
public  booleanisResizable()
     Returns true if the column is resizable.
public  booleanisSortable()
     Returns true if the column is sortable.
public  voidsetAlignment(int align)
     Sets the column's alignment.
public  voidsetComparator(Comparator comparator)
     Sets the column's comparator.
public  voidsetData(Object data)
     Sets the application defined column data.
public  voidsetData(String key, Object data)
     Sets the application defined property with the given name.
public  voidsetHidden(boolean hidden)
     Sets the column's hidden state.
protected  voidsetIndex(int index)
    
public  voidsetMaxWidth(int maxWidth)
     Sets the column's maximum width.
public  voidsetMinWidth(int minWidth)
     Sets the column's minimum width.
public  voidsetRenderer(CellRenderer renderer)
     Sets the column's cell renderer.
public  voidsetResizable(boolean resizable)
     Specifies if the column may be resized.
public  voidsetSortable(boolean sortable)
     Sets the sortable state.
public  voidsetWidth(float width)
     Sets the column's width.

Field Detail
DEFAULT_COMPARATOR
final public static Comparator DEFAULT_COMPARATOR(Code)



index
int index(Code)



sortDir
int sortDir(Code)




Constructor Detail
TableColumn
public TableColumn(String id, float width)(Code)
Creates a new column instance.
Parameters:
  id - the column id
Parameters:
  width - the column width, widths that are 1 or less are treated aspercentages.



TableColumn
public TableColumn(String id, String text)(Code)
Creates a new column instance.
Parameters:
  id - the column id
Parameters:
  text - the column text



TableColumn
public TableColumn(String id, String text, float width)(Code)
Creates a new column instance.
Parameters:
  id - the column id
Parameters:
  text - the column text
Parameters:
  width - the width




Method Detail
getAlignment
public int getAlignment()(Code)
Returns the column's alignment. the alignment



getComparator
public Comparator getComparator()(Code)
returns the table's comparator. the comparator



getData
public Object getData()(Code)
Returns the application defined data associated with the column, or null if it has not been set.



getData
public Object getData(String key)(Code)
Returns the application defined property for the given name, or null if it has not been set.
Parameters:
  key - the name of the property the value or null if it has not been set



getID
public String getID()(Code)
Returns the column's id. the id



getIndex
protected int getIndex()(Code)



getMaxWidth
public int getMaxWidth()(Code)
Returns the column's maximum width. the max width



getMinWidth
public int getMinWidth()(Code)
Returns the column's minimum width. the minimum width



getRenderer
public CellRenderer getRenderer()(Code)
Returns the column's cell rendered. the cell renderer



getSortDir
public int getSortDir()(Code)
Returns the column's current sort direction. the sort direction (NONE, ASC, DESC)



getText
public String getText()(Code)
Returns the column's text. the text



getWidth
public float getWidth()(Code)
Returns the column's width. the column width



isHidden
public boolean isHidden()(Code)
Returns true if hidden, false otherwise. the hidden state



isResizable
public boolean isResizable()(Code)
Returns true if the column is resizable. the resizable state



isSortable
public boolean isSortable()(Code)
Returns true if the column is sortable. the sortable state



setAlignment
public void setAlignment(int align)(Code)
Sets the column's alignment. Valid values are LEFT, CENTER, and RIGHT. Default value is LEFT.
Parameters:
  align - the alignment



setComparator
public void setComparator(Comparator comparator)(Code)
Sets the column's comparator.
Parameters:
  comparator - the comparator



setData
public void setData(Object data)(Code)
Sets the application defined column data.
Parameters:
  data - the widget data



setData
public void setData(String key, Object data)(Code)
Sets the application defined property with the given name.
Parameters:
  key - the name of the property
Parameters:
  data - the new value for the property



setHidden
public void setHidden(boolean hidden)(Code)
Sets the column's hidden state.
Parameters:
  hidden - true to hide, false otherwise



setIndex
protected void setIndex(int index)(Code)



setMaxWidth
public void setMaxWidth(int maxWidth)(Code)
Sets the column's maximum width. Default value = 500.
Parameters:
  maxWidth - the max width



setMinWidth
public void setMinWidth(int minWidth)(Code)
Sets the column's minimum width. Default value is 20.
Parameters:
  minWidth - the min width



setRenderer
public void setRenderer(CellRenderer renderer)(Code)
Sets the column's cell renderer.
Parameters:
  renderer - the cell renderer



setResizable
public void setResizable(boolean resizable)(Code)
Specifies if the column may be resized. Default value is true.
Parameters:
  resizable - the resizeable state



setSortable
public void setSortable(boolean sortable)(Code)
Sets the sortable state.
Parameters:
  sortable - true to enable sorting



setWidth
public void setWidth(float width)(Code)
Sets the column's width. Widths that are 1 or less are treated as percentages.
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.