public class AWTableModel
extends javax.swing.table.DefaultTableModel
Constructor and Description |
---|
AWTableModel(javax.swing.JTable table)
The constructor
OPTableModel creates a new instance(object) of the class. |
AWTableModel(javax.swing.JTable table,
DataSite site)
The constructor
AWTableModel creates a new instance(object) of the class. |
AWTableModel(javax.swing.JTable table,
GetData get_site)
The constructor
OPTableModel creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
addKey(java.lang.String uniqueid)
The method
addKey adds a uniqueid. |
void |
changenColor()
The method
changeColor changes the color of the table and its buttons. |
void |
delKey(java.lang.String uniqueid)
The method
addKey adds a uniqueid. |
java.lang.String |
getIndexKey()
The method
getIndexKey gets the uniqueid of the selected index. |
java.lang.String |
getKeyNumber(int ndx)
The method
getKeyNumber gets the uniqueid of the selected index. |
int |
getLastRow()
The method
getLastRow gets the index of the last row. |
int |
getSelectedRow()
The method
getSelectedRow gets the number of the selected row. |
javax.swing.JTable |
getTable()
The method
getTable return the table object. |
void |
resetKeyList()
The method
resetKeyList clears the key in key list and table. |
void |
setChooseButton()
The method
setChooseButton sets the button choose in each row. |
void |
setDeleteButton()
The method
setDeleteButtons sets the buttons delete in each row. |
void |
setDeleteButton(java.lang.String flag,
java.lang.String flag2)
The method
setDeleteButtons sets the buttons delete in each row. |
void |
setExportButton()
The method
setExportButton sets the button export in each row. |
void |
setImportButton()
The method
setImportButton sets the button import in each row. |
void |
setIndexKey(java.lang.String uniqueid)
The method
setIndexKey gets the selected index to uniqueid. |
void |
setListButton()
The method
setListButton sets the button list in each row. |
void |
setUseButton()
The method
setRowButtons sets the buttons use and delete in each row. |
void |
setUseButton(java.lang.String flag,
java.lang.String flag2)
The method
setRowButtons sets the buttons use and delete in each row. |
addColumn, addColumn, addColumn, addRow, addRow, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public AWTableModel(javax.swing.JTable table, DataSite site)
AWTableModel
creates a new instance(object) of the class.table
- the table object.site
- the calling site.public AWTableModel(javax.swing.JTable table, GetData get_site)
OPTableModel
creates a new instance(object) of the class.table
- the table object.get_site
- the calling site.public AWTableModel(javax.swing.JTable table)
OPTableModel
creates a new instance(object) of the class.table
- the table object.public javax.swing.JTable getTable() throws java.lang.Exception
getTable
return the table object.java.lang.Exception
- if errorpublic void resetKeyList() throws java.lang.Exception
resetKeyList
clears the key in key list and table.java.lang.Exception
- if errorpublic void addKey(java.lang.String uniqueid) throws java.lang.Exception
addKey
adds a uniqueid.uniqueid
- of the current item.java.lang.Exception
- if errorpublic void delKey(java.lang.String uniqueid) throws java.lang.Exception
addKey
adds a uniqueid.uniqueid
- of the current item.java.lang.Exception
- if errorpublic java.lang.String getIndexKey() throws java.lang.Exception
getIndexKey
gets the uniqueid of the selected index.java.lang.Exception
- if errorpublic int getSelectedRow() throws java.lang.Exception
getSelectedRow
gets the number of the selected row.java.lang.Exception
- if errorpublic java.lang.String getKeyNumber(int ndx) throws java.lang.Exception
getKeyNumber
gets the uniqueid of the selected index.ndx
- the list key number to get.java.lang.Exception
- if errorpublic int getLastRow() throws java.lang.Exception
getLastRow
gets the index of the last row.java.lang.Exception
- if errorpublic void setIndexKey(java.lang.String uniqueid) throws java.lang.Exception
setIndexKey
gets the selected index to uniqueid.uniqueid
- the uniqueid of the index.java.lang.Exception
- if errorpublic void setChooseButton() throws java.lang.Exception
setChooseButton
sets the button choose in each row.java.lang.Exception
- if errorpublic void setDeleteButton() throws java.lang.Exception
setDeleteButtons
sets the buttons delete in each row.java.lang.Exception
- if errorpublic void setDeleteButton(java.lang.String flag, java.lang.String flag2) throws java.lang.Exception
setDeleteButtons
sets the buttons delete in each row.flag
- the flag to identify the model.flag2
- the flag to identify the model.java.lang.Exception
- if errorpublic void setUseButton() throws java.lang.Exception
setRowButtons
sets the buttons use and delete in each row.java.lang.Exception
- if errorpublic void setUseButton(java.lang.String flag, java.lang.String flag2) throws java.lang.Exception
setRowButtons
sets the buttons use and delete in each row.flag
- the flag to identify the model.flag2
- the flag to identify the model.java.lang.Exception
- if errorpublic void setListButton() throws java.lang.Exception
setListButton
sets the button list in each row.java.lang.Exception
- if errorpublic void setImportButton() throws java.lang.Exception
setImportButton
sets the button import in each row.java.lang.Exception
- if errorpublic void setExportButton() throws java.lang.Exception
setExportButton
sets the button export in each row.java.lang.Exception
- if errorpublic void changenColor() throws java.lang.Exception
changeColor
changes the color of the table and its buttons.java.lang.Exception
- if error