diff options
author | Jonathan Bauer | 2016-01-22 15:29:30 +0100 |
---|---|---|
committer | Jonathan Bauer | 2016-01-22 15:29:30 +0100 |
commit | 7ce79fd811ee801347bcd269a3531f2b12daf006 (patch) | |
tree | 7d01dae5d936aa0e6b6d62634a3ef59332594072 /dozentenmodul/src/main/java | |
parent | [client] Only expand first level of tree (diff) | |
download | tutor-module-7ce79fd811ee801347bcd269a3531f2b12daf006.tar.gz tutor-module-7ce79fd811ee801347bcd269a3531f2b12daf006.tar.xz tutor-module-7ce79fd811ee801347bcd269a3531f2b12daf006.zip |
[client] refactor button variables to naming scheme
Diffstat (limited to 'dozentenmodul/src/main/java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java index 822aa478..65e4f5e7 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java @@ -41,8 +41,8 @@ import org.openslx.util.QuickTimer.Task; public class LocationSelector extends JPanel { private final static Logger LOGGER = Logger.getLogger(LocationSelector.class); - private final JRadioButton exclusivelyButton; - private final JRadioButton prioritizedButton; + private final JRadioButton btnLimitToLocations; + private final JRadioButton btnPrioritizeInLocations; /** * Flag for the initialization state @@ -62,23 +62,23 @@ public class LocationSelector extends JPanel { * initializes the data */ public LocationSelector() { - exclusivelyButton = new JRadioButton( + btnLimitToLocations = new JRadioButton( "Veranstaltung ausschließlich in den ausgewählten Räumen anzeigen"); - prioritizedButton = new JRadioButton( + btnPrioritizeInLocations = new JRadioButton( "Veranstaltung mit höherer Priorität in den ausgewählten Räumen anzeigen"); - prioritizedButton.setSelected(true); + btnPrioritizeInLocations.setSelected(true); ButtonGroup group = new ButtonGroup(); - group.add(exclusivelyButton); - group.add(prioritizedButton); + group.add(btnLimitToLocations); + group.add(btnPrioritizeInLocations); // build the grid GridManager grid = new GridManager(this, 1); grid.add(new JScrollPane(locationTree)).fill(true, true).expand(true, true); grid.nextRow(); - grid.add(exclusivelyButton); + grid.add(btnLimitToLocations); grid.nextRow(); - grid.add(prioritizedButton); + grid.add(btnPrioritizeInLocations); grid.nextRow(); grid.add(Box.createVerticalGlue()); grid.nextRow(); @@ -169,8 +169,8 @@ public class LocationSelector extends JPanel { * other */ public void setOnlyInSelection(boolean limited) { - exclusivelyButton.setSelected(limited); - prioritizedButton.setSelected(!limited); + btnLimitToLocations.setSelected(limited); + btnPrioritizeInLocations.setSelected(!limited); } /** @@ -179,7 +179,7 @@ public class LocationSelector extends JPanel { * @return true if checked, false otherwise */ public boolean getOnlyInSelection() { - return exclusivelyButton.isSelected(); + return btnLimitToLocations.isSelected(); } /** |