no message
This commit is contained in:
@@ -70,13 +70,14 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
public ColumnInfo getColumnInfo(int i) {
|
||||
return columns.get(i);
|
||||
}
|
||||
//--
|
||||
protected String[] getUIColumnNames() {
|
||||
return new String[]{};
|
||||
}
|
||||
//---------для отображения.
|
||||
protected Object getFieldAt(D object, int coulmnIndex) {
|
||||
public Object getFieldAt(D object, int coulmnIndex) {
|
||||
return null;
|
||||
}
|
||||
//-
|
||||
public void SaveColumns() {
|
||||
if (MainModule_.instance.getDb() != null) {
|
||||
try {
|
||||
@@ -326,16 +327,23 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
}
|
||||
protected void createFilters() {
|
||||
}
|
||||
protected boolean applyFiltersMenus(DBObject object) {
|
||||
protected boolean applyFiltersMenus(D object) {
|
||||
for (DataSetFiltersMenu filterMenu : filtersMenus) {
|
||||
if (!filterMenu.Validate(object))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public boolean ApplyFilters(DBObject object) {
|
||||
protected boolean applyHeadersFilters(D object){
|
||||
for (HeaderTextFilter headerTextFilter: headersTextFilters.values()){
|
||||
if (!headerTextFilter.Validate(object))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public boolean ApplyFilters(D object) {
|
||||
//могут быть и другие фильтры ( например свои/активные). перенести их сюда и обобщить
|
||||
return applyFiltersMenus(object);
|
||||
return applyFiltersMenus(object)&&applyHeadersFilters(object);
|
||||
}
|
||||
@Override
|
||||
protected void redrawControl() {
|
||||
|
||||
Reference in New Issue
Block a user