summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
diff options
context:
space:
mode:
authorJonathan Bauer2015-08-26 16:16:45 +0200
committerJonathan Bauer2015-08-26 16:16:45 +0200
commitf25ad5da2317d517502d4bd07eb94cf2e3567cbb (patch)
tree429963ca961fd01aaadcd892fc497a79f20acf9a /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
parent[client] Simplify ListTable interfaces, add util class for color handling (diff)
downloadtutor-module-f25ad5da2317d517502d4bd07eb94cf2e3567cbb.tar.gz
tutor-module-f25ad5da2317d517502d4bd07eb94cf2e3567cbb.tar.xz
tutor-module-f25ad5da2317d517502d4bd07eb94cf2e3567cbb.zip
[client] switch image <-> lectures buttons in *ListWindows
add LectureImageListPage if starting image is unknown in LectureWizard
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
index 09bdebd0..a59a93ae 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java
@@ -4,6 +4,7 @@ import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
+import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
@@ -26,7 +27,7 @@ public abstract class ImageListWindowLayout extends CompositePage {
protected final static String editButtonLabel = "Bearbeiten";
protected final static String downloadButtonLabel = "Download";
protected final static String deleteButtonLabel = "Löschen";
- protected final static String backButtonLabel = "Zurück";
+ protected final static String switchViewButtonLabel = "Zu 'Veranstaltungen' wechseln";
// --------------------------------------
// search field, table and buttons
@@ -36,10 +37,11 @@ public abstract class ImageListWindowLayout extends CompositePage {
protected final JButton editButton;
protected final JButton downloadButton;
protected final JButton deleteButton;
- protected final JButton backButton;
+ protected final JButton switchViewButton;
public ImageListWindowLayout() {
super(new BorderLayout());
+ setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
// --------------------------------------
// Info panel on the top with a search box
@@ -57,13 +59,14 @@ public abstract class ImageListWindowLayout extends CompositePage {
// --------------------------------------
// the buttons at the bottom
JPanel buttonPanel = new JPanel();
+ buttonPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));
newButton = new JButton(newButtonLabel);
newLectureButton = new JButton(newLectureButtonLabel);
deleteButton = new JButton(deleteButtonLabel);
editButton = new JButton(editButtonLabel);
downloadButton = new JButton(downloadButtonLabel);
- backButton = new JButton(backButtonLabel);
+ switchViewButton = new JButton(switchViewButtonLabel);
buttonPanel.add(newButton);
buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
buttonPanel.add(newLectureButton);
@@ -72,7 +75,7 @@ public abstract class ImageListWindowLayout extends CompositePage {
buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
buttonPanel.add(deleteButton);
buttonPanel.add(Box.createHorizontalGlue());
- buttonPanel.add(backButton);
+ buttonPanel.add(switchViewButton);
add(buttonPanel, BorderLayout.PAGE_END);
}