From 7d81da615f089f06ba81c2cc2b67bc3ff4def957 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 29 Jan 2016 11:03:52 +0100 Subject: [client] Sanitize coding style/conventions in GUI classes --- .../wizard/layout/LectureCreationPageLayout.java | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/LectureCreationPageLayout.java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/LectureCreationPageLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/LectureCreationPageLayout.java index aa21a214..f3944cfd 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/LectureCreationPageLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/LectureCreationPageLayout.java @@ -24,12 +24,12 @@ import org.openslx.dozmod.util.DateLabelFormatter; @SuppressWarnings("serial") public abstract class LectureCreationPageLayout extends WizardPage { - protected final JTextField lectureNameTextField; - protected final JTextArea descriptionText; - protected final QDatePickerImpl startDate; - protected final QDatePickerImpl endDate; - protected final JSpinner startTime; - protected final JSpinner endTime; + protected final JTextField txtName; + protected final JTextArea txtDescription; + protected final QDatePickerImpl dtpStartDate; + protected final QDatePickerImpl dtpEndDate; + protected final JSpinner spnStartTime; + protected final JSpinner spnEndTime; protected final QLabel lblCalcPeriod; private static final Properties pickerStrings = new Properties(); @@ -52,37 +52,37 @@ public abstract class LectureCreationPageLayout extends WizardPage { GridManager grid = new GridManager(this, 3); // lecture name - lectureNameTextField = new JTextField(); + txtName = new JTextField(); grid.add(new QLabel("Veranstaltungsname")); - grid.add(lectureNameTextField, 2).fill(true, false).expand(true, false); + grid.add(txtName, 2).fill(true, false).expand(true, false); grid.nextRow(); - descriptionText = new JTextArea(3, 50); - descriptionText.setLineWrap(true); - descriptionText.setWrapStyleWord(true); - JScrollPane descPane = new JScrollPane(descriptionText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, + txtDescription = new JTextArea(3, 50); + txtDescription.setLineWrap(true); + txtDescription.setWrapStyleWord(true); + JScrollPane descPane = new JScrollPane(txtDescription, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); - descriptionText.setMinimumSize(Gui.getScaledDimension(0, 60)); - descPane.setMinimumSize(descriptionText.getMinimumSize()); + txtDescription.setMinimumSize(Gui.getScaledDimension(0, 60)); + descPane.setMinimumSize(txtDescription.getMinimumSize()); grid.add(new QLabel("Beschreibung")); grid.add(descPane, 2).fill(true, false).expand(true, false); grid.nextRow(); // Start date/time - startDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings), + dtpStartDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings), new DateLabelFormatter()); - startTime = makeTimeSpinner(0, 0); + spnStartTime = makeTimeSpinner(0, 0); grid.add(new QLabel("Startdatum")); - grid.add(startDate).fill(true, false).expand(true, false); - grid.add(startTime); + grid.add(dtpStartDate).fill(true, false).expand(true, false); + grid.add(spnStartTime); grid.nextRow(); - endDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings), + dtpEndDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings), new DateLabelFormatter()); - endTime = makeTimeSpinner(23, 59); + spnEndTime = makeTimeSpinner(23, 59); grid.add(new QLabel("Enddatum")); - grid.add(endDate).fill(true, false).expand(true, false); - grid.add(endTime); + grid.add(dtpEndDate).fill(true, false).expand(true, false); + grid.add(spnEndTime); grid.nextRow(); grid.add(new QLabel("Dauer der Veranstaltung: ")); -- cgit v1.2.3-55-g7522