no message
This commit is contained in:
@@ -22,12 +22,6 @@ import java.util.stream.Collectors;
|
||||
public class ProjectArray extends DBObject {
|
||||
//----------------------------------------------------------------------
|
||||
public static final String[] alignNames = {"i", "j", "k", "l", "m", "n", "q", "r", "s", "t", "u", "w", "x", "y", "z"};
|
||||
//-
|
||||
public static String filterName = "";
|
||||
public static String filterLocation = "";
|
||||
public static String filterLocationName = "";
|
||||
public static String filterFile = "";
|
||||
public static String filterRegion = "*";
|
||||
public String UniqKey;
|
||||
public ArrayState State;
|
||||
//-----------------------------
|
||||
|
||||
@@ -10,6 +10,12 @@ import _VisualDVM.Visual.Tables.RendererHyperlinks;
|
||||
|
||||
import javax.swing.*;
|
||||
public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
||||
//-
|
||||
public static String filterName = "";
|
||||
public static String filterLocation = "";
|
||||
public static String filterLocationName = "";
|
||||
public static String filterFile = "";
|
||||
public static String filterRegion = "*";
|
||||
public ProjectArraysForm(DataSet<?, ProjectArray> dataSource_in, JPanel mountPanel_in) {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
@@ -43,11 +49,11 @@ public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
||||
public boolean isObjectVisible(ProjectArray object) {
|
||||
if (super.isObjectVisible(object)) {
|
||||
if (object.isTemplFlag > 0) return true;
|
||||
return object.shortName.startsWith(object.filterName) &&
|
||||
object.location.toString().startsWith(object.filterLocation) &&
|
||||
object.locName.startsWith(object.filterLocationName) &&
|
||||
object.has_decl_place(object.filterFile) &&
|
||||
object.has_region(object.filterRegion);
|
||||
return object.shortName.startsWith(filterName) &&
|
||||
object.location.toString().startsWith(filterLocation) &&
|
||||
object.locName.startsWith(filterLocationName) &&
|
||||
object.has_decl_place(filterFile) &&
|
||||
object.has_region(filterRegion);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class BugReportsForm extends DataSetControlForm<BugReport> {
|
||||
//todo упразднить и раскидать по стандартным фильтрам. галки и столбцы
|
||||
public static String filterKey = "";
|
||||
public static String filterSenderName = "";
|
||||
public static String filterDescription = "";
|
||||
public static String filterDescription = "";//ввести рендерер, чтобы значение столбца выдавало фулл описание и фильтр по столбцу работал
|
||||
public static String filterComment = "";
|
||||
public static String filterExecutor = "";
|
||||
public static String filterVersion = "";
|
||||
|
||||
@@ -9,8 +9,6 @@ public interface VariantsWindow extends VisualizerForm, FormWithSplitters {
|
||||
void ShowNoVariantsFilter();
|
||||
void ShowTotalVariantsCount();
|
||||
void ShowFilteredVariantsCount();
|
||||
void ShowCheckedVariantsCount();
|
||||
void ShowNoCheckedVariantsCount();
|
||||
void ShowNoFilteredVariantsCount();
|
||||
void ShowNoTotalVariantsCount();
|
||||
void ShowVariants();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package _VisualDVM.Visual.Windows;
|
||||
import Common.Visual.TextField.StyledTextField;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
||||
import _VisualDVM.ProjectData.SapforData.Arrays.UI.ProjectArraysForm;
|
||||
import _VisualDVM.Visual.Interface.ArraysWindow;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -24,16 +24,16 @@ public class ArraysForm implements ArraysWindow {
|
||||
Global.mainModule.getProject().declaratedArrays.mountUI(arraysPanel);
|
||||
Global.mainModule.getProject().db.savedArrays.mountUI(savedArraysPanel);
|
||||
//--
|
||||
filterName.setText(ProjectArray.filterName);
|
||||
filterName.setText(ProjectArraysForm.filterName);
|
||||
filterName.getDocument().addDocumentListener(new DocumentListener() {
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterName = filterName.getText();
|
||||
ProjectArraysForm.filterName = filterName.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterName = filterName.getText();
|
||||
ProjectArraysForm.filterName = filterName.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
@@ -41,16 +41,16 @@ public class ArraysForm implements ArraysWindow {
|
||||
}
|
||||
});
|
||||
//-
|
||||
filterLocation.setText(ProjectArray.filterLocation);
|
||||
filterLocation.setText(ProjectArraysForm.filterLocation);
|
||||
filterLocation.getDocument().addDocumentListener(new DocumentListener() {
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterLocation = filterLocation.getText();
|
||||
ProjectArraysForm.filterLocation = filterLocation.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterLocation = filterLocation.getText();
|
||||
ProjectArraysForm.filterLocation = filterLocation.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
@@ -58,16 +58,16 @@ public class ArraysForm implements ArraysWindow {
|
||||
}
|
||||
});
|
||||
//-
|
||||
filterLocationName.setText(ProjectArray.filterLocationName);
|
||||
filterLocationName.setText(ProjectArraysForm.filterLocationName);
|
||||
filterLocationName.getDocument().addDocumentListener(new DocumentListener() {
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterLocationName = filterLocationName.getText();
|
||||
ProjectArraysForm.filterLocationName = filterLocationName.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterLocationName = filterLocationName.getText();
|
||||
ProjectArraysForm.filterLocationName = filterLocationName.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
@@ -75,16 +75,16 @@ public class ArraysForm implements ArraysWindow {
|
||||
}
|
||||
});
|
||||
//-
|
||||
filterFile.setText(ProjectArray.filterFile);
|
||||
filterFile.setText(ProjectArraysForm.filterFile);
|
||||
filterFile.getDocument().addDocumentListener(new DocumentListener() {
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterFile = filterFile.getText();
|
||||
ProjectArraysForm.filterFile = filterFile.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterFile = filterFile.getText();
|
||||
ProjectArraysForm.filterFile = filterFile.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
@@ -92,16 +92,16 @@ public class ArraysForm implements ArraysWindow {
|
||||
}
|
||||
});
|
||||
//-
|
||||
filterRegion.setText(ProjectArray.filterRegion);
|
||||
filterRegion.setText(ProjectArraysForm.filterRegion);
|
||||
filterRegion.getDocument().addDocumentListener(new DocumentListener() {
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterRegion = filterRegion.getText();
|
||||
ProjectArraysForm.filterRegion = filterRegion.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
ProjectArray.filterRegion = filterRegion.getText();
|
||||
ProjectArraysForm.filterRegion = filterRegion.getText();
|
||||
ShowArrays();
|
||||
}
|
||||
@Override
|
||||
|
||||
@@ -85,10 +85,6 @@ public class VariantsForm implements VariantsWindow {
|
||||
TotalVariantsCount.setText(String.valueOf(Global.mainModule.getProject().getTotalVariantsCount()));
|
||||
}
|
||||
@Override
|
||||
public void ShowCheckedVariantsCount() {
|
||||
// SelectedVariantsCount.setText(Current.getProject().CheckedVariantsCounter.toString());
|
||||
}
|
||||
@Override
|
||||
public void ShowVariants() {
|
||||
Global.mainModule.getProject().parallelVariants.ShowUI();
|
||||
}
|
||||
@@ -101,10 +97,6 @@ public class VariantsForm implements VariantsWindow {
|
||||
Global.mainModule.getProject().parallelVariants.ClearUI();
|
||||
}
|
||||
@Override
|
||||
public void ShowNoCheckedVariantsCount() {
|
||||
//SelectedVariantsCount.setText("0");
|
||||
}
|
||||
@Override
|
||||
public void ShowNoFilteredVariantsCount() {
|
||||
VisibleVariantsCount.setText("0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user