public class AutotextTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
AutotextTableModel(java.util.Collection<Autotext.AutotextItem> data) |
Modifier and Type | Method and Description |
---|---|
int |
addRow(Autotext.AutotextItem item,
int position)
add a new row.
|
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
java.util.List<Autotext.AutotextItem> |
getData()
Store the data to the specified autotext list.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int i,
int i1) |
boolean |
isCellEditable(int row,
int col) |
void |
removeRow(int position)
remove a row.
|
void |
setValueAt(java.lang.Object value,
int row,
int col) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public AutotextTableModel(java.util.Collection<Autotext.AutotextItem> data)
public java.util.List<Autotext.AutotextItem> getData()
autotext
- the target listpublic int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int i, int i1)
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public int addRow(Autotext.AutotextItem item, int position)
item
- what to addposition
- at which positionpublic void removeRow(int position)
position
- where from