перевод тестовых описания данных обратно в таблицы. нужно для обобщения описаний типовых проходов
This commit is contained in:
@@ -72,12 +72,6 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
}
|
||||
}
|
||||
}
|
||||
protected String getPluralDescription() {
|
||||
return "";
|
||||
}
|
||||
protected String getSingleDescription() {
|
||||
return "";
|
||||
}
|
||||
<M> Vector<M> getFilters(Class<M> f) {
|
||||
Vector<M> res = new Vector<>();
|
||||
for (DBObjectFilter_ filter_ : allFilters) {
|
||||
@@ -342,7 +336,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
filter.Mount(getControl());
|
||||
}
|
||||
protected DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription());
|
||||
return new DataMenuBar(dataSource.getPluralDescription());
|
||||
}
|
||||
protected void createFilters() {
|
||||
}
|
||||
@@ -465,7 +459,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
}
|
||||
public boolean CheckSelectedOrCurrent(TextLog log) {
|
||||
if ((getSelectedCount() == 0) && (CurrentName() == null || (getCurrent() == null))) {
|
||||
log.Writeln_(getPluralDescription() + ":");
|
||||
log.Writeln_(dataSource.getPluralDescription() + ":");
|
||||
log.Writeln_("Отсутствуют отмеченные объекты, или текущий объект!");
|
||||
return false;
|
||||
}
|
||||
@@ -512,13 +506,13 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
}
|
||||
//ДИАЛОГИ
|
||||
public boolean ShowAddObjectDialog(D object) {
|
||||
return getDialog().ShowDialog(getSingleDescription() + ": добавление", object);
|
||||
return getDialog().ShowDialog(dataSource.getSingleDescription() + ": добавление", object);
|
||||
}
|
||||
public boolean ShowEditObjectDialog(D object) {
|
||||
DBObjectDialog dialog = getDialog();
|
||||
dialog.edit = true;
|
||||
dialog.SetEditLimits();
|
||||
String title = getSingleDescription() + ": ";
|
||||
String title = dataSource.getSingleDescription() + ": ";
|
||||
if (isObjectEditable(object)) {
|
||||
title += "редактирование";
|
||||
} else {
|
||||
@@ -528,9 +522,9 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
||||
return dialog.ShowDialog(title, object);
|
||||
}
|
||||
public boolean ShowDeleteObjectDialog(D object) {
|
||||
return UI.Warning(getSingleDescription() + " " + object.getBDialogName() + " будет удален(а)");
|
||||
return UI.Warning(dataSource.getSingleDescription() + " " + object.getBDialogName() + " будет удален(а)");
|
||||
}
|
||||
public boolean ShowDeleteObjectsDialog(int toDeleteCount) {
|
||||
return UI.Warning(getPluralDescription() + " в количестве " + toDeleteCount + " будут удалены)");
|
||||
return UI.Warning(dataSource.getPluralDescription() + " в количестве " + toDeleteCount + " будут удалены)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user