annotate src/econnect/wp3_3/client/widgets/table/DynamicStiTable.java @ 43:fad6fb60a2db CellTable

refining of data in CellTable
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Fri, 07 Dec 2012 16:04:27 +0100
parents 20eb7596d466
children 5db587ba4b0f fc9061488e75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
1 package econnect.wp3_3.client.widgets.table;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
2
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
3 import java.util.ArrayList;
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
4 import java.util.List;
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
5
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
6 import com.google.gwt.user.cellview.client.CellTable;
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
7 import com.google.gwt.user.cellview.client.SimplePager;
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
8 import com.google.gwt.user.cellview.client.TextColumn;
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
9 import com.google.gwt.user.client.rpc.AsyncCallback;
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
10 import com.google.gwt.user.client.ui.Anchor;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
11 import com.google.gwt.user.client.ui.Button;
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
12 import com.google.gwt.user.client.ui.FormPanel;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
13 import com.google.gwt.user.client.ui.Grid;
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
14 import com.google.gwt.user.client.ui.Hidden;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
15 import com.google.gwt.user.client.ui.Image;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
16 import com.google.gwt.user.client.ui.Label;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
17 import com.google.gwt.user.client.ui.HTML;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
18 import com.google.gwt.user.client.ui.HasHorizontalAlignment;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
19 import com.google.gwt.user.client.ui.TextBox;
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
20 import com.google.gwt.view.client.ListDataProvider;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
21 import com.google.gwt.core.client.GWT;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
22 import com.google.gwt.event.dom.client.ClickHandler;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
23 import com.google.gwt.event.dom.client.ClickEvent;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
24 import com.google.gwt.event.dom.client.MouseOutEvent;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
25 import com.google.gwt.event.dom.client.MouseOverEvent;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
26 import com.google.gwt.event.dom.client.MouseOverHandler;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
27 import com.google.gwt.event.dom.client.MouseOutHandler;
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
28 import com.google.gwt.http.client.URL;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
29
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
30 import econnect.wp3_3.client.core.ApplicationConstants;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
31 import econnect.wp3_3.client.core.DataObject;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
32 import econnect.wp3_3.client.core.DataSet;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
33 import econnect.wp3_3.client.core.StiConstants;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
34 import econnect.wp3_3.client.core.StiCore;
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
35 import econnect.wp3_3.client.services.ExportWriterInterface;
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
36 import econnect.wp3_3.client.services.ExportWriterInterfaceAsync;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
37
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
38 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
39 * Implementation of a dynamic table for one dataset
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
40 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
41 public class DynamicStiTable extends Grid {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
42
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
43 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
44 * The maximum number of rows of the table
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
45 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
46 private int maxRows = 10;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
47
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
48 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
49 * The sti core component
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
50 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
51 private StiCore core;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
52
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
53 /**
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
54 * The index of the dataset
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
55 */
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
56 private int index;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
57
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
58 /**
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
59 * The dataset of this dynamic table
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
60 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
61 private DataSet dataSet;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
62
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
63 /**
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
64 * ArrayList that holds all elements that can be shown
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
65 * (smaller than "dataSet" if showSelected)
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
66 */
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
67 private ArrayList<DataObject> actualObjectSet;
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
68
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
69 /**
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
70 * Provider that hands the data to the table
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
71 */
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
72 private ListDataProvider<DataObject> dataProvider;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
73
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
74 /**
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
75 * CellTable which displays the data
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
76 */
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
77 private CellTable<DataObject> elementsTable;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
78
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
79 /**
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
80 * The dataobjects, which are presented at the actual page
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
81 */
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
82 //private DataObject[][] displayedObjects;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
83
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
84 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
85 * The number-of-results label
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
86 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
87 private Label results;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
88
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
89 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
90 * The image for show selected elements
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
91 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
92 private Image showSelected;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
93
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
94 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
95 * The image for show all elements
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
96 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
97 private Image showAll;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
98
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
99 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
100 * This value tells the view status: 1 for showAll, -1 for showSelected, 0 otherwise
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
101 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
102 private int viewAll = 1;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
103
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
104 /**
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
105 * Anchor that holds the URL for the KML download
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
106 */
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
107 private Anchor aDownloadKML;
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
108
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
109 /**
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
110 * RPC Interface for writing the KML file
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
111 */
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
112 private ExportWriterInterfaceAsync exportWriter;
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
113
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
114 /**
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
115 * Constructor for initialization of the dynamic table
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
116 *
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
117 * @param core object to allow interaction with all javascript components
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
118 * @param id id of the dataset
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
119 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
120 public DynamicStiTable( StiCore stiCore, final int id ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
121
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
122 final ApplicationConstants constants = (ApplicationConstants) GWT.create(ApplicationConstants.class);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
123 final StiConstants textConstants = (StiConstants) GWT.create(StiConstants.class);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
124
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
125 this.resize(2,1);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
126 this.addStyleName("dataTable");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
127 this.addStyleName("center");
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
128
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
129 this.index = id;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
130 this.core = stiCore;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
131 this.dataSet = core.getDataSets().get(index);
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
132 this.actualObjectSet = new ArrayList<DataObject>();
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
133 setActualObjectSet();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
134
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
135 showAll = new Image("images/viewAll"+(core.getColorId(index))+".png");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
136 showAll.setTitle(textConstants.showAll());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
137 showSelected = new Image("images/viewSelected"+(core.getColorId(index))+".png");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
138 showSelected.setTitle(textConstants.showSelected());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
139 showAll.addStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
140 showAll.addStyleName("view");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
141 showSelected.addStyleName("view");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
142 showAll.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
143 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
144 if( viewAll != 1 ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
145 showSelected.removeStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
146 showAll.addStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
147 viewAll = 1;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
148 setActualObjectSet();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
149 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
150 }
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
151 });
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
152 showSelected.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
153 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
154 if( viewAll != -1 ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
155 viewAll = -1;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
156 if( setActualObjectSet() ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
157 showAll.removeStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
158 showSelected.addStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
159 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
160 else {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
161 viewAll = 1;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
162 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
163 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
164 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
165 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
166
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
167 Image storeSelected = new Image("images/storeSelected"+(core.getColorId(index))+".png");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
168 storeSelected.setTitle(textConstants.storeSelected());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
169 storeSelected.addStyleName("view");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
170 storeSelected.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
171 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
172 core.storeSelected(id);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
173 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
174 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
175
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
176 Grid showOptions = new Grid(1,3);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
177 showOptions.setWidget(0,0,showAll);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
178 showOptions.setWidget(0,1,showSelected);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
179 showOptions.setWidget(0,2,storeSelected);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
180
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
181 final TextBox textualSearch = new TextBox();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
182 final Button search = new Button("go");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
183 final Image cancelImage = new Image(constants.cancelImage());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
184 final Image refineImage = new Image(constants.refineImage());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
185 final Grid buttons = new Grid(1,2);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
186 buttons.setWidget(0, 0, refineImage);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
187 buttons.setWidget(0, 1, cancelImage);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
188 final Grid refine = new Grid(1,3);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
189 refine.setWidget(0,0,textualSearch);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
190 refine.setWidget(0,1,search);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
191 search.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
192 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
193 if( !textualSearch.getText().equals("") ){
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
194 refineByText(textualSearch.getText());
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
195 textualSearch.setEnabled(false);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
196 refine.setWidget(0, 1, buttons);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
197 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
198 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
199 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
200 refineImage.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
201 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
202 core.refine();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
203 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
204 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
205 cancelImage.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
206 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
207 textualSearch.setEnabled(true);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
208 core.reset();
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
209
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
210 //TODO: das gibt es nun mehrfach im Code, sollte also in eine Funktion
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
211 //�berfuhrt werden
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
212 showSelected.removeStyleName("selectedView");
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
213 showAll.addStyleName("selectedView");
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
214 viewAll = 1;
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
215 setActualObjectSet();
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
216
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
217 refine.setWidget(0, 1, search);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
218 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
219 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
220
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
221 this.results = new Label();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
222 this.results.setStyleName("resultsLabel");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
223
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
224 Label page = new Label(textConstants.page()+":");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
225 page.setStyleName("pageLabel");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
226
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
227 //This anchor will hold the URL of the export-file
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
228 //for download from the ExportServlet
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
229 aDownloadKML = new Anchor("download KML");
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
230 aDownloadKML.setVisible(false);
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
231 aDownloadKML.addClickHandler(new ClickHandler() {
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
232 public void onClick(ClickEvent event) {
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
233 aDownloadKML.setVisible(false);
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
234 }
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
235 });
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
236
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
237 Image export = new Image(constants.exportImage());
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
238 export.addClickHandler(new ClickHandler() {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
239 public void onClick(ClickEvent event) {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
240 //create KML file
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
241 createKMLFile();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
242 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
243 });
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
244 export.addStyleName("export");
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
245 export.setTitle(textConstants.exportDataSet());
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
246
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
247 Image delete = new Image(constants.deleteImage());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
248 delete.addClickHandler(new ClickHandler() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
249 public void onClick(ClickEvent event) {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
250 core.deleteDataSet(index);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
251 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
252 });
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
253 delete.addStyleName("delete");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
254 delete.setTitle(textConstants.deleteDataSet());
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
255
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
256 Grid func = new Grid(1,3);
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
257
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
258 func.setWidget(0, 0, aDownloadKML);
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
259 func.setWidget(0, 1, export);
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
260 func.setWidget(0, 2, delete);
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
261 func.addStyleName("center");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
262
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
263 this.elementsTable = new CellTable<DataObject>();
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
264
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
265 dataProvider = new ListDataProvider<DataObject>();
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
266 dataProvider.addDataDisplay(this.elementsTable);
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
267
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
268 TextColumn<DataObject> nameColumn = new TextColumn<DataObject>() {
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
269 @Override
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
270 public String getValue(DataObject object) {
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
271 return object.getName();
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
272 }
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
273
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
274 };
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
275
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
276 this.elementsTable.addColumn(nameColumn);
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
277
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
278 SimplePager pager = new SimplePager();
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
279 pager.setDisplay(this.elementsTable);
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
280
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
281 dataProvider.setList(this.actualObjectSet);
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
282
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
283 this.setWidget(1, 0, this.elementsTable);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
284
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
285 Grid tableControls = new Grid(1,5);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
286 tableControls.setWidget(0,0,showOptions);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
287 tableControls.setWidget(0,1,refine);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
288 tableControls.setWidget(0,2,this.results);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
289 tableControls.setWidget(0,3,pager);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
290 tableControls.setWidget(0,4,func);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
291 tableControls.setStyleName("tableControls");
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
292
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
293 this.setWidget(0, 0, tableControls);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
294
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
295 tableControls.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
296
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
297 this.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
298 this.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_CENTER);
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
299 this.getCellFormatter().setWidth(1, 0, "100%");
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
300 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
301
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
302 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
303 * Sets the actual object set; depends on the showAll and showSelected selection
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
304 *
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
305 * @return boolean value, if there are selected objects
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
306 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
307 private boolean setActualObjectSet(){
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
308
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
309 boolean dataSetWasEmpty = false;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
310
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
311 if( viewAll == -1 ){
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
312
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
313 this.actualObjectSet.clear();
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
314
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
315 for( int i=0; i<this.dataSet.getObjects().length(); i++){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
316 DataObject object = this.dataSet.getObjects().get(i);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
317 if( object.isSelected() ){
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
318 this.actualObjectSet.add(object);
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
319 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
320 }
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
321 if( this.actualObjectSet.size() == 0 ){
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
322 //TODO: Wenn die derzeitige Auswahl _keine_ Elemente
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
323 //enth�lt, werden _alle_ angezeigt. Ist das sinnvoll?
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
324 dataSetWasEmpty = true;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
325 this.viewAll = 1;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
326 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
327 }
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
328 if( this.viewAll == 1 ){
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
329 this.actualObjectSet.clear();
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
330 for( int i=0; i<this.dataSet.getObjects().length(); i++){
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
331 this.actualObjectSet.add(this.dataSet.getObjects().get(i));
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
332 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
333 }
43
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
334
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
335 //if the dataProvider already exists, refresh the
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
336 //displayed data
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
337 if (this.dataProvider != null) {
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
338 this.dataProvider.refresh();
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
339
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
340 this.elementsTable.setRowCount(this.actualObjectSet.size());
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
341 }
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
342
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
343 if (dataSetWasEmpty)
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
344 return false;
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
345 else
fad6fb60a2db refining of data in CellTable
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 40
diff changeset
346 return true;
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
347 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
348
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
349 /**
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
350 * Creates a (preliminary) KML file from the data in the current data set
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
351 */
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
352 private void createKMLFile(){
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
353 String kmlContent = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><kml xmlns=\"http://www.opengis.net/kml/2.2\"><Document>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
354
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
355 for( int i=0; i<this.dataSet.getObjects().length(); i++){
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
356 DataObject currentDataObject = this.dataSet.getObjects().get(i);
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
357
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
358 String name = currentDataObject.getName();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
359 String description = currentDataObject.getDescription();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
360 String place = currentDataObject.getPlace();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
361 String lat = currentDataObject.getLat();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
362 String lon = currentDataObject.getLon();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
363 String timeStamp = currentDataObject.getTimeStamp();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
364 String timeSpanStart = currentDataObject.getTimeSpanStart();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
365 String timeSpanEnd = currentDataObject.getTimeSpanEnd();
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
366
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
367 String kmlEntry = "<Placemark>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
368
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
369 kmlEntry += "<name><![CDATA[" + name + "]]></name>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
370 kmlEntry += "<address><![CDATA[" + place + "]]></address>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
371 kmlEntry += "<description><![CDATA[" + description + "]]></description>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
372 kmlEntry += "<Point><coordinates>" + lon + "," + lat + "</coordinates></Point>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
373
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
374 if ( (timeStamp != null) && (timeStamp != "undefined") ) {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
375 kmlEntry += "<TimeStamp><when>" + timeStamp + "</when></TimeStamp>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
376 } else {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
377 kmlEntry += "<TimeSpan><begin>" + timeSpanStart + "</begin><end>" + timeSpanEnd + "</end></TimeSpan>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
378 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
379
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
380 kmlEntry += "</Placemark>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
381
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
382 kmlContent += kmlEntry;
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
383 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
384
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
385 kmlContent += "</Document></kml>";
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
386
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
387 exportWriter = GWT.create(ExportWriterInterface.class);
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
388
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
389 exportWriter.writeKMLFile(kmlContent,
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
390 new AsyncCallback<String>() {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
391 public void onFailure(Throwable caught) {
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
392 //TODO: error message in layover?
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
393 //there needs to be an error-window for KML parser failures anyway
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
394 //this one should be used
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
395 int i = 1;
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
396 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
397 public void onSuccess(String exportFileName) {
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
398
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
399 String url = GWT.getModuleBaseURL();
27
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
400 url = url + "ExportServlet?ExportedFilename=" + URL.encode(exportFileName);
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
401
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
402 aDownloadKML.setHref(url);
3184e8faa5c0 Anchor for KML download. This is a preliminiary work-around.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 15
diff changeset
403 aDownloadKML.setVisible(true);
15
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
404 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
405 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
406 );
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
407 }
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
408
175c1eecaf84 added export kml feature (not finished)
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 3
diff changeset
409 /**
30
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
410 * Refines the currently selected dataset (table) by the search term entered.
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
411 *
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
412 */
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
413 private void refineByText(String searchString){
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
414
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
415 String lowerCaseSearchString = searchString.toLowerCase();
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
416
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
417 for( int i=0; i<this.dataSet.getObjects().length(); i++){
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
418 DataObject currentDataObject = this.dataSet.getObjects().get(i);
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
419
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
420 String name = currentDataObject.getName();
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
421 String description = currentDataObject.getDescription();
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
422 String place = currentDataObject.getPlace();
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
423
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
424 if ( name.toLowerCase().contains(lowerCaseSearchString) ||
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
425 description.toLowerCase().contains(lowerCaseSearchString) ||
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
426 place.toLowerCase().contains(lowerCaseSearchString) )
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
427 currentDataObject.setPercentage(1);
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
428 else
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
429 currentDataObject.setPercentage(0);
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
430 }
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
431
1e95995ddbb2 re-added the ability to refine the dataset by a (very simple) text search
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 27
diff changeset
432 setActualObjectSet();
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
433 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
434
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
435 /**
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
436 * Updates all cells of the actual page
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
437 *
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
438 * @param hover if there was a hover selection which caused to trigger this function
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
439 */
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
440 public void updateView(boolean hover){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
441 if( !hover && this.viewAll == -1 ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
442 showSelected.removeStyleName("selectedView");
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
443 this.viewAll = 0;
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
444 }
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
445 /*
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
446 for( int i=0; i<this.displayedObjects.length; i++ ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
447 for( int j=0; j<this.displayedObjects[i].length; j++ ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
448 if( this.displayedObjects[i][j] != null && this.displayedObjects[i][j].getStatus() ){
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
449 updateCell(i,j);
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
450 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
451 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
452 }
40
20eb7596d466 Preparation for a switch to a CellTable.
Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
parents: 30
diff changeset
453 */
3
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
454 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
455
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
456 public String getTermIdentifier() {
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
457 return this.dataSet.getTermIdentifier();
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
458 }
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
459
cf06b77a8bbd Committed branch of the e4D repos sti-gwt branch 16384.
StefanFunk <StefanFunk@f2b5be40-def6-11e0-8a09-b3c1cc336c6b>
parents:
diff changeset
460 }