нечувствительность фильтров заголовков к регистру

This commit is contained in:
2024-10-25 02:37:57 +03:00
parent 2490a783dd
commit d537cbe00d
2 changed files with 2 additions and 3 deletions

1
.idea/workspace.xml generated
View File

@@ -8,7 +8,6 @@
<component name="ChangeListManager">
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/UI/CompilationTasksForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/UI/CompilationTasksForm.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@@ -29,7 +29,7 @@ public class HeaderTextFilter<D extends DBObject> implements DBObjectFilter_<D>
@Override
public boolean Validate(D object) {
Object field = dataSet.getUI().getFieldAt(object, columnIndex);
return (field instanceof String) && field.toString().contains(filterValue);
return (field instanceof String) && field.toString().toLowerCase().contains(filterValue);
}
//---
public void Mount(DataTable control) {
@@ -108,6 +108,6 @@ public class HeaderTextFilter<D extends DBObject> implements DBObjectFilter_<D>
return filterValue;
}
public void setFilterValue(String filterValue_in) {
this.filterValue = filterValue_in;
this.filterValue = filterValue_in.toLowerCase();
}
}