]> gerrit.simantics Code Review - simantics/platform.git/blob
7c060da310a0d68c752e9da39575f16271ca35de
[simantics/platform.git] /
1 package org.simantics.spreadsheet.graph.function;
2
3 import org.simantics.databoard.binding.mutable.Variant;
4 import org.simantics.spreadsheet.graph.SpreadsheetStyle;
5
6 public class LineContentBeanCell {
7
8     public static final Variant EMPTY = new Variant();
9     
10     public Variant content;
11     public final int styleID;
12
13     public LineContentBeanCell() {
14         this(SpreadsheetStyle.empty().getStyleId());
15     }
16
17     public LineContentBeanCell(int styleId) {
18         this(EMPTY, styleId);
19     }
20
21     public LineContentBeanCell(Variant content, int styleId) {
22 //        System.err.println("LineContentBeanCell.construct: " + content + " " + styleId);
23         this.content = content;
24         this.styleID = styleId;
25     }
26
27     public Variant getContent() {
28         return content;
29     }
30
31     public void setContent(Variant content) {
32         this.content = content;
33     }
34
35     public int getStyleId() {
36         return styleID;
37     }
38 }