|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--org.emboss.jemboss.gui.SequenceListTableModel
Field Summary | |
static int |
COL_BEG
|
static int |
COL_DEF
|
static int |
COL_END
|
static int |
COL_LIST
|
static int |
COL_NAME
|
static ColumnData[] |
modelColumns
|
protected static java.util.Vector |
modelVector
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
SequenceListTableModel()
|
Method Summary | |
boolean |
deleteRow(int row)
Delete a row from the table |
java.lang.Class |
getColumnClass(int c)
DragJTable uses this method to determine the default renderer/ editor for each cell. |
int |
getColumnCount()
Return the number of columns in the table |
java.lang.String |
getColumnName(int c)
Return the name columns in the table |
int |
getRowCount()
Return the number of rows in the table |
protected SequenceData |
getSequenceData(int nrow)
The SequenceData for a given row
number. |
java.lang.Object |
getValueAt(int nRow,
int nCol)
Get the Object in a cell in the table |
void |
insertRow(int row)
Insert a blank row |
boolean |
isCellEditable(int nRow,
int nCol)
Define if a cell is editable by the user |
protected void |
loadStoredSeqList(java.io.File fseq)
Load from stored file the SequenceList created from a previous session. |
protected void |
setDefaultData()
Setup a blank square table |
void |
setValueAt(java.lang.Object value,
int nRow,
int nCol)
Set the Object in a cell in the table |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected static java.util.Vector modelVector
public static final int COL_NAME
public static final int COL_BEG
public static final int COL_END
public static final int COL_LIST
public static final int COL_DEF
public static final ColumnData[] modelColumns
Constructor Detail |
public SequenceListTableModel()
Method Detail |
public java.lang.Class getColumnClass(int c)
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- indexclass
- represented in that columnprotected void loadStoredSeqList(java.io.File fseq)
File
- fseq contains stored sequence listprotected void setDefaultData()
protected SequenceData getSequenceData(int nrow)
SequenceData
for a given row
number.row
- numberSequenceData
for the rowpublic int getRowCount()
getRowCount
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
getColumnCount
in class javax.swing.table.AbstractTableModel
public java.lang.String getColumnName(int c)
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int nRow, int nCol)
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int nRow, int nCol)
getValueAt
in class javax.swing.table.AbstractTableModel
row
- numbercolumn
- numberpublic void setValueAt(java.lang.Object value, int nRow, int nCol)
setValueAt
in class javax.swing.table.AbstractTableModel
value
- to setrow
- numbercolumn
- numberpublic void insertRow(int row)
row
- number to insert atpublic boolean deleteRow(int row)
row
- number to delete
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |