summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageUploadSummaryPageLayout.java
blob: 46c6eb41c2bd93d386b5cd6327401a1f3d403280 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.openslx.dozmod.gui.wizard.layout;

import javax.swing.Box;
import javax.swing.JCheckBox;
import javax.swing.JLabel;

import org.openslx.dozmod.gui.control.BlockProgressBar;
import org.openslx.dozmod.gui.helper.GridManager;
import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.gui.wizard.Wizard;
import org.openslx.dozmod.gui.wizard.WizardPage;

public class ImageUploadSummaryPageLayout extends WizardPage {

	/**
	 * Version for serialization.
	 */
	private static final long serialVersionUID = -8323690047540145725L;

	protected final BlockProgressBar ctlUploadProgressBar;
	protected final JCheckBox chkCreateLecture;
	protected final JLabel lblHelpText;

	public ImageUploadSummaryPageLayout(Wizard wizard) {
		super(wizard, I18n.PAGE_LAYOUT.getString("ImageUploadSummary.WizardPage.title"));
		setDescription(I18n.PAGE_LAYOUT.getString("ImageUploadSummary.WizardPage.description"));
		GridManager grid = new GridManager(this, 1);

		ctlUploadProgressBar = new BlockProgressBar(null);
		ctlUploadProgressBar.setMinimumSize(ctlUploadProgressBar.getPreferredSize());
		grid.add(ctlUploadProgressBar).expand(true, false).fill(true, false);
		grid.nextRow();

		grid.add(Box.createVerticalStrut(16));
		grid.nextRow();

		lblHelpText = new JLabel();
		grid.add(lblHelpText).expand(true, false).fill(true, false);
		grid.nextRow();

		grid.add(Box.createVerticalGlue()).expand(true, true);
		grid.nextRow();

		chkCreateLecture = new JCheckBox(I18n.PAGE_LAYOUT.getString("ImageUploadSummary.CheckBox.createLecture.text"));
		chkCreateLecture.setVisible(false);
		grid.add(chkCreateLecture);
		grid.nextRow();

		grid.finish(false);
	}

}