1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management in
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
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.template2d.ui.function;
14 import java.util.ArrayList;
15 import java.util.List;
17 import org.simantics.databoard.annotations.Identifier;
18 import org.simantics.databoard.annotations.Optional;
19 import org.simantics.databoard.util.Bean;
21 public class FlagTableColumnInfo extends Bean {
22 public static final Integer TYPE_NORMAL = 0;
23 public static final Integer TYPE_ROW_NUMBERING = 1;
25 private Float weight = 0.0F;
26 private Integer type = TYPE_NORMAL;
29 * Numbering start offset for RowNumberColumns.
32 private Integer startOffset;
35 public List<MonitorInfo> columnDatas = new ArrayList<MonitorInfo>();
37 public List<MonitorInfo> columnHeaders = new ArrayList<MonitorInfo>();
39 public void addColumnData(MonitorInfo columnData){
40 columnDatas.add(columnData);
43 public void addColumnHeader(MonitorInfo columnData){
44 columnHeaders.add(columnData);
47 public Float getWeight() {
51 public void setWeight(Float weight) {
55 public FlagTableColumnInfo(Float weight){
60 public Integer getType() {
64 public void setType(Integer type) {
68 public Integer getStartOffset() {
72 public void setStartOffset(Integer startOffset) {
73 this.startOffset = startOffset;