Java Doc for ColumnModel.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » grid » 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 » gwtext 2.01 » com.gwtext.client.widgets.grid 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gwtext.client.core.JsObject
      com.gwtext.client.widgets.grid.ColumnModel

ColumnModel
public class ColumnModel extends JsObject (Code)
The column model class for a GridPanel .



Constructor Summary
public  ColumnModel(JavaScriptObject jsObj)
     Construct a new ColumnModel using a native object.
public  ColumnModel(BaseColumnConfig[] columnConfigs)
     Construct a new ColumnModel.

Method Summary
native public  voidaddListener(ColumnModelListener listener)
     Add a ColumnModel listener.
native public  JavaScriptObjectcreate(JavaScriptObject configJS)
    
public  BaseColumnConfig[]getColumnConfigs()
    
native public  intgetColumnCount()
     Returns the number of columns.
public  StringgetColumnHeader(String colID)
     Returns the column header.
native public  StringgetColumnHeader(int colIndex)
     Returns the header for the specified column.
native public  StringgetColumnId(int colIndex)
     Returns the column ID.
Parameters:
  colIndex - column index the column id set by the user using com.gwtext.client.widgets.grid.ColumnConfig.setId(String).
public  StringgetColumnTooltip(String colID)
     Returns the tooltip for the specified column.
native public  StringgetColumnTooltip(int colIndex)
     Returns the tooltip for the specified column.
public  intgetColumnWidth(String colID)
     Returns the width for the specified column.
native public  intgetColumnWidth(int colIndex)
     Returns the width for the specified column.
public  StringgetDataIndex(String colID)
     Returns the dataIndex for the specified column.
native public  StringgetDataIndex(int colIndex)
     Returns the dataIndex for the specified column.
native public  intgetIndexById(String id)
     Returns the index for a specified column ID.
native public  intgetTotalWidth()
    
native public  intgetTotalWidth(boolean includeHidden)
     Returns the total width of all columns.
public  booleanisCellEditable(String colID, int rowIndex)
     Returns true if the cell is editable.
native public  booleanisCellEditable(int colIndex, int rowIndex)
     Returns true if the cell is editable.
public  booleanisFixed(String colID)
     Returns true if the column width cannot be changed.
native public  booleanisFixed(int colIndex)
    
public  booleanisHidden(String colID)
     Returns true if the column is hidden.
native public  booleanisHidden(int colIndex)
     Returns true if the column is hidden.
public  booleanisLocked(String colID)
     Returns true if the column is locked.
native public  booleanisLocked(int colIndex)
     Returns if the column is locked.
public  booleanisResizable(String colID)
     Returns true if the column is resizable.
native public  booleanisResizable(int colIndex)
     Returns true if the column is resizable.
public  booleanisSortable(String colID)
     Returns true if the column is sortable.
native public  booleanisSortable(int colIndex)
     Returns true if the column is sortable.
public  voidsetColumnHeader(String colID, String header)
     Sets the header for a column.
native public  voidsetColumnHeader(int colIndex, String header)
     Sets the header for a column.
public  voidsetColumnWidth(String colID, int width)
     Sets the width for a column.
native public  voidsetColumnWidth(int colIndex, int width)
     Sets the width for a column.
public  voidsetDataIndex(String colID, int dataIndex)
     Sets the dataIndex for a column.
native public  voidsetDataIndex(int colIndex, int dataIndex)
     Sets the dataIndex for a column.
public  voidsetDataIndex(String colID, String dataIndex)
     Sets the dataIndex for a column.
native public  voidsetDataIndex(int colIndex, String dataIndex)
     Sets the dataIndex for a column.
native public  voidsetDefaultSortable(boolean defaultSortable)
     Default sortable of columns which have no sortable specified (defaults to false).
native public  voidsetDefaultWidth(int defaultWidth)
    
public  voidsetEditable(String colID, boolean editable)
     Sets if a column is editable.
native public  voidsetEditable(int colIndex, boolean editable)
     Sets if a column is editable.
public  voidsetEditor(String colID, GridEditor editor)
     Sets the editor for a column.
native public  voidsetEditor(int colIndex, GridEditor editor)
     Sets the editor for a column.
public  voidsetHidden(String colID, boolean hidden)
     Sets if a column is hidden.
native public  voidsetHidden(int colIndex, boolean hidden)
     Sets if a column is hidden.
