summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-16 13:51:25 +0200
committerSimon Rettberg2015-09-16 13:51:25 +0200
commit37a9448b444ba1530b63b8b5152800b831a87f77 (patch)
tree9e3a1c0adf7b044a1dfd4f52ccc73869a5fd338a /dozentenmodul/src/main/java
parent[server] Refresh organization list of a user with an unknown organization con... (diff)
downloadtutor-module-37a9448b444ba1530b63b8b5152800b831a87f77.tar.gz
tutor-module-37a9448b444ba1530b63b8b5152800b831a87f77.tar.xz
tutor-module-37a9448b444ba1530b63b8b5152800b831a87f77.zip
[client] SatListWindow: Fix formating
Diffstat (limited to 'dozentenmodul/src/main/java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java14
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java2
2 files changed, 8 insertions, 8 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
index 04d618b4..734f8c5a 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java
@@ -32,7 +32,7 @@ public class SatelliteListWindow extends SatelliteListWindowLayout {
public SatelliteListWindow(final Window modalParent, List<Satellite> satList) {
super(modalParent, satList);
// Check, whether we have any satellites
- if (satList != null && !satList.isEmpty()){
+ if (satList != null && !satList.isEmpty()) {
radioToSat.keySet().iterator().next().setSelected(true);
customIpField.setEnabled(false);
} else {
@@ -46,7 +46,7 @@ public class SatelliteListWindow extends SatelliteListWindowLayout {
customIpField.setEnabled(radioCustomIp.isSelected());
}
};
- for ( JRadioButton radio : radioToSat.keySet() ){
+ for (JRadioButton radio : radioToSat.keySet()) {
radio.addActionListener(listener);
}
radioCustomIp.addActionListener(listener);
@@ -56,10 +56,10 @@ public class SatelliteListWindow extends SatelliteListWindowLayout {
@Override
public void actionPerformed(ActionEvent e) {
// satellite is selected
- if(!radioCustomIp.isSelected()){
+ if (!radioCustomIp.isSelected()) {
// check, which satellite is selected
- for ( Entry<JRadioButton, Satellite> entry : radioToSat.entrySet() ){
- if(entry.getKey().isSelected()){
+ for (Entry<JRadioButton, Satellite> entry : radioToSat.entrySet()) {
+ if (entry.getKey().isSelected()) {
satellite = entry.getValue();
break;
}
@@ -79,7 +79,7 @@ public class SatelliteListWindow extends SatelliteListWindowLayout {
Gui.centerShellOverShell(modalParent, this);
}
-
+
private Satellite runAndReturn() {
setVisible(true);
return satellite;
@@ -93,7 +93,7 @@ public class SatelliteListWindow extends SatelliteListWindowLayout {
* @return satellite with address to use, or null on error/cancel
*/
public static Satellite open(Window modalParent, List<Satellite> satList) {
- return new SatelliteListWindow( modalParent, satList ).runAndReturn();
+ return new SatelliteListWindow(modalParent, satList).runAndReturn();
}
}
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java
index 33a44e69..ecfc8bbe 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/SatelliteListWindowLayout.java
@@ -42,7 +42,7 @@ public class SatelliteListWindowLayout extends JDialog {
selectionPanelGrid.add(new JLabel("Vorgegebene Server"), 2);
selectionPanelGrid.nextRow();
// create the radioButtons, add them to the map, button group and the selection grid.
- for ( Satellite sat : satList ){
+ for (Satellite sat : satList) {
JRadioButton radioButton = new JRadioButton(sat.getDisplayName());
radioButton.setEnabled(sat.addressList != null && !sat.addressList.isEmpty());
radioToSat.put(radioButton, sat);