public class DataTableModel extends Object implements TableModel
| Modifier and Type | Field and Description |
|---|---|
protected CloseableSet |
dataTableListeners |
protected EventList<DataTableModelColumn> |
extraColumns |
protected EventList<DataRow> |
newRows
Новые строки данных (Detached) для добавления
|
protected ConcurrentLinkedQueue<Runnable> |
swingRunQueue |
| Constructor and Description |
|---|
DataTableModel() |
DataTableModel(DataTable dt) |
protected final ConcurrentLinkedQueue<Runnable> swingRunQueue
protected final CloseableSet dataTableListeners
protected EventList<DataTableModelColumn> extraColumns
public DataTableModel()
public DataTableModel(DataTable dt)
protected void swingRun(Runnable run)
protected PropertyChangeSupport propertySupport()
public EventSupport getEventSupport()
protected void firePropertyChange(String property, Object oldValue, Object newValue)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public boolean isNotifyInAwtThread()
public void setNotifyInAwtThread(boolean notifyInAwtThread)
public boolean isAwtInvokeAndWait()
public void setAwtInvokeAndWait(boolean awtInvokeAndWait)
public void fireAllChanged()
public void fireColumnsChanged()
public void fireRowUpdated(int row)
public void fireRowsUpdated(int rowIndexFrom,
int toIndexInclude)
public void fireCellChanged(int rowIndex,
int columnIndex)
public void fireRowsInserted(int rowIndexFrom,
int toIndexInclude)
public void fireRowsDeleted(int rowIndexFrom,
int toIndexInclude)
public void fireTableModelEvent(TableModelEvent e)
public Collection<TableModelListener> getListenersCollection()
public TableModelListener[] getListeners()
public void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelpublic boolean isDeletedVisible()
public void setDeletedVisible(boolean deletedVisible)
public void createRow()
public DataRow[] getCreatedRows()
public void insertCreatedRows()
public void clearCreatedRows()
public void insertRow(DataRow dr)
dr - строкаpublic DataTable getDataTable()
public void setDataTable(DataTable dataTable)
dataTable - таблица с даннымиpublic boolean isListenDataTable()
public void setListenDataTable(boolean listen)
listen - true - установить/false - снять подпискуprotected void listen(DataTable tbl)
protected void onDataColumnAdded(DataColumn dc)
protected void onDataColumnRemoved(DataColumn dc)
protected void onDataRowStateChanged(DataRowStateChanged e)
protected void onDataRowInserted(DataRowInserted e)
protected void onDataRowUndeleted(DataRowUndeleted e)
protected void onDataRowDeleted(DataRowDeleted e)
protected void onDataRowErased(DataRowErased e)
protected void onDeletedAdded(DataRow dr)
protected void onDeletedRemoved(DataRow dr)
protected void onDataCellUpdated(DataCellUpdated e)
protected void onDataTableDropped(DataTableDropped e)
public DataRow row(int row)
public int indexOf(DataRow row)
public int getRowCount()
getRowCount in interface TableModelpublic EventList<DataTableModelColumn> getExtraColumns()
public int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModelpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelCopyright © 2018. All rights reserved.