|
@@ -134,7 +134,7 @@ public class GUI implements CategoryListener {
|
|
private final JButton btnAdd = new JButton("+");
|
|
private final JButton btnAdd = new JButton("+");
|
|
private final JButton btnDel = new JButton("-");
|
|
private final JButton btnDel = new JButton("-");
|
|
private final JButton btnAddHolEL = new JButton("+");
|
|
private final JButton btnAddHolEL = new JButton("+");
|
|
- private final JButton btnDelHolEL = new JButton("-");
|
|
|
|
|
|
+ private final JButton btnDelHolEL = new JButton("-");;
|
|
private final JButton resetGraphBtn = new JButton("Reset");
|
|
private final JButton resetGraphBtn = new JButton("Reset");
|
|
private final JToolBar toolBar = new JToolBar();
|
|
private final JToolBar toolBar = new JToolBar();
|
|
private final JToolBar toolBarHolonEl = new JToolBar();
|
|
private final JToolBar toolBarHolonEl = new JToolBar();
|
|
@@ -145,6 +145,7 @@ public class GUI implements CategoryListener {
|
|
private final JMenuItem germanBtn = new JMenuItem("DE");
|
|
private final JMenuItem germanBtn = new JMenuItem("DE");
|
|
private final JMenuItem czechBtn = new JMenuItem("CZ");
|
|
private final JMenuItem czechBtn = new JMenuItem("CZ");
|
|
private final JMenuItem chineseBtn = new JMenuItem("ZH");
|
|
private final JMenuItem chineseBtn = new JMenuItem("ZH");
|
|
|
|
+
|
|
// private final JComboBox comboBoxGraph = new JComboBox();
|
|
// private final JComboBox comboBoxGraph = new JComboBox();
|
|
private final Console console = new Console();
|
|
private final Console console = new Console();
|
|
private final MyCanvas canvas;
|
|
private final MyCanvas canvas;
|
|
@@ -164,6 +165,7 @@ public class GUI implements CategoryListener {
|
|
"Quantity", "Activated", "Flexible"};
|
|
"Quantity", "Activated", "Flexible"};
|
|
private final String[] columnNamesSingle = {"Nr.", "Device", "Energy", "Flexible Energy Available", "Quantity",
|
|
private final String[] columnNamesSingle = {"Nr.", "Device", "Energy", "Flexible Energy Available", "Quantity",
|
|
"Activated", "Flexible"};
|
|
"Activated", "Flexible"};
|
|
|
|
+
|
|
private final ArrayList<PropertyTable> tables = new ArrayList<>();
|
|
private final ArrayList<PropertyTable> tables = new ArrayList<>();
|
|
private final String[] comboBoxCat = {"Category", "Object", "Switch"};
|
|
private final String[] comboBoxCat = {"Category", "Object", "Switch"};
|
|
private final UpdateController updCon;
|
|
private final UpdateController updCon;
|
|
@@ -597,6 +599,10 @@ public class GUI implements CategoryListener {
|
|
mnLanguage.add(chineseBtn);
|
|
mnLanguage.add(chineseBtn);
|
|
chineseBtn.setIcon(new ImageIcon(new ImageIcon("res/Button_Images/FlagZH.png").getImage().getScaledInstance(20,
|
|
chineseBtn.setIcon(new ImageIcon(new ImageIcon("res/Button_Images/FlagZH.png").getImage().getScaledInstance(20,
|
|
20, java.awt.Image.SCALE_SMOOTH)));
|
|
20, java.awt.Image.SCALE_SMOOTH)));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
mntmFindReplace.addActionListener(actionEvent -> {
|
|
mntmFindReplace.addActionListener(actionEvent -> {
|
|
try {
|
|
try {
|
|
@@ -608,6 +614,11 @@ public class GUI implements CategoryListener {
|
|
ex.printStackTrace();
|
|
ex.printStackTrace();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
mnNewMenuEdit.add(mntmFindReplace);
|
|
mnNewMenuEdit.add(mntmFindReplace);
|
|
mntmEditShowedInformation.addActionListener(actionEvent -> {
|
|
mntmEditShowedInformation.addActionListener(actionEvent -> {
|
|
@@ -813,6 +824,7 @@ public class GUI implements CategoryListener {
|
|
// single-selection mode (CPS-Object)
|
|
// single-selection mode (CPS-Object)
|
|
model.getMultiTable().setColumnIdentifiers(columnNamesMulti);
|
|
model.getMultiTable().setColumnIdentifiers(columnNamesMulti);
|
|
model.getSingleTable().setColumnIdentifiers(columnNamesSingle);
|
|
model.getSingleTable().setColumnIdentifiers(columnNamesSingle);
|
|
|
|
+ //TODO
|
|
model.getTableHolonElement().setBorder(null);
|
|
model.getTableHolonElement().setBorder(null);
|
|
model.getTableHolonElement().setFillsViewportHeight(true);
|
|
model.getTableHolonElement().setFillsViewportHeight(true);
|
|
model.getTableHolonElement().setCellSelectionEnabled(true);
|
|
model.getTableHolonElement().setCellSelectionEnabled(true);
|
|
@@ -1707,6 +1719,8 @@ public class GUI implements CategoryListener {
|
|
refreshLanguages();
|
|
refreshLanguages();
|
|
updCon.refreshTableProperties(model.getPropertyTable());
|
|
updCon.refreshTableProperties(model.getPropertyTable());
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
mntmUndo.addActionListener(new ActionListener() {
|
|
mntmUndo.addActionListener(new ActionListener() {
|
|
@Override
|
|
@Override
|