summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-08-03 16:43:29 +0200
committerStephan Schwaer2015-08-03 16:43:29 +0200
commitaa86c52338a0739d312bed03f5c9076225c474f1 (patch)
tree7a8e6abb2a57fe3b4a02265e492ac72224d275e4 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
parent[client] Minor tweaks (diff)
downloadtutor-module-aa86c52338a0739d312bed03f5c9076225c474f1.tar.gz
tutor-module-aa86c52338a0739d312bed03f5c9076225c474f1.tar.xz
tutor-module-aa86c52338a0739d312bed03f5c9076225c474f1.zip
[client] Removed the image details panel and added some info in image details window.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
index b6ccba23..8221cef5 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/ImageTable.java
@@ -9,7 +9,7 @@ import org.openslx.dozmod.util.FormatHelper;
public class ImageTable extends ListTable<ImageSummaryRead> {
private static String[] columnNames =
- { "Name", "OS", "Verantwortlicher", "Letztes Update", "Größe" };
+ { "Name", "OS", "Verantwortlicher", "Letztes Update", "Größe", "Version", "Vorlage" };
public ImageTable() {
super(columnNames);
@@ -28,6 +28,10 @@ public class ImageTable extends ListTable<ImageSummaryRead> {
return FormatHelper.longDate(row.getUpdateTime());
if (columnIndex == 4)
return row.getCurrentVersionId() == null ? "-" : FormatHelper.bytes(row.getFileSize(), false);
+ if (columnIndex == 5)
+ return row.getCurrentVersionId() == null ? "-" : row.getCurrentVersionId();
+ if (columnIndex == 6)
+ return row.isTemplate ? "Ja" : "Nein";
throw new IndexOutOfBoundsException();
}