|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.bbn.openmap.dataAccess.shape.DbfTableModel com.bbn.openmap.dataAccess.shape.MetaDbfTableModel
public class MetaDbfTableModel
An extension of the DbfTableModel that allows editing of the format of the TbfTableModel, allowing addition and deletion of columns of the DbfTableModel. The original DbfTableModel column headers are scanned and put into records, and edited as rows. Be careful with this.
Field Summary | |
---|---|
static int |
META_LENGTH_COLUMN_NUMBER
|
static int |
META_PLACES_COLUMN_NUMBER
|
static int |
META_RECORDNAME_COLUMN_NUMBER
|
static int |
META_TYPE_COLUMN_NUMBER
|
protected int |
originalColumnNumber
Keeps track of the original columns. |
protected DbfTableModel |
source
|
Fields inherited from class com.bbn.openmap.dataAccess.shape.DbfTableModel |
---|
_columnCount, _decimalCounts, _lengths, _names, _records, _types, DEBUG, dirty, DONE_MASK, exitOnClose, filePath, frame, logger, MODIFY_COLUMN_MASK, MODIFY_ROW_MASK, parent, SAVE_MASK, table, TYPE_AUTOINCREMENT, TYPE_BINARY, TYPE_CHARACTER, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_LOGICAL, TYPE_LONG, TYPE_MEMO, TYPE_NUMERIC, TYPE_OLE, TYPE_TIMESTAMP, writable, ZERO |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
MetaDbfTableModel(DbfTableModel source)
Creates a blank DbfTableModel from the source DbfTableModel. |
Method Summary | |
---|---|
void |
addBlankRecord()
Create a new record, corresponding to a new column in the source DbfTableModel. |
void |
exitWindowClosed()
Decide what to do when the window closes. |
java.lang.Object |
getValueAt(int row,
int column)
Retrieves a value for a specific column and row index |
protected void |
init()
Set up the columns of this DbfTableModel, so the parameters of the source header rows are listed. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
static void |
main(java.lang.String[] args)
|
java.util.List<java.lang.Object> |
remove(int columnIndex)
Remove the record at the index. |
void |
setValueAt(java.lang.Object object,
int row,
int column)
Sets an object at a certain location. |
void |
showGUI(java.lang.String filename)
|
Methods inherited from class com.bbn.openmap.dataAccess.shape.DbfTableModel |
---|
add, add, add, addColumn, addRecord, append, appendWhitespaceOrTrim, cleanupChanges, commitEvents, deleteColumn, doAction, getBlankRecord, getColumnClass, getColumnCount, getColumnIndexForName, getColumnName, getDbfTableModel, getDecimalCount, getEmptyDefaultForType, getGUI, getLength, getObjectForType, getRecord, getRecords, getRowCount, getStringForType, getTable, getTable, getType, getWritable, headerClone, hideGUI, isExitOnClose, isNumericalType, isValidType, iterator, matches, read, remove, remove, remove, setColumnName, setDecimalCount, setExitOnClose, setLength, setType, setWritable, showGUI, tableChanged, test, write |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int META_RECORDNAME_COLUMN_NUMBER
public static final int META_TYPE_COLUMN_NUMBER
public static final int META_LENGTH_COLUMN_NUMBER
public static final int META_PLACES_COLUMN_NUMBER
protected DbfTableModel source
protected int originalColumnNumber
Constructor Detail |
---|
public MetaDbfTableModel(DbfTableModel source)
source
- the DbfTableModel to be modified.Method Detail |
---|
protected void init()
public java.util.List<java.lang.Object> remove(int columnIndex)
remove
in class DbfTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class DbfTableModel
public void setValueAt(java.lang.Object object, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class DbfTableModel
public java.lang.Object getValueAt(int row, int column)
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class DbfTableModel
public void addBlankRecord()
addBlankRecord
in class DbfTableModel
public void exitWindowClosed()
exitWindowClosed
in class DbfTableModel
public void showGUI(java.lang.String filename)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |