X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.template2d.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Ftemplate2d%2Fui%2Ffunction%2FFlagTableColumnInfo.java;h=46a7c7a778673e298d74f83e80b2a3a7d4cfc1a5;hb=refs%2Fchanges%2F38%2F238%2F2;hp=58a53bd1ac10323da4e695a75bbd4dc96ef84736;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableColumnInfo.java b/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableColumnInfo.java index 58a53bd1a..46a7c7a77 100644 --- a/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableColumnInfo.java +++ b/bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/function/FlagTableColumnInfo.java @@ -1,76 +1,76 @@ -/******************************************************************************* - * Copyright (c) 2012 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.modeling.template2d.ui.function; - -import java.util.ArrayList; -import java.util.List; - -import org.simantics.databoard.annotations.Identifier; -import org.simantics.databoard.annotations.Optional; -import org.simantics.databoard.util.Bean; - -public class FlagTableColumnInfo extends Bean { - public static final Integer TYPE_NORMAL = 0; - public static final Integer TYPE_ROW_NUMBERING = 1; - - private Float weight = 0.0F; - private Integer type = TYPE_NORMAL; - - /** - * Numbering start offset for RowNumberColumns. - */ - @Optional - private Integer startOffset; - - @Identifier - public List columnDatas = new ArrayList(); - @Identifier - public List columnHeaders = new ArrayList(); - - public void addColumnData(MonitorInfo columnData){ - columnDatas.add(columnData); - } - - public void addColumnHeader(MonitorInfo columnData){ - columnHeaders.add(columnData); - } - - public Float getWeight() { - return weight; - } - - public void setWeight(Float weight) { - this.weight = weight; - } - - public FlagTableColumnInfo(Float weight){ - this.weight = weight; - - } - - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } - - public Integer getStartOffset() { - return startOffset; - } - - public void setStartOffset(Integer startOffset) { - this.startOffset = startOffset; - } - -} +/******************************************************************************* + * Copyright (c) 2012 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.modeling.template2d.ui.function; + +import java.util.ArrayList; +import java.util.List; + +import org.simantics.databoard.annotations.Identifier; +import org.simantics.databoard.annotations.Optional; +import org.simantics.databoard.util.Bean; + +public class FlagTableColumnInfo extends Bean { + public static final Integer TYPE_NORMAL = 0; + public static final Integer TYPE_ROW_NUMBERING = 1; + + private Float weight = 0.0F; + private Integer type = TYPE_NORMAL; + + /** + * Numbering start offset for RowNumberColumns. + */ + @Optional + private Integer startOffset; + + @Identifier + public List columnDatas = new ArrayList(); + @Identifier + public List columnHeaders = new ArrayList(); + + public void addColumnData(MonitorInfo columnData){ + columnDatas.add(columnData); + } + + public void addColumnHeader(MonitorInfo columnData){ + columnHeaders.add(columnData); + } + + public Float getWeight() { + return weight; + } + + public void setWeight(Float weight) { + this.weight = weight; + } + + public FlagTableColumnInfo(Float weight){ + this.weight = weight; + + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public Integer getStartOffset() { + return startOffset; + } + + public void setStartOffset(Integer startOffset) { + this.startOffset = startOffset; + } + +}