public final class FieldsLookup extends Object
Constructor and Description |
---|
FieldsLookup(BasicTable table,
BasicTable otherTable,
Runnable lookupChangeCallback,
Function<FieldsLookup,Void> newLookupCallback)
This constructor is for tests and must be removed in future.
|
FieldsLookup(Cursor cursor,
BasicCursor otherCursor,
Runnable lookupChangeCallback,
Function<FieldsLookup,Void> newLookupCallback) |
FieldsLookup(ViewCursor cursor,
BasicCursor otherCursor,
Runnable lookupChangeCallback,
Function<FieldsLookup,Void> newLookupCallback) |
FieldsLookup(View view,
View otherView,
Runnable lookupChangeCallback,
Function<FieldsLookup,Void> newLookupCallback)
This constructor is for tests and must be removed in future.
|
Modifier and Type | Method and Description |
---|---|
<T> FieldsLookup |
add(ColumnMeta<T> column,
ColumnMeta<T> otherColumn)
Adds columns binding for target and auxiliary cursors.
|
FieldsLookup |
add(String field,
String otherField)
Deprecated.
|
FieldsLookup |
and(BasicCursor otherCursor) |
FieldsLookup |
and(BasicTable filtering) |
FieldsLookup |
and(View filtering) |
List<String> |
getFields() |
DataGrainElement |
getFiltered() |
DataGrainElement |
getFiltering() |
BasicCursor |
getOtherCursor() |
List<String> |
getOtherFields() |
void |
validate() |
public FieldsLookup(Cursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
public FieldsLookup(ViewCursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
public FieldsLookup(BasicTable table, BasicTable otherTable, Runnable lookupChangeCallback, Function<FieldsLookup,Void> newLookupCallback)
table
- otherTable
- lookupChangeCallback
- newLookupCallback
- public FieldsLookup and(BasicCursor otherCursor)
public FieldsLookup and(BasicTable filtering)
public FieldsLookup and(View filtering)
@Deprecated public FieldsLookup add(String field, String otherField)
field
- filed of the target cursor.otherField
- field of the auxiliary cursor.public <T> FieldsLookup add(ColumnMeta<T> column, ColumnMeta<T> otherColumn)
T
- type of the column. Only columns of the same type can be bound in one filter.column
- column of the target cursor.otherColumn
- column of the auxiliary cursor.public void validate()
public DataGrainElement getFiltered()
public DataGrainElement getFiltering()
public BasicCursor getOtherCursor()
Copyright © 2023 CURS. All rights reserved.