no message
This commit is contained in:
@@ -31,6 +31,18 @@ public class BugReportsDBTable extends DBTable<String, BugReport> {
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new DataSetControlForm(this, mountPanel) {
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"Описание",
|
||||
"Отправитель",
|
||||
"Исполнитель",
|
||||
"Проект",
|
||||
"Завершенность",
|
||||
"Дата создания",
|
||||
"Дата изменения",
|
||||
"Статус"};
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
super.ShowCurrentObject();
|
||||
@@ -86,17 +98,7 @@ public class BugReportsDBTable extends DBTable<String, BugReport> {
|
||||
public Comparator<BugReport> getComparator() {
|
||||
return (o1, o2) -> -(o1.getDate().compareTo(o2.getDate()));
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{"Описание",
|
||||
"Отправитель",
|
||||
"Исполнитель",
|
||||
"Проект",
|
||||
"Завершенность",
|
||||
"Дата создания",
|
||||
"Дата изменения",
|
||||
"Статус"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getFieldAt(BugReport object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
|
||||
@@ -33,6 +33,15 @@ public class ComponentsSet extends DataSet<ComponentType, Component> {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"Компонент",
|
||||
"Текущая версия",
|
||||
"Актуальная версия",
|
||||
"Дата сборки",
|
||||
"Статус"};
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
columns.get(3).setRendererClass(RendererMaskedNanInteger.class);
|
||||
@@ -63,10 +72,6 @@ public class ComponentsSet extends DataSet<ComponentType, Component> {
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{"Компонент", "Текущая версия", "Актуальная версия", "Дата сборки", "Статус"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(Component object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 2:
|
||||
|
||||
@@ -32,12 +32,15 @@ public class SubscriberWorkspaceDBTable extends iDBTable<SubscriberWorkspace> {
|
||||
}
|
||||
//-
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{"URL", "пользователь", "папка"};
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new DataSetControlForm(this, mountPanel) {
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"URL",
|
||||
"пользователь",
|
||||
"папка"};
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(), PassCode.DeleteSubscriberWorkspace);
|
||||
|
||||
@@ -38,6 +38,13 @@ public class SubsribersDBTable extends DBTable<String, Subscriber> {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"Имя",
|
||||
"Роль",
|
||||
"Рассылка"};
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
boolean admin = Global.mainModule.getAccount().role.equals(AccountRole.Admin);
|
||||
columns.get(0).setVisible(admin);
|
||||
@@ -57,10 +64,6 @@ public class SubsribersDBTable extends DBTable<String, Subscriber> {
|
||||
};
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{"Имя", "Роль", "Рассылка"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(Subscriber object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user