2023-10-26 20:05:36 +03:00
|
|
|
package Visual_DVM_2021.UI.Main;
|
|
|
|
|
import Common.UI.Windows.Dialog.DialogFields;
|
2023-10-28 00:18:23 +03:00
|
|
|
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
|
|
|
|
|
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageInterface;
|
|
|
|
|
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackageTree;
|
2023-10-26 20:05:36 +03:00
|
|
|
import Visual_DVM_2021.UI.Interface.FormWithSplitters;
|
|
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
public class SapforPackageFields implements DialogFields, FormWithSplitters {
|
2023-10-28 00:18:23 +03:00
|
|
|
SapforTasksPackage object = null;
|
|
|
|
|
|
2023-10-26 20:05:36 +03:00
|
|
|
private JPanel content;
|
|
|
|
|
public JSplitPane SCY;
|
|
|
|
|
private JToolBar tools;
|
|
|
|
|
public JLabel lObjectName;
|
|
|
|
|
private JButton bApplyObject;
|
|
|
|
|
private JButton bClose;
|
|
|
|
|
private JButton bPrevious;
|
|
|
|
|
private JButton bNext;
|
|
|
|
|
private JButton bCompare;
|
2023-10-26 20:46:03 +03:00
|
|
|
private JPanel treePanel;
|
2023-10-26 20:05:36 +03:00
|
|
|
public JPanel getContent() {
|
|
|
|
|
return content;
|
|
|
|
|
}
|
2023-10-27 02:07:13 +03:00
|
|
|
public JPanel getTreePanel(){return treePanel;}
|
2023-10-28 00:18:23 +03:00
|
|
|
public SapforPackageFields(){}
|
|
|
|
|
public SapforPackageFields(SapforTasksPackage object_in){
|
|
|
|
|
LoadSplitters();
|
|
|
|
|
object = object_in;
|
|
|
|
|
//--
|
|
|
|
|
lObjectName.setText(object.id);
|
|
|
|
|
treePanel.add(
|
|
|
|
|
new JScrollPane(
|
|
|
|
|
new SapforTasksPackageTree(SapforTasksPackageInterface.getTree(object))));
|
2023-10-26 20:05:36 +03:00
|
|
|
}
|
|
|
|
|
}
|