Project

General

Profile

1
package eu.dnetlib.shared;
2

    
3
import java.util.ArrayList;
4

    
5
import javax.xml.bind.annotation.XmlRootElement;
6

    
7
import com.google.gwt.user.client.rpc.IsSerializable;
8

    
9
@XmlRootElement
10
public class ValuesOfFields implements IsSerializable{
11

    
12
	private String URL = new String();
13
	private static ValuesOfFields instance = new ValuesOfFields();
14
	private String chartType = new String();
15
	private String dataSeries = new String();
16
	private String title = new String();
17
	private String subtitle = new String();
18
	private String yaxis = new String();
19
	private String xaxis = new String();
20
	private String field = new String();
21
	private String steps = new String();
22
	private int numberOfResults=30;
23
	private int rotation = 0;
24
	private int optionSelected=0;
25
	private int useSteps = 0;
26
	private boolean cumulative = false;
27
	private int spacingTop = 5;
28
	private int spacingBottom = 0;
29
	private int spacingRight = 0;
30
	private int spacingLeft = 0;
31
	private String colorTitle = new String();
32
	private String colorSubtitle = new String();
33
	private String colorXaxis = new String();
34
	private String colorYaxis = new String();
35
	private String sizeTitle = new String();
36
	private String sizeSubtitle = new String();
37
	private String sizeXaxis = new String();
38
	private String sizeYaxis = new String();
39
	
40
	
41
	private Data rowData = new Data();
42
	private ArrayList<Data> columnsDataList = new ArrayList<Data>();
43

    
44
	public ValuesOfFields(){
45
		
46
	}
47
	
48
	public String getColorTitle() {
49
		return colorTitle;
50
	}
51

    
52
	public void setColorTitle(String colorTitle) {
53
		this.colorTitle = colorTitle;
54
	}
55

    
56
	public String getColorSubtitle() {
57
		return colorSubtitle;
58
	}
59

    
60
	public void setColorSubtitle(String colorSubtitle) {
61
		this.colorSubtitle = colorSubtitle;
62
	}
63

    
64
	public String getColorXaxis() {
65
		return colorXaxis;
66
	}
67

    
68
	public void setColorXaxis(String colorXaxis) {
69
		this.colorXaxis = colorXaxis;
70
	}
71

    
72
	public String getColorYaxis() {
73
		return colorYaxis;
74
	}
75

    
76
	public void setColorYaxis(String colorYaxis) {
77
		this.colorYaxis = colorYaxis;
78
	}
79

    
80
	public String getSizeTitle() {
81
		return sizeTitle;
82
	}
83

    
84
	public void setSizeTitle(String sizeTitle) {
85
		this.sizeTitle = sizeTitle;
86
	}
87

    
88
	public String getSizeSubtitle() {
89
		return sizeSubtitle;
90
	}
91

    
92
	public void setSizeSubtitle(String sizeSubtitle) {
93
		this.sizeSubtitle = sizeSubtitle;
94
	}
95

    
96
	public String getSizeXaxis() {
97
		return sizeXaxis;
98
	}
99

    
100
	public void setSizeXaxis(String sizeXaxis) {
101
		this.sizeXaxis = sizeXaxis;
102
	}
103

    
104
	public String getSizeYaxis() {
105
		return sizeYaxis;
106
	}
107

    
108
	public void setSizeYaxis(String sizeYaxis) {
109
		this.sizeYaxis = sizeYaxis;
110
	}
111

    
112
	public int getSpacingTop() {
113
		return spacingTop;
114
	}
115

    
116
	public void setSpacingTop(int spacingTop) {
117
		this.spacingTop = spacingTop;
118
	}
119

    
120
	public int getSpacingBottom() {
121
		return spacingBottom;
122
	}
123

    
124
	public void setSpacingBottom(int spacingBottom) {
125
		this.spacingBottom = spacingBottom;
126
	}
127

    
128
	public int getSpacingRight() {
129
		return spacingRight;
130
	}
131

    
132
	public void setSpacingRight(int spacingRight) {
133
		this.spacingRight = spacingRight;
134
	}
135

    
136
	public int getSpacingLeft() {
137
		return spacingLeft;
138
	}
139

    
140
	public void setSpacingLeft(int spacingLeft) {
141
		this.spacingLeft = spacingLeft;
142
	}
143

    
144
	public boolean isCumulative() {
145
		return cumulative;
146
	}
147

    
148
	public void setCumulative(boolean cumulative) {
149
		this.cumulative = cumulative;
150
	}
151

    
152

    
153
	public int getUseSteps() {
154
		return useSteps;
155
	}
156

    
157
	public void setUseSteps(int useSteps) {
158
		this.useSteps = useSteps;
159
	}
160

    
161
	public String getSteps() {
162
		return steps;
163
	}
164

    
165
	public void setSteps(String steps) {
166
		this.steps = steps;
167
	}
168

    
169
	public int getNumberOfResults() {
170
		return numberOfResults;
171
	}
172

    
173
	public void setNumberOfResults(int numberOfResults) {
174
		this.numberOfResults = numberOfResults;
175
	}
176

    
177
	public int getOptionSelected() {
178
		return optionSelected;
179
	}
180

    
181

    
182
	public void setOptionSelected(int optionSelected) {
183
		this.optionSelected = optionSelected;
184
	}
185
	
186
	public int getRotation() {
187
		return rotation;
188
	}
189

    
190
	public void setRotation(int rotation) {
191
		this.rotation = rotation;
192
	}
193

    
194
	public String getXaxis() {
195
		return xaxis;
196
	}
197

    
198
	public void setXaxis(String xaxis) {
199
		this.xaxis = xaxis;
200
	}
201

    
202
	public static ValuesOfFields getInstance() {
203
		return instance;
204
	}
205

    
206
	public static void setInstance(ValuesOfFields valuesOfFields){
207
		instance = valuesOfFields;
208
	}
209
	
210
	public String getURL() {
211
		return URL;
212
	}
213

    
214

    
215
	public void setURL(String uRL) {
216
		URL = uRL;
217
	}
218

    
219

    
220
	public String getTitle() {
221
		return title;
222
	}
223

    
224

    
225
	public void setTitle(String title) {
226
		this.title = title;
227
	}
228

    
229

    
230
	public String getSubtitle() {
231
		return subtitle;
232
	}
233

    
234

    
235
	public void setSubtitle(String subtitle) {
236
		this.subtitle = subtitle;
237
	}
238

    
239
	public String getYaxis() {
240
		return yaxis;
241
	}
242

    
243

    
244
	public void setYaxis(String yaxis) {
245
		this.yaxis = yaxis;
246
	}
247

    
248

    
249
	public String getField() {
250
		return field;
251
	}
252

    
253

    
254
	public void setField(String field) {
255
		this.field = field;
256
	}
257

    
258

    
259
	public String getChartType() {
260
		return chartType;
261
	}
262

    
263
	public void setChartType(String chartType) {
264
		this.chartType = chartType;
265
	}
266

    
267
	public String getDataSeries() {
268
		return dataSeries;
269
	}
270

    
271
	public void setDataSeries(String dataSeries) {
272
		this.dataSeries = dataSeries;
273
	}
274

    
275
	public Data getRowData() {
276
		return rowData;
277
	}
278

    
279
	public void setRowData(Data rowData) {
280
		this.rowData = rowData;
281
	}
282

    
283
	public ArrayList<Data> getColumnsDataList() {
284
		return columnsDataList;
285
	}
286

    
287
	public void setColumnsDataList(ArrayList<Data> columnsDataList) {
288
		this.columnsDataList = columnsDataList;
289
	}
290

    
291
	
292
	public static class Data implements IsSerializable{
293
		
294
		private String DataSource = new String();
295
		private String typeOf = new String();
296
		private String extra_type = new String();
297
		private String x_values = new String();
298
		private String y_values = new String();
299
		private String splitBy = new String();
300
		private String designAs;
301
		private ArrayList<FilterClass> filters = new ArrayList<FilterClass>();
302
		private int indexOfColumnInSchema;
303
		private int indexOfTypeOf;
304
		private int indexOfDataSource;
305
		private int indexOfX_values;
306
		private int indexOfY_values;
307
		private int indexOfDesignAs;
308
		private String xaxisTitle = new String();
309
		private String main_extra_type = new String();
310
		private String typeOfChart = new String();
311
		private String stacking = new String();
312
		private boolean enabled = true;
313
		
314
		public Data(){
315
			
316
		}
317

    
318
		public boolean isEnabled() {
319
			return enabled;
320
		}
321

    
322
		public void setEnabled(boolean enabled) {
323
			this.enabled = enabled;
324
		}
325

    
326

    
327

    
328
		public String getTypeOfChart() {
329
			return typeOfChart;
330
		}
331

    
332

    
333

    
334
		public void setTypeOfChart(String typeOfChart) {
335
			this.typeOfChart = typeOfChart;
336
		}
337

    
338

    
339

    
340
		public String getStacking() {
341
			return stacking;
342
		}
343

    
344

    
345

    
346
		public void setStacking(String stacking) {
347
			this.stacking = stacking;
348
		}
349

    
350

    
351

    
352
		public String getSplitBy() {
353
			return splitBy;
354
		}
355

    
356
		public void setSplitBy(String splitBy) {
357
			this.splitBy = splitBy;
358
		}
359

    
360

    
361

    
362
		public String getXaxisTitle() {
363
			return xaxisTitle;
364
		}
365

    
366

    
367

    
368
		public void setXaxisTitle(String xaxisTitle) {
369
			this.xaxisTitle = xaxisTitle;
370
		}
371

    
372

    
373

    
374
		public String getDesignAs() {
375
			return designAs;
376
		}
377

    
378

    
379
		public void setDesignAs(String designAs) {
380
			this.designAs = designAs;
381
		}
382

    
383

    
384
		public int getIndexOfDesignAs() {
385
			return indexOfDesignAs;
386
		}
387

    
388

    
389
		public void setIndexOfDesignAs(int indexOfDesignAs) {
390
			this.indexOfDesignAs = indexOfDesignAs;
391
		}
392

    
393

    
394
		public String getY_values() {
395
			return y_values;
396
		}
397

    
398
		public void setY_values(String y_values) {
399
			this.y_values = y_values;
400
		}
401

    
402
		public int getIndexOfY_values() {
403
			return indexOfY_values;
404
		}
405

    
406
		public void setIndexOfY_values(int indexOfY_values) {
407
			this.indexOfY_values = indexOfY_values;
408
		}
409

    
410
		public int getIndexOfX_values() {
411
			return indexOfX_values;
412
		}
413

    
414

    
415
		public void setIndexOfX_values(int indexOfX_values) {
416
			this.indexOfX_values = indexOfX_values;
417
		}
418

    
419

    
420
		public String getMain_extra_type() {
421
			return main_extra_type;
422
		}
423

    
424

    
425
		public void setMain_extra_type(String main_extra_type) {
426
			this.main_extra_type = main_extra_type;
427
		}
428

    
429

    
430
		public String getX_values() {
431
			return x_values;
432
		}
433

    
434

    
435
		public void setX_values(String x_values) {
436
			this.x_values = x_values;
437
		}
438

    
439

    
440
		public int getIndexOfTypeOf() {
441
			return indexOfTypeOf;
442
		}
443
		
444
		public String getExtra_type() {
445
			return extra_type;
446
		}
447

    
448
		public void setExtra_type(String extra_type) {
449
			this.extra_type = extra_type;
450
		}
451

    
452
		public void setIndexOfTypeOf(int indexOfTypeOf) {
453
			this.indexOfTypeOf = indexOfTypeOf;
454
		}
455

    
456
		public int getIndexOfDataSource() {
457
			return indexOfDataSource;
458
		}
459

    
460
		public void setIndexOfDataSource(int indexOfDataSource) {
461
			this.indexOfDataSource = indexOfDataSource;
462
		}
463

    
464
		public int getIndexOfColumnInSchema() {
465
			return indexOfColumnInSchema;
466
		}
467
		
468
		public void setIndexOfColumnInSchema(int indexOfRowInSchema) {
469
			this.indexOfColumnInSchema = indexOfRowInSchema;
470
		}
471
		
472
		public String getDataSource() {
473
			return DataSource;
474
		}
475
		public void setDataSource(String dataSource) {
476
			this.DataSource = dataSource;
477
		}
478
		public String getTypeOf() {
479
			return typeOf;
480
		}
481
		public void setTypeOf(String typeOf) {
482
			this.typeOf = typeOf;
483
		}
484
		public ArrayList<FilterClass> getFilters() {
485
			return filters;
486
		}
487
		public void setFilters(ArrayList<FilterClass> filters) {
488
			this.filters = filters;
489
		}
490
		
491
		public static class FilterClass implements IsSerializable{
492
			
493
			private String GroupBy;
494
			private String Type;
495
			private ArrayList<String> discreteValues = new ArrayList<String>();
496
			private String ValueFrom,ValueTo;
497
			private int row;
498
			private String fieldValue;
499
			private String displayedFieldValue;
500
			private boolean enabled;
501
		
502
			public FilterClass(){
503
				
504
			}
505
			
506
			public boolean isEnabled() {
507
				return enabled;
508
			}
509

    
510
			public void setEnabled(boolean enabled) {
511
				this.enabled = enabled;
512
			}
513

    
514
			public String getDisplayedFieldValue() {
515
				return displayedFieldValue;
516
			}
517

    
518
			public void setDisplayedFieldValue(String displayedFieldValue) {
519
				this.displayedFieldValue = displayedFieldValue;
520
			}
521

    
522
			public String getFieldValue() {
523
				return fieldValue;
524
			}
525

    
526
			public void setFieldValue(String fieldValue) {
527
				this.fieldValue = fieldValue;
528
			}
529
			
530
			public ArrayList<String> getDiscreteValues() {
531
				return discreteValues;
532
			}
533

    
534
			public void setDiscreteValues(ArrayList<String> discreteValues) {
535
				this.discreteValues = discreteValues;
536
			}
537

    
538
			public int getRow() {
539
				return row;
540
			}
541

    
542
			public void setRow(int row) {
543
				this.row = row;
544
			}
545

    
546
			public  FilterClass(String GroupBy , String Type,ArrayList<String> discreteValues){
547
				this.GroupBy = GroupBy;
548
				this.Type = Type;
549
				this.discreteValues = discreteValues;
550
				this.row=-1;
551
			}
552
			
553
			public  FilterClass(String GroupBy , String Type,String ValueFrom , String ValueTo){
554
				this.GroupBy = GroupBy;
555
				this.Type = Type;
556
				this.ValueFrom = ValueFrom;
557
				this.ValueTo = ValueTo;
558
				this.row=-1;
559
			}
560
			
561
			public String getGroupBy() {
562
				return GroupBy;
563
			}
564

    
565
			public void setGroupBy(String groupBy) {
566
				GroupBy = groupBy;
567
			}
568

    
569
			public String getType() {
570
				return Type;
571
			}
572

    
573
			public void setType(String type) {
574
				Type = type;
575
			}
576

    
577
			public String getValueFrom() {
578
				return ValueFrom;
579
			}
580

    
581
			public void setValueFrom(String valueFrom) {
582
				ValueFrom = valueFrom;
583
			}
584

    
585
			public String getValueTo() {
586
				return ValueTo;
587
			}
588

    
589
			public void setValueTo(String valueTo) {
590
				ValueTo = valueTo;
591
			}
592
		}	
593
	}
594
	
595
}
(11-11/11)