public class StoredQueryTableModel extends ResultSetTableModel implements ISelectableRecords, ISortableColumns, IFilteredColumns
Modifier and Type | Class and Description |
---|---|
protected static class |
StoredQueryTableModel.FIELDS |
ISelectableRecords.SELECTION_MODE
Modifier and Type | Field and Description |
---|---|
protected TypedListModel<Property> |
fields |
protected Hashtable<Integer,Boolean> |
order |
protected Hashtable<String,Profile<Property>> |
properties |
protected PropertyChangeListener |
propertyListener |
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> |
queryExecutor |
protected QueryExecutor<RetrieveField> |
queryFieldExecutor |
protected net.idea.modbcum.i.IQueryRetrieval[] |
queryFields |
protected QueryExecutor<RetrieveAtomContainer> |
queryMolecule |
protected RetrieveField<Object> |
retrieveField |
protected RetrieveAtomContainer |
retrieveMolecule |
protected ISelectableRecords.SELECTION_MODE |
selectionMode |
protected StructureStatisticsProcessor |
statsProcessor |
protected AbstractStructureQuery |
storedResults |
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> |
updateExecutor |
protected StructureRecord |
workingRecord |
connection, maxRecords, records
listenerList
Constructor and Description |
---|
StoredQueryTableModel() |
StoredQueryTableModel(boolean chemicalsOnly) |
getRecordsNumber, getResultSet, setResultSet
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
protected ISelectableRecords.SELECTION_MODE selectionMode
protected AbstractStructureQuery storedResults
protected RetrieveAtomContainer retrieveMolecule
protected RetrieveField<Object> retrieveField
protected TypedListModel<Property> fields
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> updateExecutor
protected QueryExecutor<RetrieveAtomContainer> queryMolecule
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> queryExecutor
protected QueryExecutor<RetrieveField> queryFieldExecutor
protected PropertyChangeListener propertyListener
protected StructureStatisticsProcessor statsProcessor
protected net.idea.modbcum.i.IQueryRetrieval[] queryFields
protected StructureRecord workingRecord
public StoredQueryTableModel()
public StoredQueryTableModel(boolean chemicalsOnly)
public void findSimilar(SessionID session, int row, int col) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public void setChemicalsOnly(boolean value)
public boolean isChemicalsOnly()
public AbstractStructureQuery getQuery()
public Connection getConnection()
public void setConnection(Connection connection) throws SQLException, net.idea.modbcum.i.exceptions.DbAmbitException
SQLException
net.idea.modbcum.i.exceptions.DbAmbitException
public void setQuery(AbstractStructureQuery query) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
protected Object getField(IStructureRecord record, Property fieldname) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
public org.openscience.cdk.interfaces.IAtomContainer getAtomContainer(IStructureRecord record) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public void update(int record, IStructureRecord struc)
public void setValueAt(Object value, int record, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public String getStatsAt(IStructureRecord record)
public IStructureRecord getRecord(int rowIndex, int columnIndex)
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
protected String getLabel(IStructureRecord record, int offset)
public Class<?> getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void sort(int column, boolean ascending) throws UnsupportedOperationException
sort
in interface ISortableColumns
UnsupportedOperationException
public ISelectableRecords.SELECTION_MODE getSelection()
getSelection
in interface ISelectableRecords
public void setSelection(ISelectableRecords.SELECTION_MODE mode)
setSelection
in interface ISelectableRecords
protected void selectRecords(IStructureRecord record, boolean value) throws Exception, SQLException
Exception
SQLException
protected void selectRecords(ISelectableRecords.SELECTION_MODE mode) throws Exception, SQLException
Exception
SQLException
public void dropFilter(int column) throws UnsupportedOperationException
dropFilter
in interface IFilteredColumns
UnsupportedOperationException
public void setFilter(int column, Object value) throws UnsupportedOperationException
setFilter
in interface IFilteredColumns
UnsupportedOperationException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.