public class RowData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
rowIndex |
protected TableModel |
tableModel |
| Constructor and Description |
|---|
RowData() |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<RowData> |
and(Predicate<RowData>... predicates) |
static Convertor<String,Predicate<RowData>> |
andConvertor(Convertor<String,Predicate<RowData>>... predicates) |
static Closeable |
bind(FilterRowTM filterRowTM,
JTextComponent filterTextCmpt,
Convertor<String,Predicate<RowData>> convertToFilter) |
int |
getColumnCount() |
static Convertor<String,Predicate<RowData>> |
getContainsConvertor(int column)
Конвертор филльтра: contains
|
int |
getRowIndex() |
TableModel |
getTableModel() |
Object |
getValue(int column) |
static Predicate<RowData> |
like(String text) |
static Predicate<RowData> |
not(Predicate<RowData> predicate) |
static Predicate<RowData> |
or(Predicate<RowData>... predicates) |
void |
setRowIndex(int rowIndex) |
void |
setTableModel(TableModel tableModel) |
static Predicate<RowData> |
stringValue(int columnIndex,
Predicate<String> pred)
Сравнивает текстовое представление данных (toString()) с значением (pred)
и соответственно возвращает результат сравнения.
|
static Predicate<RowData> |
textContains(int column,
String text) |
static Predicate<String> |
textLikeWildcard(String text) |
protected TableModel tableModel
protected int rowIndex
public TableModel getTableModel()
public void setTableModel(TableModel tableModel)
public int getRowIndex()
public void setRowIndex(int rowIndex)
public int getColumnCount()
public Object getValue(int column)
public static Predicate<RowData> stringValue(int columnIndex, Predicate<String> pred)
columnIndex - колонка для сравнения или -1 - для любой колонкиpred - функция сравненияpublic static Convertor<String,Predicate<RowData>> getContainsConvertor(int column)
column - колонка или -1 - для любой колонкиpublic static Convertor<String,Predicate<RowData>> andConvertor(Convertor<String,Predicate<RowData>>... predicates)
public static Closeable bind(FilterRowTM filterRowTM, JTextComponent filterTextCmpt, Convertor<String,Predicate<RowData>> convertToFilter)
Copyright © 2018. All rights reserved.