Java Doc for DataStoreTableModel.java in  » Database-Client » SQL-Workbench » workbench » gui » components » 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 » Database Client » SQL Workbench » workbench.gui.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.table.AbstractTableModel
      workbench.gui.components.DataStoreTableModel

DataStoreTableModel
public class DataStoreTableModel extends AbstractTableModel (Code)
TableModel for displaying the contents of a workbench.storage.DataStore
author:
   support@sql-workbench.net



Constructor Summary
public  DataStoreTableModel(DataStore aDataStore)
    

Method Summary
public  intaddRow()
    
public  voidapplyFilter(FilterExpression filter)
     Applys the given filter to the underlying DataStore.
public  voidclearLockedColumn()
     Clear the locked column.
public  voiddeleteRow(int aRow, boolean withDependencies)
    
public  voiddispose()
    
public  intduplicateRow(int aRow)
    
public  voidfileImported()
    
public  intfindColumn(String aColname)
    
public  ClassgetColumnClass(int aColumn)
    
public  intgetColumnCount()
     Return the number of columns in the model.
public  StringgetColumnName(int aColumn)
     Return the name of the column as defined by the ResultSetData.
public  intgetColumnType(int aColumn)
     Returns the type (java.sql.Types) of the given column.
public  StringgetColumnTypeName(int aColumn)
     Returns the name of the datatype (according to java.sql.Types) of the given column.
public  intgetColumnWidth(int aColumn)
     Returns the current width of the given column.
public  DataStoregetDataStore()
    
public  StringgetDbmsType(int col)
    
public  intgetRowCount()
    
public  booleangetShowStatusColumn()
    
public  NamedSortDefinitiongetSortDefinition()
    
public  ObjectgetValueAt(int row, int col)
     Return the contents of the field at the given position in the result set.
Parameters:
  row - - The row to get.
public  intinsertRow(int afterRow)
    
public  booleanisCellEditable(int row, int column)
    
public  booleanisPrimarySortColumn(int col)
    
public  booleanisSortAscending(int col)
     Return true if the data is sorted in ascending order.
public  booleanisSortColumn(int col)
    
public  booleanisUpdateable()
    
public  voidremoveSortColumn(int column)
    
public  voidresetFilter()
     Clears the filter that is currently defined on the underlying DataStore.
public  voidsetAllowEditing(boolean aFlag)
    
public  voidsetDataStore(DataStore newData)
    
public  voidsetLockedColumn(int column)
    
public  voidsetShowStatusColumn(boolean aFlag)
     Shows or hides the status column.
public  voidsetSortDefinition(NamedSortDefinition definition)
    
public  voidsetValueAt(Object aValue, int row, int column)
    
public  booleansort()
     Re-apply the last sort order defined.
public  voidsortByColumn(int column)
     Sort the data by the given column.
public  voidsortByColumn(int column, boolean ascending, boolean addSortColumn)
    
public  voidsortInBackground(WbTable table, int aColumn, boolean addSortColumn)
    
public  voidsortInBackground(WbTable table, int aColumn, boolean ascending, boolean addSortColumn)
     Start a new thread to sort the data.


Constructor Detail
DataStoreTableModel
public DataStoreTableModel(DataStore aDataStore) throws IllegalArgumentException(Code)




Method Detail
addRow
public int addRow()(Code)



applyFilter
public void applyFilter(FilterExpression filter)(Code)
Applys the given filter to the underlying DataStore. A tableDataChanged Event will be fired after this



clearLockedColumn
public void clearLockedColumn()(Code)
Clear the locked column. After a call to clearLockedColumn() all columns (except the status column) are editable when the table is in edit mode.
See Also:   DataStoreTableModel.setLockedColumn(int)



deleteRow
public void deleteRow(int aRow, boolean withDependencies) throws SQLException(Code)



dispose
public void dispose()(Code)
Clears the EventListenerList and empties the DataStore



duplicateRow
public int duplicateRow(int aRow)(Code)



fileImported
public void fileImported()(Code)



findColumn
public int findColumn(String aColname)(Code)



getColumnClass
public Class getColumnClass(int aColumn)(Code)



getColumnCount
public int getColumnCount()(Code)
Return the number of columns in the model. This will return the number of columns of the underlying DataStore (plus one if the status column is enabled)



getColumnName
public String getColumnName(int aColumn)(Code)
Return the name of the column as defined by the ResultSetData.



getColumnType
public int getColumnType(int aColumn)(Code)
Returns the type (java.sql.Types) of the given column.



getColumnTypeName
public String getColumnTypeName(int aColumn)(Code)
Returns the name of the datatype (according to java.sql.Types) of the given column.



