|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel javax.swing.table.DefaultTableModel nz.ac.waikato.mcennis.rat.gui.ApplicationTableModel
public class ApplicationTableModel
JTable model containing the DataAquisition and Algorithm modules that describe applications in the GUI.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ApplicationTableModel()
Create an empty model with an empty module for data aquisition. |
Method Summary | |
---|---|
void |
addAlgorithm(Algorithm algorithm,
int row)
If the row is valid, add the algorithm at the given row. |
void |
addDataAquisition(DataAquisition aquisition,
int row)
Fix the data aquisition module tothe given object. |
Algorithm[] |
getAlgorithms()
Return the algorithms of this application in an ordered array. |
Component |
getComponent(int row)
Return the component at the given row. |
DataAquisition[] |
getDataAquisition()
Return the data aquisition module or null if it has not been set yet |
int |
getDataAquisitionCount()
Returns the number of data aquisition rows in the table |
java.lang.String |
getPattern(int row)
Returns the pattern object associated with the Algorithm at this row. |
boolean |
isCellEditable(int row,
int column)
|
void |
moveDown(int row)
move the algorithm one step down (moving the one below it to the given row) if the row is valid or log an error message. |
void |
moveUp(int row)
move the algorithm one step up (moving the one above it to the given row) if the row is valid or log an error message. |
void |
removeAlgorithm(int row)
Remove the algorithm at the given row value or log an error if the row is invalid. |
void |
removeDataAquisition(int row)
Removes the data aquisition module if present, null operation otherwise. |
void |
setPattern(int row,
java.lang.String pattern)
Sets the regular expression describing the graph(s) which will be executed against the algorithm at this location. |
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationTableModel()
Method Detail |
---|
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
public void addDataAquisition(DataAquisition aquisition, int row)
aquisition
- module to loadpublic void removeDataAquisition(int row)
public void addAlgorithm(Algorithm algorithm, int row)
algorithm
- algorithm to insertrow
- place to insert algorithmpublic void removeAlgorithm(int row)
row
- public void moveUp(int row)
row
- location of the algorithm to movepublic void moveDown(int row)
row
- location of the algorithm to movepublic Component getComponent(int row)
row
- location of the component to retrieve
public DataAquisition[] getDataAquisition()
public Algorithm[] getAlgorithms()
public void setPattern(int row, java.lang.String pattern)
row
- which algorithm to set a pattern forpattern
- regular expression describing which graph objects to execute
against this algorithm.public java.lang.String getPattern(int row)
row
- which algorithm's pattern to return
public int getDataAquisitionCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |