вывод диалоговых форм для объектов в отдельный класс
This commit is contained in:
@@ -13,7 +13,7 @@ public class DeleteServerObject<S extends RepositoryServer, D extends DBObject>
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = (D) getDb().getTable(d).getUI().getCurrent();
|
||||
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).ShowDeleteObjectDialog(target);
|
||||
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).getUI().ShowDeleteObjectDialog(target);
|
||||
}
|
||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||
@Override
|
||||
|
||||
@@ -39,7 +39,7 @@ public class DeleteServerObjects<S extends RepositoryServer, D extends DBObject>
|
||||
if (!table.getUI().CheckSelectedOrCurrent(Log))
|
||||
return false;
|
||||
target = table.getUI().getSelectedOrCurrentKeys();
|
||||
return table.ShowDeleteObjectsDialog(target.size());
|
||||
return table.getUI().ShowDeleteObjectsDialog(target.size());
|
||||
}
|
||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||
@Override
|
||||
|
||||
@@ -16,7 +16,7 @@ public class EditServerObject<S extends RepositoryServer, D extends DBObject> ex
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = (D) getDb().getTable(d).getUI().getCurrent();
|
||||
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).ShowEditObjectDialog(target);
|
||||
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).getUI().ShowEditObjectDialog(target);
|
||||
}
|
||||
//--
|
||||
@Override
|
||||
|
||||
@@ -26,6 +26,6 @@ public abstract class ServerObjectPass<S extends RepositoryServer, D extends DBO
|
||||
}
|
||||
//-
|
||||
public boolean fillObjectFields() throws Exception {
|
||||
return getDb().getTable(d).ShowAddObjectDialog(target);
|
||||
return getDb().getTable(d).getUI().ShowAddObjectDialog(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user