|
@@ -693,9 +693,9 @@ public class GUI<E> implements CategoryListener {
|
|
}
|
|
}
|
|
temp = getActualCps();
|
|
temp = getActualCps();
|
|
// Update of the Information about the HolonElements - only for
|
|
// Update of the Information about the HolonElements - only for
|
|
- if (temp instanceof HolonObject) {
|
|
|
|
- refreshTableHolonElement();
|
|
|
|
- }
|
|
|
|
|
|
+ // if (temp instanceof HolonObject) {
|
|
|
|
+ // refreshTableHolonElement();
|
|
|
|
+ // }
|
|
// Update of the Information about the Properties - only for
|
|
// Update of the Information about the Properties - only for
|
|
// CpsObjects
|
|
// CpsObjects
|
|
// Erase old data
|
|
// Erase old data
|
|
@@ -715,8 +715,11 @@ public class GUI<E> implements CategoryListener {
|
|
Object[] tempEnergy = { "Total Energy", ((HolonObject) temp).getCurrentEnergy() };
|
|
Object[] tempEnergy = { "Total Energy", ((HolonObject) temp).getCurrentEnergy() };
|
|
tableModelProperties.addRow(tempEnergy);
|
|
tableModelProperties.addRow(tempEnergy);
|
|
} else if (temp instanceof HolonTransformer) {
|
|
} else if (temp instanceof HolonTransformer) {
|
|
|
|
+ deleteRows();
|
|
Object[] tempRatioPerc = { "Ratio Type", true };
|
|
Object[] tempRatioPerc = { "Ratio Type", true };
|
|
tableModelProperties.addRow(tempRatioPerc);
|
|
tableModelProperties.addRow(tempRatioPerc);
|
|
|
|
+ }else{
|
|
|
|
+ deleteRows();
|
|
}
|
|
}
|
|
tableModelProperties.setCellEditable(0, 1, true);
|
|
tableModelProperties.setCellEditable(0, 1, true);
|
|
tableModelProperties.setCellEditable(2, 1, false);
|
|
tableModelProperties.setCellEditable(2, 1, false);
|