|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | 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, 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)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelprotected void loadStoredSeqList(java.io.File fseq)
protected 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)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int nRow,
int nCol)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int nRow,
int nCol)
public void setValueAt(java.lang.Object value,
int nRow,
int nCol)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - to setpublic 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||