Package convex.gui.models
Class TorusTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
convex.gui.models.BaseTableModel
convex.gui.models.TorusTableModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected convex.core.data.Addressprotected convex.core.Stateprotected convex.core.data.AddressFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnName(int col) convex.core.data.AccountStatusgetEntry(long ix) convex.core.data.AMap<convex.core.data.ACell, convex.core.data.ACell> intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int row, int col) voidsetState(convex.core.State newState) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Field Details
-
state
protected convex.core.State state -
torus
protected convex.core.data.Address torus -
asset
protected convex.core.data.Address asset
-
-
Constructor Details
-
TorusTableModel
public TorusTableModel(convex.core.State state)
-
-
Method Details
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowCount
public int getRowCount() -
getMarkets
public convex.core.data.AMap<convex.core.data.ACell,convex.core.data.ACell> getMarkets() -
getColumnCount
public int getColumnCount() -
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
-
setState
public void setState(convex.core.State newState) -
getEntry
public convex.core.data.AccountStatus getEntry(long ix)
-