diff options
author | Jonathan Bauer | 2015-08-27 17:57:06 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-08-27 17:57:06 +0200 |
commit | 6818f8068436c5830fa40ba92adc2e8d98a6b6f2 (patch) | |
tree | 5b1b6f42ab57460768f081dddd70840ce77f4de0 /dozentenmodul | |
parent | [client] fix red search text color when regex is invalid (diff) | |
download | tutor-module-6818f8068436c5830fa40ba92adc2e8d98a6b6f2.tar.gz tutor-module-6818f8068436c5830fa40ba92adc2e8d98a6b6f2.tar.xz tutor-module-6818f8068436c5830fa40ba92adc2e8d98a6b6f2.zip |
[client] make image list in lecture wizard resizable (FOR THIS PAGE ONLY)
Diffstat (limited to 'dozentenmodul')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureImageListPage.java | 14 |
1 files changed, 12 insertions, 2 deletions
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 |