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.Address
protected convex.core.State
protected convex.core.data.Address
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getColumnName
(int col) convex.core.data.AccountStatus
getEntry
(long ix) convex.core.data.AMap
<convex.core.data.ACell, convex.core.data.ACell> int
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int row, int col) void
setState
(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:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getValueAt
-
setState
public void setState(convex.core.State newState) -
getEntry
public convex.core.data.AccountStatus getEntry(long ix)
-