|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.emboss.jemboss.gui.SequenceListTableModel
Model for the sequence table
| 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
Define the columns as file/start/end/list and default |
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, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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)
c - column index
protected void loadStoredSeqList(java.io.File fseq)
fseq - contains stored sequence listprotected void setDefaultData()
protected SequenceData getSequenceData(int nrow)
SequenceData for a given row
number.
SequenceData for the rowpublic int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int c)
c - column index
public boolean isCellEditable(int nRow,
int nCol)
nRow - row numbernCol - column number
public java.lang.Object getValueAt(int nRow,
int nCol)
nRow - row numbernCol - column number
public void setValueAt(java.lang.Object value,
int nRow,
int nCol)
value - to setpublic void insertRow(int row)
row - index to insert atpublic boolean deleteRow(int row)
row - number to delete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||