]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableColumnInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / function / FlagTableColumnInfo.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.template2d.ui.function;
13
14 import java.util.ArrayList;
15 import java.util.List;
16
17 import org.simantics.databoard.annotations.Identifier;
18 import org.simantics.databoard.annotations.Optional;
19 import org.simantics.databoard.util.Bean;
20
21 public class FlagTableColumnInfo extends Bean {
22     public static final Integer TYPE_NORMAL        = 0;
23     public static final Integer TYPE_ROW_NUMBERING = 1;
24         
25         private Float weight = 0.0F;
26         private Integer type = TYPE_NORMAL;
27
28         /**
29          * Numbering start offset for RowNumberColumns.
30          */
31         @Optional
32         private Integer startOffset;
33
34         @Identifier
35         public List<MonitorInfo> columnDatas = new ArrayList<MonitorInfo>();
36         @Identifier
37         public List<MonitorInfo> columnHeaders = new ArrayList<MonitorInfo>();
38
39         public void addColumnData(MonitorInfo columnData){
40                 columnDatas.add(columnData);
41         }
42
43         public void addColumnHeader(MonitorInfo columnData){
44                 columnHeaders.add(columnData);
45         }
46
47         public Float getWeight() {
48                 return weight;
49         }
50
51         public void setWeight(Float weight) {
52                 this.weight = weight;
53         }
54
55         public FlagTableColumnInfo(Float weight){
56                 this.weight = weight;
57                 
58         }
59
60         public Integer getType() {
61                 return type;
62         }
63
64         public void setType(Integer type) {
65                 this.type = type;
66         }
67
68         public Integer getStartOffset() {
69                 return startOffset;
70         }
71
72         public void setStartOffset(Integer startOffset) {
73                 this.startOffset = startOffset;
74         }
75
76 }