If this cell component is a cell editor & if it wants to notify the table that
editing is completed, the actionlistener in this method should be notified.
Deprecated.This constructor is deprecated because lot of users don't change the model index id to value other than 0 which creates problems later on. use Column(int columnIndex) instead.
This calls the TableColumn's constructor
This creates a default width of 75, a null renderer and a null editor for this column
columnIndex starts from 1 to number of columns (note column index doesn't start from 0)
If columnIndex is not properly assigned, this will create problems later on.
This calls the TableColumn's constructor
This creates a default width of 75, a null renderer and a null editor for this column
and sets the column header Name to this name
clears all the delete sqls which were added using addDeleteSql method
when you change the select sqls of a table and if you have assigned delete sqls before
then we have to call this method which will clear all the old delete sqls, so that
you can add new delete sqls for your new select sql
clears all the insert sqls which were added using addInsertSql method
when you change the select sqls of a table and if you have assigned insert sqls before
then we have to call this method which will clear all the old insert sqls, so that
you can add new insert sqls for your new select sql
clears the currently used settings
This clears the following
UpdateSql
InsertSql
DeleteSql
ErrorListener
CellListener
ChangeListener
cellPropertiesModel
Comparator
clears all the update sqls which were added using addUpdateSql method
when you change the select sqls of a table and if you have assigned update sqls before
then we have to call this method which will clear all the old update sqls, so that
you can add new update sqls for your new select sql
Utility method which can be used to compare two objects
This method is added here, becuase it may be useful while implementing your own filter
This method returns EQUAL, GREATER, LESS based on o1 compared with o2
Shows the find window, where user can enter the text to be found and does the find automatically
If you want to do find programatically use find() method
Shows the find & replace window, where user can enter the text to be found and the replace string and the find & replace is done automatically
If you want to do find and replace programatically use replace() method
If enableTextOverwriteOnCellEdit set to true, Whenever user starts editing a text cell, the previous value will be erased and the new value
will be set.
return the alignment for this row & column
if you don't want to set any alignmnet or if you want to set the default alignmnet for particular row, col, return -1
use SwingConstants.LEFT, SwingConstants.CENTER, SwingConstants.RIGHT for alignment
return the background color for this row & column
if you don't want to set any color or if you want to set the default color for particular row, col, return null
Deprecated.There is typo error in this method name getBorderHieght(), use the method getBorderHeight() instead
the border hieght on the top & bottom of the paper
default border height is 72 ( in 1/72nds of an inch, so 1 inch=72)
By default, whether a cell is editable or not is decided by column.getReadOnly() or by dbTable.setEditable() method
But if you need to control the editable property of each cell, you can use this method.
If the columns have been moved/rearranged by the user, this method will return the new moved location of a original/created column index
colIndex starts from 0,1,2,3...
return the foreground color for this row & column
if you don't want to set any color or if you want to set the default color for particular row, col, return null
If the columns have been moved/rearranged by the user, this method will return the original/created column index for a given (moved) column
colIndex starts from 0,1,2,3...
Deprecated.There is typo error in this method name getPaperHieght(), use the method getPaperHeight() instead
paper hieght
portrait hieght is 792 , for landscape set this to 612
return the background color for this row & column, when it is selected
if you don't want to set any color or if you want to set the default color for particular row, col, return null
return the foreground color for this row & column, when it is selected
if you don't want to set any color or if you want to set the default color for particular row, col, return null
From the time when the row was inserted into the table and until the inserted row was added to the database, this method will return true for that row.
creates default print properties for A4 size paper in a given mode
The mode just decides the width & height of the paper, other that it
doesn't do any thing.
Paste the clipboard content into dbtable
The content should be in a tab delimited format
If you copy from Excel , it will be in a tab delimited format, else you can use a text editor
When you attach a DatabaseChangeListener with quicktable and during beforeInsert(), if you return false
that means you don't want quickTable to do the insert, instead you will handle the database insert
yourself.
Prints the contents of quicktable to printer
This prints all the pages in portriat mode for A4 size paper
If you want to print only specific pages use print(int[])
Prints the contents of quicktable to printer
This prints all the pages using the given print properties
If you want to print only specific pages use print(int[], PrintProperties)
Prints the contents of quicktable to printer only for specific pages
This prints in portriat mode for A4 size paper
If you want to print all pages use print()
Prints the contents of quicktable to printer only for specific pages
This prints based on the given Print properties
If you want to print all pages use print(PrintProperties)
This fires the query , and refills the table with the new data
Note: This method should be used only when you have set a sql/stored procedure through setSelectSql
In all the other cases call the other refresh() methods
The skin assigned to the table through setSkin() method will be applied to the table
This method should be called only if you feel that the skin is not getting refreshed