красные галочки для авто тестирования. пока без обновления бд

This commit is contained in:
2024-09-19 23:05:04 +03:00
parent 25cd097445
commit 3863b31328
14 changed files with 80 additions and 407 deletions

View File

@@ -0,0 +1,11 @@
package Common.UI.Tables;
import Common.Utils.Utils;
import TestingSystem.Common.Configuration.Configuration;
public class ConfigurationAutoRenderer extends DBObjectRenderer {
@Override
public void Display() {
if (value != null) {
setIcon(((Configuration)value).GetAutoIcon());
}
}
}

View File

@@ -0,0 +1,13 @@
package Common.UI.Tables;
import TestingSystem.Common.Configuration.Configuration;
public class ConfigurationAutoSwitcher extends DBObjectEditor<Configuration> {
@Override
public void Action() {
value.SwitchAuto();
setIcon(value.GetAutoIcon());
}
@Override
public Object getCellEditorValue() {
return value;
}
}

View File

@@ -4,5 +4,7 @@ public enum TableEditors {
EditorSelect,
EditorHyperlinks,
EditorDimension,
EditorCompilerEnvironmentValue, EditorCompilerOptionParameterValue
EditorCompilerEnvironmentValue,
EditorCompilerOptionParameterValue,
EditorAutoConfiguration
}

View File

@@ -15,5 +15,6 @@ public enum TableRenderers {
RendererCompilerOptionParameterValue,
RendererCompilerEnvironmentValue,
RendererCompilerOptionParameterName,
RendererStatusEnum
RendererStatusEnum,
RendererAutoConfiguration
}

View File

@@ -330,6 +330,7 @@ public class UI {
TableRenderers.put(RendererCompilerOptionParameterName, new CompilerOptionParameterNameRenderer());
TableRenderers.put(RendererCompilerEnvironmentValue, new CompilerEnvironmentValueRenderer());
TableRenderers.put(RendererStatusEnum, new StatusEnumRenderer());
TableRenderers.put(RendererAutoConfiguration, new ConfigurationAutoRenderer());
//---------------------------------------------
TreeRenderers.put(RendererGraph, new GraphTreeCellRenderer());
TreeRenderers.put(RendererRemoteFile, new RemoteFileRenderer());
@@ -338,12 +339,14 @@ public class UI {
TreeRenderers.put(RendererSapforVersion, new SapforVersionsTreeCellRenderer());
TreeRenderers.put(RendererRule, new RulesTreeCellRenderer());
TreeRenderers.put(RendererSelection, new SelectionTreeCellRenderer());
//----------------------------------------------
TableEditors.put(EditorSelect, new DBObjectSelector());
TableEditors.put(EditorHyperlinks, new VectorEditor());
TableEditors.put(EditorDimension, new DimensionStateChanger());
TableEditors.put(EditorCompilerOptionParameterValue, new CompilerOptionParameterValueEditor());
TableEditors.put(EditorCompilerEnvironmentValue, new CompilerEnvironmentValueEditor());
TableEditors.put(EditorAutoConfiguration, new ConfigurationAutoSwitcher());
//</editor-fold>
}
public static void printAccessible_r(Accessible accessible) {