public class FilterRowTMUnOrdererMaps extends WrapTM implements GetRowToSourceMap, GetSourceToRowMap
| Modifier and Type | Field and Description |
|---|---|
protected xyz.cofe.collection.Predicate<RowData> |
rowFilter |
evSupport, tableModel, tableModelListener, tableModelListenerStarted| Constructor and Description |
|---|
FilterRowTMUnOrdererMaps() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyFilter() |
void |
applyFilter(boolean fireAllChanged) |
protected void |
checkDestIndexesFast()
Быстрая проверка ключей rows2srcMap, на предмет заполнения от 0 до N
|
void |
dump() |
void |
dump(xyz.cofe.text.Output xout) |
int |
getColumnCount() |
int |
getRowCount() |
xyz.cofe.collection.Predicate<RowData> |
getRowFilter() |
TreeMap<Integer,Integer> |
getRowToSourceMap() |
TreeMap<Integer,Integer> |
getSourceToRowMap() |
static int |
getValidateIndexOnDeleteEach()
Сис. свойство xyz.cofe.gui.swing.table.FilterRowTMImpl.validateIndex.onDeleteEach =100.
|
static int |
getValidateIndexOnInsertEach()
Сис. свойство xyz.cofe.gui.swing.table.FilterRowTMImpl.validateIndex.onInsertEach =100.
|
static int |
getValidateIndexOnUpdateEach()
Сис. свойство xyz.cofe.gui.swing.table.FilterRowTMImpl.validateIndex.onUpdateEach =100.
|
protected boolean |
isIndexesValid()
Проверка валидности индексов.
|
int |
mapColumnToInside(int columnIndex)
Карта отображения запрашиваемой колонки в исходную колонку.
|
int |
mapRowToInside(int rowIndex)
Карта отображения запрашиваемой строки в исходную строку.
|
int |
mapRowToOutside(int rowIndex)
Карта отображения внутреней строки на -> внешнюю
По умолчанию возвращает запрашиваемое значение.
|
protected List<TableModelEvent> |
onRowDeleted(TableModelEvent e,
int firstRow,
int lastRow)
Вызывается при событии удаления строк из оригинальной таблицы
|
protected List<TableModelEvent> |
onRowInserted(TableModelEvent e,
int firstRow,
int lastRow)
Вызывается при событии добавления строк в оригинальную таблицу
|
protected List<TableModelEvent> |
onRowUpdated(TableModelEvent e,
int firstRow,
int lastRow)
Вызывается при событии обновления строк в оригинальной таблицы
|
protected List<TableModelEvent> |
onTableChanged(TableModelEvent e)
Вызывается при полном изменении оригинальной таблицы включая структуру
|
List<TableModelEvent> |
processRowUpdated(int firstRow,
int lastRow) |
void |
setRowFilter(xyz.cofe.collection.Predicate<RowData> filter) |
void |
setTableModel(TableModel tableModel)
Указывает на оригинальную таблицу
|
static void |
setValidateIndexOnDeleteEach(int validateIndexOnDeleteEach)
см ссылку
|
static void |
setValidateIndexOnInsertEach(int validateIndexOnInsertEach)
см ссылку
|
static void |
setValidateIndexOnUpdateEach(int validateIndexOnUpdateEach)
см ссылку
|
protected void |
shiftOnDeleteIndexes(int from,
int toInc,
xyz.cofe.common.Reciver<Integer> deletedOutterIndexes)
Сдвиг индексов при удалении исходных
|
protected void |
shiftOnInsertIndexes(int from,
int toInc)
Сдвиг индексов при вставке исходных
|
addPropertyChangeListener, addTableModelListener, attachTMListener, deletageTMEvent, detachTMListener, fireAllChanged, fireCellChanged, fireColumnsChanged, firePropertyChange, fireRowsDeleted, fireRowsInserted, fireRowsUpdated, fireRowUpdated, fireTableModelEvent, getColumnClass, getColumnName, getListeners, getListenersCollection, getTableModel, getValueAt, isCellEditable, isSourceListen, mapColumnToOutside, propertySupport, removePropertyChangeListener, removeTableModelListener, setSourceListen, setValueAtprotected xyz.cofe.collection.Predicate<RowData> rowFilter
public void setRowFilter(xyz.cofe.collection.Predicate<RowData> filter)
public xyz.cofe.collection.Predicate<RowData> getRowFilter()
public static int getValidateIndexOnInsertEach()
Указывает через сколько вставок проводить проверку на правильность индексов
public static void setValidateIndexOnInsertEach(int validateIndexOnInsertEach)
validateIndexOnInsertEach - Проверять индекс на кажой N вставкеgetValidateIndexOnInsertEach()public static int getValidateIndexOnUpdateEach()
Указывает через сколько обновлений проводить проверку на правильность индексов
public static void setValidateIndexOnUpdateEach(int validateIndexOnUpdateEach)
validateIndexOnUpdateEach - Проверять индекс на кажой N обновленииgetValidateIndexOnUpdateEach()public static int getValidateIndexOnDeleteEach()
Указывает через сколько обновлений проводить проверку на правильность индексов
public static void setValidateIndexOnDeleteEach(int validateIndexOnDeleteEach)
validateIndexOnDeleteEach - Проверять индекс на кажой N удаленииgetValidateIndexOnUpdateEach()public TreeMap<Integer,Integer> getRowToSourceMap()
getRowToSourceMap in interface GetRowToSourceMappublic TreeMap<Integer,Integer> getSourceToRowMap()
getSourceToRowMap in interface GetSourceToRowMappublic int getRowCount()
getRowCount in interface TableModelgetRowCount in class WrapTMpublic int getColumnCount()
getColumnCount in interface TableModelgetColumnCount in class WrapTMpublic int mapColumnToInside(int columnIndex)
WrapTMmapColumnToInside in class WrapTMcolumnIndex - индекс запрашиваемой колонкиpublic int mapRowToInside(int rowIndex)
WrapTMmapRowToInside in class WrapTMrowIndex - индекс запрашиваемой строкиpublic int mapRowToOutside(int rowIndex)
WrapTMmapRowToOutside in class WrapTMrowIndex - индекс запрашиваемой строкиpublic void applyFilter()
public void applyFilter(boolean fireAllChanged)
public void setTableModel(TableModel tableModel)
WrapTMsetTableModel in class WrapTMtableModel - Оригинал таблицаprotected void shiftOnInsertIndexes(int from,
int toInc)
from - исходный индекс - началоtoInc - исходный индекс - конецprotected void shiftOnDeleteIndexes(int from,
int toInc,
xyz.cofe.common.Reciver<Integer> deletedOutterIndexes)
from - исходный индекс - началоtoInc - исходный индекс - конецdeletedOutterIndexes - удаление исходящих индексовprotected void checkDestIndexesFast()
protected boolean isIndexesValid()
protected List<TableModelEvent> onRowInserted(TableModelEvent e, int firstRow, int lastRow)
WrapTMonRowInserted in class WrapTMe - Исходное событиеfirstRow - Начальная строкаlastRow - Конечная (включительно) строкаpublic void dump()
public void dump(xyz.cofe.text.Output xout)
public List<TableModelEvent> processRowUpdated(int firstRow, int lastRow)
protected List<TableModelEvent> onRowUpdated(TableModelEvent e, int firstRow, int lastRow)
WrapTMonRowUpdated in class WrapTMe - Исходное событиеfirstRow - Начальная строкаlastRow - Конечная (включительно) строкаprotected List<TableModelEvent> onRowDeleted(TableModelEvent e, int firstRow, int lastRow)
WrapTMonRowDeleted in class WrapTMe - Исходное событиеfirstRow - Начальная строкаlastRow - Конечная (включительно) строкаprotected List<TableModelEvent> onTableChanged(TableModelEvent e)
WrapTMonTableChanged in class WrapTMe - Исходное событиеCopyright © 2019. All rights reserved.