no message

This commit is contained in:
2024-10-25 00:43:03 +03:00
parent aa490e4181
commit 9482abefcc
12 changed files with 29 additions and 29 deletions

View File

@@ -5,6 +5,7 @@ import Common.Database.Objects.iDBObject;
import Common.Database.Tables.DBTable;
import Common.Database.Tables.DataSet;
import Common.Passes.PassCode_;
import Common.Utils.TextLog;
import Common.Utils.Utils_;
import java.io.File;
@@ -284,5 +285,13 @@ public abstract class Database {
}
}
//---
public boolean Check(TextLog log, Class... tablesClasses) {
for (Class tableClass : tablesClasses) {
DBTable table = getTable(tableClass);
if (table.getUI() != null)
table.getUI().Check(log);
}
return log.isEmpty();
}
public abstract PassCode_ getSynchronizePassCode(); //если бд есть на сервере.
}

View File

@@ -256,14 +256,5 @@ public abstract class SQLiteDatabase extends Database {
}
//--
//https://stackoverflow.com/questions/8558099/sqlite-query-with-byte-where-clause
//получение "текущих" объектов. скорее временная мера.
public boolean Check(TextLog log, Class... tablesClasses) {
for (Class tableClass : tablesClasses) {
getTable(tableClass).getUI().Check(log);
}
return log.isEmpty();
}
public boolean matchCurrentID(Class tableClass, int id_in) {
return getTable(tableClass).getUI().matchCurrentID(id_in);
}
}

View File

@@ -64,10 +64,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
ui.Show(key);
}
}
public void RefreshUI(){
if ((ui != null) && ui.isShown())
ui.RedrawControl();
}
//СОДЕРЖИМОЕ
public D getFirstRecord() {
return Data.values().stream().findFirst().orElse(null);

View File

@@ -87,11 +87,6 @@ public abstract class MainModule_<D extends VisualiserDatabase, U extends UIModu
Log.Writeln_(name.getDescription() + " не выбран(а)");
return Log.isEmpty();
}
/*
public boolean matchCurrentID(Current_ name, int id) {
return (get(name) != null) && (((iDBObject) get(name)).id == id);
}
*/
//ПРОХОДЫ
public abstract Class getPassCodesEnum();
public abstract String getAllPassesClassPrefix();

View File

@@ -24,7 +24,8 @@ public abstract class EditObjectPass<D extends DBObject> extends ObjectPass<D> {
protected void showFinish() throws Exception {
getTable().ShowUI(target.getPK());
for (Class dep : getTable().getFKDependencies().keySet()) {
getDb().getTable(dep).RefreshUI();
if (getDb().getTable(dep).getUI()!=null)
getDb().getTable(dep).getUI().RedrawControl();
}
}
}