public  voidsetRenderer(String colID, Renderer renderer)
     Sets the rendering (formatting) function for a column.
native public  voidsetRenderer(int colIndex, Renderer renderer)
     Sets the rendering (formatting) function for a column.


Constructor Detail
ColumnModel
public ColumnModel(JavaScriptObject jsObj)(Code)
Construct a new ColumnModel using a native object.
Parameters:
  jsObj - the native object



ColumnModel
public ColumnModel(BaseColumnConfig[] columnConfigs)(Code)
Construct a new ColumnModel.
Parameters:
  columnConfigs - the configuration for the columns




Method Detail
addListener
native public void addListener(ColumnModelListener listener)(Code)
Add a ColumnModel listener.
Parameters:
  listener - the listener



create
native public JavaScriptObject create(JavaScriptObject configJS)(Code)



getColumnConfigs
public BaseColumnConfig[] getColumnConfigs()(Code)



getColumnCount
native public int getColumnCount()(Code)
Returns the number of columns. the number of columns



getColumnHeader
public String getColumnHeader(String colID)(Code)
Returns the column header.
Parameters:
  colID - column ID header



getColumnHeader
native public String getColumnHeader(int colIndex)(Code)
Returns the header for the specified column.
Parameters:
  colIndex - the column index the column header



getColumnId
native public String getColumnId(int colIndex)(Code)
Returns the column ID.
Parameters:
  colIndex - column index the column id set by the user using com.gwtext.client.widgets.grid.ColumnConfig.setId(String). If theuser did not set the id for the column, then the column position is returned as a String.



getColumnTooltip
public String getColumnTooltip(String colID)(Code)
Returns the tooltip for the specified column.
Parameters:
  colID - the column ID the column tooltip



getColumnTooltip
native public String getColumnTooltip(int colIndex)(Code)
Returns the tooltip for the specified column.
Parameters:
  colIndex - the column index the column tooltip



getColumnWidth
public int getColumnWidth(String colID)(Code)
Returns the width for the specified column.
Parameters:
  colID - the column ID the column width



getColumnWidth
native public int getColumnWidth(int colIndex)(Code)
Returns the width for the specified column.
Parameters:
  colIndex - the column index the column width



getDataIndex
public String getDataIndex(String colID)(Code)
Returns the dataIndex for the specified column.
Parameters:
  colID - the column ID the data index of the Store



getDataIndex
native public String getDataIndex(int colIndex)(Code)
Returns the dataIndex for the specified column.
Parameters:
  colIndex - the column idex the data index of the Store



getIndexById
native public int getIndexById(String id)(Code)
Returns the index for a specified column ID.
Parameters:
  id - column id used in ColumnConfig when defining the ColumnModel column index (0 based), -1 if not found
See Also:   ColumnConfig.setId(String)



getTotalWidth
native public int getTotalWidth()(Code)



getTotalWidth
native public int getTotalWidth(boolean includeHidden)(Code)
Returns the total width of all columns.
Parameters:
  includeHidden - true to include hidden column widths total width



isCellEditable
public boolean isCellEditable(String colID, int rowIndex)(Code)
Returns true if the cell is editable.
Parameters:
  colID - the column ID
Parameters:
  rowIndex - the row index true if editable



isCellEditable
native public boolean isCellEditable(int colIndex, int rowIndex)(Code)
Returns true if the cell is editable.
Parameters:
  colIndex - the column index
Parameters:
  rowIndex - the row index true if editable



isFixed
public boolean isFixed(String colID)(Code)
Returns true if the column width cannot be changed.
Parameters:
  colID - the column ID true if fixed



isFixed
native public boolean isFixed(int colIndex)(Code)
Returns true if the column width cannot be changed
Parameters:
  colIndex - the column index true if fixed



isHidden
public boolean isHidden(String colID)(Code)
Returns true if the column is hidden.
Parameters:
  colID - the column ID true if hidden



isHidden
native public boolean isHidden(int colIndex)(Code)
Returns true if the column is hidden.
Parameters:
  colIndex - the column index true if hidden



isLocked
public boolean isLocked(String colID)(Code)
Returns true if the column is locked.
Parameters:
  colID - the column ID true if locked



isLocked
native public boolean isLocked(int colIndex)(Code)
Returns if the column is locked.
Parameters:
  colIndex - column index (0 based) locked



