diff options
author | Stephan Schwaer | 2015-07-16 16:19:07 +0200 |
---|---|---|
committer | Stephan Schwaer | 2015-07-16 16:19:07 +0200 |
commit | 83ec934d4b1734006488bf203e21dcc5ddb8071d (patch) | |
tree | 21bc54d1ad85a90f62a465242d8c7702e193231c /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageListWindowLayout.java | |
parent | [client] Resolve user ids to names in image list window. (diff) | |
download | tutor-module-83ec934d4b1734006488bf203e21dcc5ddb8071d.tar.gz tutor-module-83ec934d4b1734006488bf203e21dcc5ddb8071d.tar.xz tutor-module-83ec934d4b1734006488bf203e21dcc5ddb8071d.zip |
[client] Added lecture list window with table, sorting and filter. Added back button for lecture and image window.
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.java | 27 |
1 files changed, 17 insertions, 10 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 aa50a425..be0f74ca 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 @@ -25,6 +25,7 @@ public abstract class ImageListWindowLayout extends CompositePage { protected String editButtonLabel = "Bearbeiten"; protected String deleteButtonLabel = "Löschen"; protected String downloadButtonLabel = "Download"; + protected String backButtonLabel = "Zurück"; protected String tableGroupLabel = "Images"; protected String vmInfoGroupLabel = "Detailinformationen"; protected String filterGroupLabel = "Filter"; @@ -34,7 +35,8 @@ public abstract class ImageListWindowLayout extends CompositePage { protected Button deleteButton; protected Button editButton; protected Button downloadButton; - + protected Button backButton; + // imageDetail texts protected Text imageSelectedNameLabel; @@ -44,7 +46,7 @@ public abstract class ImageListWindowLayout extends CompositePage { protected Text permissionInfo; protected Text ownerInfo; protected Text templateInfo; - + protected final Text searchTextField; protected final TableViewer tableViewer; @@ -79,7 +81,7 @@ public abstract class ImageListWindowLayout extends CompositePage { infoText.setText(infoTextString); // -- end group of title -- - + // -- group for the table -- Group tableGroup = new Group(this, SWT.BORDER); tableGroup.setText(tableGroupLabel); @@ -88,7 +90,7 @@ public abstract class ImageListWindowLayout extends CompositePage { tgLayoutData.widthHint = 800; tableGroup.setLayoutData(tgLayoutData); tableGroup.setLayout(new GridLayout()); - + // -- group for the filter -- Group filterGroup = new Group(tableGroup, SWT.BORDER); filterGroup.setText(filterGroupLabel); @@ -98,12 +100,12 @@ public abstract class ImageListWindowLayout extends CompositePage { fgGridData.horizontalSpan = 2; filterGroup.setLayoutData(fgGridData); filterGroup.setLayout(new GridLayout()); - + // filter text field searchTextField = new Text(filterGroup, SWT.BORDER); searchTextField.setMessage("Name, Verantwortlicher, OS"); // -- end group of filter -- - + // table Table vmTable = new Table(tableGroup, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); GridData tableGridData = new GridData(SWT.FILL, SWT.FILL, true, true); @@ -114,8 +116,8 @@ public abstract class ImageListWindowLayout extends CompositePage { // TableViewer on the table tableViewer = new TableViewer(vmTable); tableViewer.setContentProvider(ArrayContentProvider.getInstance()); - - + + // create, modify, download and delete buttons Composite buttonComposite = new Composite(tableGroup, SWT.NONE); @@ -135,6 +137,9 @@ public abstract class ImageListWindowLayout extends CompositePage { downloadButton = new Button(buttonComposite, SWT.PUSH); downloadButton.setText(downloadButtonLabel); + + backButton = new Button(buttonComposite, SWT.PUSH); + backButton.setText(backButtonLabel); // -- end group for table -- // -- group for details of selected image -- @@ -148,12 +153,14 @@ public abstract class ImageListWindowLayout extends CompositePage { // image name info imageSelectedNameLabel = createCaptionAndTextfield("Image Name:", vmInfoGroup); idInfo = createCaptionAndTextfield("ID:", vmInfoGroup); - versionInfo = createCaptionAndTextfield("Version", vmInfoGroup); + versionInfo = createCaptionAndTextfield("Version:", vmInfoGroup); lastUpdateInfo = createCaptionAndTextfield("Letztes Update:", vmInfoGroup); permissionInfo = createCaptionAndTextfield("Berechtigungen:", vmInfoGroup); - ownerInfo = createCaptionAndTextfield("Besitzer ID", vmInfoGroup); + ownerInfo = createCaptionAndTextfield("Besitzer:", vmInfoGroup); templateInfo = createCaptionAndTextfield("Vorlage:", vmInfoGroup); // -- end group of details -- + + } public Text createCaptionAndTextfield(String captionString, Group group) { |