cytoscape.dialogs
Class NetworkMetaDataTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by cytoscape.dialogs.NetworkMetaDataTableModel
All Implemented Interfaces:
Serializable, TableModel

public class NetworkMetaDataTableModel
extends DefaultTableModel

Author:
kono
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
NetworkMetaDataTableModel(CyNetwork network)
          Constructor.
 
Method Summary
 HashMap createNewMetadata()
          If no Metadata is available, create one for the file.
 int getColumnCount()
           
 String getDescription()
           
 void getMetadata()
           
 int getRowCount()
           
 Object getValueAt(int arg0, int arg1)
           
protected  void initialize()
           
 boolean isCellEditable(int row, int column)
           
 HashMap loadMetadata()
           
 void setMetadata(String type, Object data)
           
protected  void setTable(boolean isNew)
           
 void setTableData()
           
 void setValueAt(Object obj, int row, int col)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnName, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
 
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

NetworkMetaDataTableModel

public NetworkMetaDataTableModel(CyNetwork network)
Constructor.

Method Detail

initialize

protected void initialize()
                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

setTableData

public void setTableData()

setTable

protected void setTable(boolean isNew)
                 throws javax.xml.bind.JAXBException,
                        URISyntaxException
Throws:
javax.xml.bind.JAXBException
URISyntaxException

createNewMetadata

public HashMap createNewMetadata()
                          throws javax.xml.bind.JAXBException,
                                 URISyntaxException
If no Metadata is available, create one for the file.

Returns:
Throws:
javax.xml.bind.JAXBException
URISyntaxException

loadMetadata

public HashMap loadMetadata()
                     throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

getMetadata

public void getMetadata()

setMetadata

public void setMetadata(String type,
                        Object data)

getDescription

public String getDescription()

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel
Overrides:
getColumnCount in class DefaultTableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel
Overrides:
getRowCount in class DefaultTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel

getValueAt

public Object getValueAt(int arg0,
                         int arg1)
Specified by:
getValueAt in interface TableModel
Overrides:
getValueAt in class DefaultTableModel

setValueAt

public void setValueAt(Object obj,
                       int row,
                       int col)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class DefaultTableModel