2024-10-20 17:27:58 +03:00
|
|
|
package _VisualDVM.GlobalData.CompilerEnvironment.UI;
|
|
|
|
|
import Common.Database.Tables.DataSet;
|
|
|
|
|
import Common.Visual.DataSetControlForm;
|
|
|
|
|
import Common.Visual.Tables.RendererMultiline;
|
|
|
|
|
import _VisualDVM.GlobalData.CompilerEnvironment.CompilerEnvironment;
|
|
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
public class CompilerEnvironmentsForm extends DataSetControlForm<CompilerEnvironment> {
|
|
|
|
|
public CompilerEnvironmentsForm(DataSet<?, CompilerEnvironment> dataSource_in, JPanel mountPanel_in) {
|
|
|
|
|
super(dataSource_in, mountPanel_in);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String[] getUIColumnNames() {
|
|
|
|
|
return new String[]{
|
|
|
|
|
"Значение", "Описание"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-20 21:59:39 +03:00
|
|
|
public Object getFieldAt(CompilerEnvironment object, int columnIndex) {
|
|
|
|
|
switch (columnIndex) {
|
|
|
|
|
case 2:
|
|
|
|
|
return object.value;
|
|
|
|
|
case 3:
|
|
|
|
|
return object.description;
|
|
|
|
|
default:
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-20 17:27:58 +03:00
|
|
|
protected void AdditionalInitColumns() {
|
|
|
|
|
columns.get(2).setRendererClass(CompilerEnvironmentValueRenderer.class);
|
|
|
|
|
columns.get(2).setEditorClass(CompilerEnvironmentValueEditor.class);
|
|
|
|
|
columns.get(3).setRendererClass(RendererMultiline.class);
|
|
|
|
|
}
|
|
|
|
|
}
|