getColumnWidth
public int getColumnWidth(int aColumn)(Code)
Returns the current width of the given column. It returns the value of workbench.storage.DataStore.getColumnDisplaySize(int) for every column which is not the status column.
Parameters:
  aColumn - the column index the width of the column as defined by the DataStore or 0
See Also:   workbench.storage.DataStore.getColumnDisplaySize(int)
See Also:   DataStoreTableModel.findColumn(String)



getDataStore
public DataStore getDataStore()(Code)



getDbmsType
public String getDbmsType(int col)(Code)



getRowCount
public int getRowCount()(Code)
Number of rows in the result set



getShowStatusColumn
public boolean getShowStatusColumn()(Code)



getSortDefinition
public NamedSortDefinition getSortDefinition()(Code)
Returns a snapshot of the current sort columns identified by their names instead of their column index (as done by SortDefinition) the current sort definition with named columns



getValueAt
public Object getValueAt(int row, int col)(Code)
Return the contents of the field at the given position in the result set.
Parameters:
  row - - The row to get. Counting starts at zero.
Parameters:
  col - - The column to get. Counting starts at zero.



insertRow
public int insertRow(int afterRow)(Code)



isCellEditable
public boolean isCellEditable(int row, int column)(Code)



isPrimarySortColumn
public boolean isPrimarySortColumn(int col)(Code)



isSortAscending
public boolean isSortAscending(int col)(Code)
Return true if the data is sorted in ascending order. True if sorted in ascending order



isSortColumn
public boolean isSortColumn(int col)(Code)
Check if the table is sorted by a column true if the given column is a sort column
See Also:   DataStoreTableModel.isSortAscending(int)



isUpdateable
public boolean isUpdateable()(Code)



removeSortColumn
public void removeSortColumn(int column)(Code)



resetFilter
public void resetFilter()(Code)
Clears the filter that is currently defined on the underlying DataStore. A tableDataChanged Event will be fired after this



setAllowEditing
public void setAllowEditing(boolean aFlag)(Code)



setDataStore
public void setDataStore(DataStore newData)(Code)



setLockedColumn
public void setLockedColumn(int column)(Code)
Define a column that may not be edited even if the table is in "Edit mode"
Parameters:
  column - the column to be set as non-editable
See Also:   DataStoreTableModel.clearLockedColumn()



setShowStatusColumn
public void setShowStatusColumn(boolean aFlag)(Code)
Shows or hides the status column. The status column will display an indicator if the row has been modified or was inserted



setSortDefinition
public void setSortDefinition(NamedSortDefinition definition)(Code)



setValueAt
public void setValueAt(Object aValue, int row, int column)(Code)



sort
public boolean sort()(Code)
Re-apply the last sort order defined. If no sort order was defined this method does nothing



sortByColumn
public void sortByColumn(int column)(Code)
Sort the data by the given column. If the data is already sorted by this column, then the sort order will be reversed



sortByColumn
public void sortByColumn(int column, boolean ascending, boolean addSortColumn)(Code)
Sort the data by the given column in the defined order



sortInBackground
public void sortInBackground(WbTable table, int aColumn, boolean addSortColumn)(Code)



sortInBackground
public void sortInBackground(WbTable table, int aColumn, boolean ascending, boolean addSortColumn)(Code)
Start a new thread to sort the data. Any call to this method while the thread is running, will be ignored



Fields inherited from javax.swing.table.AbstractTableModel
protected EventListenerList listenerList(Code)(Java Doc)

Methods inherited from javax.swing.table.AbstractTableModel
public void addTableModelListener(TableModelListener l)(Code)(Java Doc)
public int findColumn(String columnName)(Code)(Java Doc)
public void fireTableCellUpdated(int row, int column)(Code)(Java Doc)
public void fireTableChanged(TableModelEvent e)(Code)(Java Doc)
public void fireTableDataChanged()(Code)(Java Doc)
public void fireTableRowsDeleted(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableRowsInserted(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableRowsUpdated(int firstRow, int lastRow)(Code)(Java Doc)
public void fireTableStructureChanged()(Code)(Java Doc)
public Class getColumnClass(int columnIndex)(Code)(Java Doc)
public String getColumnName(int column)(Code)(Java Doc)
public T[] getListeners(Class<T> listenerType)(Code)(Java Doc)
public TableModelListener[] getTableModelListeners()(Code)(Java Doc)
public boolean isCellEditable(int rowIndex, int columnIndex)(Code)(Java Doc)
public void removeTableModelListener(TableModelListener l)(Code)(Java Doc)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)(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.