summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.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/org/openslx/dozmod/gui/window/SatelliteListWindow.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/org/openslx/dozmod/gui/window/SatelliteListWindow.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/SatelliteListWindow.java14
1 files changed, 7 insertions, 7 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();
}
}