E - ТИп элемента в спискеpublic class CachedTM<E> extends ListTM<E>
| Modifier and Type | Field and Description |
|---|---|
protected Iterable<E> |
source |
protected xyz.cofe.common.CloseableSet |
sourceCloseableSet |
columnPropertiesListener, columns, columnsAdapter, evSupport, list, listListeners, lock| Constructor and Description |
|---|
CachedTM() |
| Modifier and Type | Method and Description |
|---|---|
protected Closeable |
addEventListener(xyz.cofe.collection.list.EventList<E> el) |
protected Closeable |
addEventListener(xyz.cofe.collection.set.EventSet<E> es) |
protected void |
addToCache(E item) |
protected boolean |
contains(Collection<E> col,
E obj) |
void |
fetch()
Обновление кеша,
вытягивает данные из источника новые добавляет,
отсуствующие удаляет
|
Iterable<E> |
getSource() |
void |
refresh()
Удаляет содержимое кеша, и читает данные из источника
|
protected void |
removeFromCache(E item) |
void |
setSource(Iterable<E> source) |
addPropertyChangeListener, addSourceListeners, addTableModelListener, fireAllChanged, fireCellChanged, fireColumnsChanged, firePropertyChange, fireRowsDeleted, fireRowsInserted, fireRowsUpdated, fireRowUpdated, fireTableModelEvent, getColumnClass, getColumnCount, getColumnName, getColumns, getEventSupport, getIndexesOfItem, getIndexOfItem, getItemByIndex, getList, getListeners, getListenersCollection, getRowCount, getValueAt, isCellEditable, isSourceListen, onDeleted, onInserted, onUpdated, propertySupport, removePropertyChangeListener, removeTableModelListener, setList, setSourceListen, setValueAtprotected void removeFromCache(E item)
protected void addToCache(E item)
protected boolean contains(Collection<E> col, E obj)
public void refresh()
public void fetch()
Copyright © 2019. All rights reserved.