public DefaultMutableTreeNode getSolarTree() {
return solarTree;
}
public void selectOrbit(final ActionEvent event) {
final SolarObject clicked = (SolarObject) ComponentUtils.findParameter(event.getComponent(), "luminary");
boolean add = false;
final List<Integer> selectedRows = sheetState.getSelectedRows();
for (int i = 0; i < solarList.size(); i++) {
if (clicked.getOrbit().equals(solarList.get(i).getOrbit())) {
add = !selectedRows.contains(i);
LOG.info(" add = " + add);
LOG.info(" i = " + i);
break;
}
}
for (int i = 0; i < solarList.size(); i++) {
if (clicked.getOrbit().equals(solarList.get(i).getOrbit())) {
if (add && !selectedRows.contains(i)) {
selectedRows.add(i);
} else {
selectedRows.remove((Object) i);
}