summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-29 11:03:52 +0100
committerSimon Rettberg2016-01-29 11:03:52 +0100
commit7d81da615f089f06ba81c2cc2b67bc3ff4def957 (patch)
tree2d8cad390cbe7937b51a6f1b4693f8a5e6ed0d25 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
parent[client] Minor tweaks to image details window (diff)
downloadtutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.tar.gz
tutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.tar.xz
tutor-module-7d81da615f089f06ba81c2cc2b67bc3ff4def957.zip
[client] Sanitize coding style/conventions in GUI classes
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java56
1 files changed, 26 insertions, 30 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
index 476a9a2e..7aee0f30 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
@@ -4,8 +4,6 @@ import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagLayout;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.Box;
@@ -14,7 +12,6 @@ import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
-import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.border.TitledBorder;
@@ -38,16 +35,16 @@ public abstract class LectureListWindowLayout extends CompositePage {
private static final String infoTextString = "Hier können Sie Veranstaltungen anlegen, bearbeiten und löschen.";
// buttons
- protected final JButton newButton;
- protected final JButton deleteButton;
- protected final JButton editButton;
- protected final JButton switchViewButton;
- protected final JComboBox<FilterType> filterCbo;
- protected JLabel lectureCountLabel;
+ protected final JButton btnNewLecture;
+ protected final JButton btnDeleteLecture;
+ protected final JButton btnEditLecture;
+ protected final JButton btnSwitchView;
+ protected final JComboBox<FilterType> cboFilter;
+ protected final QLabel lblVisibleLectureCount;
- protected final JTextField searchTextField;
+ protected final JTextField txtSearch;
- protected final LectureTable lectureTable;
+ protected final LectureTable tblLectures;
public LectureListWindowLayout() {
super(new GridBagLayout());
@@ -72,29 +69,28 @@ public abstract class LectureListWindowLayout extends CompositePage {
JPanel filterPanel = new JPanel();
filterPanel.setBorder(new TitledBorder(filterPanelLabel));
filterPanel.setLayout(new BoxLayout(filterPanel, BoxLayout.LINE_AXIS));
- searchTextField = new JTextField();
- filterCbo = new JComboBox<FilterType>();
+ txtSearch = new JTextField();
+ cboFilter = new JComboBox<FilterType>();
for (FilterType s : FilterType.values()) {
- filterCbo.addItem(s);
+ cboFilter.addItem(s);
}
- filterPanel.add(searchTextField);
- filterPanel.add(filterCbo);
+ filterPanel.add(txtSearch);
+ filterPanel.add(cboFilter);
// Panel for itemCount
JPanel lectureCountPanel = new JPanel();
- lectureCountLabel = new JLabel();
+ lblVisibleLectureCount = new QLabel();
lectureCountPanel.add(new JLabel("Sichtbar:"));
- lectureCountPanel.add(lectureCountLabel);
+ lectureCountPanel.add(lblVisibleLectureCount);
filterPanel.add(lectureCountPanel);
// the actual table
- lectureTable = new LectureTable();
+ tblLectures = new LectureTable();
tableGrid.add(filterPanel).fill(true, false).expand(true, false);
tableGrid.nextRow();
- QScrollPane jsp = new QScrollPane(lectureTable);
+ QScrollPane jsp = new QScrollPane(tblLectures);
-
jsp.setBackground(UIManager.getColor("Table.background"));
tableGrid.add(jsp).fill(true, true).expand(true, true);
tableGrid.nextRow();
@@ -106,17 +102,17 @@ public abstract class LectureListWindowLayout extends CompositePage {
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));
buttonPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
- newButton = new JButton(newButtonLabel);
- buttonPanel.add(newButton);
+ btnNewLecture = new JButton(newButtonLabel);
+ buttonPanel.add(btnNewLecture);
buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
- editButton = new JButton(editButtonLabel);
- buttonPanel.add(editButton);
+ btnEditLecture = new JButton(editButtonLabel);
+ buttonPanel.add(btnEditLecture);
buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
- deleteButton = new JButton(deleteButtonLabel);
- buttonPanel.add(deleteButton);
+ btnDeleteLecture = new JButton(deleteButtonLabel);
+ buttonPanel.add(btnDeleteLecture);
buttonPanel.add(Box.createHorizontalGlue());
- switchViewButton = new JButton(switchViewButtonLabel);
- buttonPanel.add(switchViewButton);
+ btnSwitchView = new JButton(switchViewButtonLabel);
+ buttonPanel.add(btnSwitchView);
// ----------------- end group for table -------------------------
grid.add(infoPanel).fill(true, false).expand(true, false);
@@ -130,7 +126,7 @@ public abstract class LectureListWindowLayout extends CompositePage {
}
protected void setLectureCountLabel(int i) {
- lectureCountLabel.setText(Integer.toString(i));
+ lblVisibleLectureCount.setText(Integer.toString(i));
}
}