From 6818f8068436c5830fa40ba92adc2e8d98a6b6f2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 27 Aug 2015 17:57:06 +0200 Subject: [client] make image list in lecture wizard resizable (FOR THIS PAGE ONLY) --- .../dozmod/gui/wizard/page/LectureImageListPage.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'dozentenmodul/src/main/java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureImageListPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureImageListPage.java index 512aecdc..af131ec1 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureImageListPage.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureImageListPage.java @@ -1,12 +1,13 @@ package org.openslx.dozmod.gui.wizard.page; +import java.awt.Dimension; + import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import org.apache.log4j.Logger; import org.openslx.bwlp.thrift.iface.ImageSummaryRead; import org.openslx.dozmod.gui.control.table.ImageTable; -import org.openslx.dozmod.gui.control.table.ListTable.ListTableColumn; import org.openslx.dozmod.gui.wizard.Wizard; import org.openslx.dozmod.gui.wizard.layout.LectureImageListPageLayout; import org.openslx.dozmod.state.LectureWizardState; @@ -19,7 +20,8 @@ public class LectureImageListPage extends LectureImageListPageLayout { private boolean initDone = false; private LectureWizardState state = null; - + private Dimension startDim = null; + private Wizard wizard = null; /** * The image table held by the ImageListViewer */ @@ -31,6 +33,8 @@ public class LectureImageListPage extends LectureImageListPageLayout { public LectureImageListPage(Wizard wizard, LectureWizardState state) { super(wizard); this.state = state; + this.wizard = wizard; + this.startDim = wizard.getSize(); setPageComplete(false); imageTable.setColumnVisible(ImageTable.COL_OS, false); imageTable.setColumnVisible(ImageTable.COL_TEMPLATE, false); @@ -46,6 +50,12 @@ public class LectureImageListPage extends LectureImageListPageLayout { @Override protected void onPageEnter() { imageListViewer.refreshList(false, 1); + wizard.setResizable(true); + } + @Override + protected void onPageLeave() { + wizard.setResizable(false); + wizard.setSize(startDim); } /** * Called by event listeners. This will set guidance message or error -- cgit v1.2.3-55-g7522