Class FieldsLookup
java.lang.Object
ru.curs.celesta.dbutils.filter.value.FieldsLookup
Created by ioann on 01.06.2017.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldsLookup(Cursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) FieldsLookup(ViewCursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) FieldsLookup(BasicTable table, BasicTable otherTable, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) This constructor is for tests and must be removed in future.FieldsLookup(View view, View otherView, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) This constructor is for tests and must be removed in future. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.<T> FieldsLookupadd(ColumnMeta<T> column, ColumnMeta<T> otherColumn) Adds columns binding for target and auxiliary cursors.and(BasicCursor otherCursor) and(BasicTable filtering) voidvalidate()
-
Constructor Details
-
FieldsLookup
public FieldsLookup(Cursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) -
FieldsLookup
public FieldsLookup(ViewCursor cursor, BasicCursor otherCursor, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) -
FieldsLookup
public FieldsLookup(BasicTable table, BasicTable otherTable, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) This constructor is for tests and must be removed in future.- Parameters:
table-otherTable-lookupChangeCallback-newLookupCallback-
-
FieldsLookup
public FieldsLookup(View view, View otherView, Runnable lookupChangeCallback, Function<FieldsLookup, Void> newLookupCallback) This constructor is for tests and must be removed in future.- Parameters:
view-otherView-lookupChangeCallback-newLookupCallback-
-
-
Method Details
-
and
-
and
-
and
-
add
Deprecated.Adds fields binding for target and auxiliary cursors.- Parameters:
field- filed of the target cursor.otherField- field of the auxiliary cursor.- Returns:
-
add
Adds columns binding for target and auxiliary cursors.- Type Parameters:
T- type of the column. Only columns of the same type can be bound in one filter.- Parameters:
column- column of the target cursor.otherColumn- column of the auxiliary cursor.- Returns:
-
validate
public void validate() -
getFiltered
-
getFiltering
-
getFields
-
getOtherFields
-
getOtherCursor
-