isResizable
public boolean isResizable(String colID)(Code)
Returns true if the column is resizable.
Parameters:
  colID - the column ID true if resizable



isResizable
native public boolean isResizable(int colIndex)(Code)
Returns true if the column is resizable.
Parameters:
  colIndex - the column index true if resizable



isSortable
public boolean isSortable(String colID)(Code)
Returns true if the column is sortable.
Parameters:
  colID - the column ID true of sortable



isSortable
native public boolean isSortable(int colIndex)(Code)
Returns true if the column is sortable.
Parameters:
  colIndex - the column index true if sortable



setColumnHeader
public void setColumnHeader(String colID, String header)(Code)
Sets the header for a column.
Parameters:
  colID - the column ID
Parameters:
  header - the column header



setColumnHeader
native public void setColumnHeader(int colIndex, String header)(Code)
Sets the header for a column.
Parameters:
  colIndex - the column index
Parameters:
  header - the column header



setColumnWidth
public void setColumnWidth(String colID, int width)(Code)
Sets the width for a column.
Parameters:
  colID - the column ID
Parameters:
  width - the column width



setColumnWidth
native public void setColumnWidth(int colIndex, int width)(Code)
Sets the width for a column.
Parameters:
  colIndex - the column index
Parameters:
  width - the column width



setDataIndex
public void setDataIndex(String colID, int dataIndex)(Code)
Sets the dataIndex for a column.
Parameters:
  colID - the column ID
Parameters:
  dataIndex - the Store's data index



setDataIndex
native public void setDataIndex(int colIndex, int dataIndex)(Code)
Sets the dataIndex for a column.
Parameters:
  colIndex - the column index
Parameters:
  dataIndex - the data index



setDataIndex
public void setDataIndex(String colID, String dataIndex)(Code)
Sets the dataIndex for a column.
Parameters:
  colID - the column ID
Parameters:
  dataIndex - the Store's data index



setDataIndex
native public void setDataIndex(int colIndex, String dataIndex)(Code)
Sets the dataIndex for a column.
Parameters:
  colIndex - the column index
Parameters:
  dataIndex - the data index



setDefaultSortable
native public void setDefaultSortable(boolean defaultSortable)(Code)
Default sortable of columns which have no sortable specified (defaults to false).
Parameters:
  defaultSortable - true to enable sortable for all columns



setDefaultWidth
native public void setDefaultWidth(int defaultWidth)(Code)
The width of columns which have no width specified (defaults to 100)
Parameters:
  defaultWidth - the default column width



setEditable
public void setEditable(String colID, boolean editable)(Code)
Sets if a column is editable.
Parameters:
  colID - the column ID
Parameters:
  editable - true if editable



setEditable
native public void setEditable(int colIndex, boolean editable)(Code)
Sets if a column is editable.
Parameters:
  colIndex - the column index
Parameters:
  editable - true if editable



setEditor
public void setEditor(String colID, GridEditor editor)(Code)
Sets the editor for a column.
Parameters:
  colID - the column ID
Parameters:
  editor - the editor



setEditor
native public void setEditor(int colIndex, GridEditor editor)(Code)
Sets the editor for a column.
Parameters:
  colIndex - the column index
Parameters:
  editor - the editor



setHidden
public void setHidden(String colID, boolean hidden)(Code)
Sets if a column is hidden.
Parameters:
  colID - the column ID
Parameters:
  hidden - true if hidden



setHidden
native public void setHidden(int colIndex, boolean hidden)(Code)
Sets if a column is hidden.
Parameters:
  colIndex - the column index
Parameters:
  hidden - true if hidden



setRenderer
public void setRenderer(String colID, Renderer renderer)(Code)
Sets the rendering (formatting) function for a column.
Parameters:
  colID - the column ID
Parameters:
  renderer - the column renderer



setRenderer
native public void setRenderer(int colIndex, Renderer renderer)(Code)
Sets the rendering (formatting) function for a column.
Parameters:
  colIndex - the column idex
Parameters:
  renderer - the column renderer



Fields inherited from com.gwtext.client.core.JsObject
protected JavaScriptObject jsObj(Code)(Java Doc)

Methods inherited from com.gwtext.client.core.JsObject
public JavaScriptObject getJsObj()(Code)(Java Doc)
native public String[] getProperties()(Code)(Java Doc)
protected boolean isCreated()(Code)(Java Doc)
public void setJsObj(JavaScriptObject jsObj)(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.