1 package org.simantics.document.swt.core.bean;
3 import java.io.IOException;
5 import org.simantics.browsing.ui.Column.Align;
6 import org.simantics.databoard.Bindings;
7 import org.simantics.databoard.binding.Binding;
8 import org.simantics.databoard.binding.error.BindingException;
9 import org.simantics.databoard.parser.repository.DataValueRepository;
11 public class ColumnsBean {
13 public static final Binding BINDING = Bindings.getBindingUnchecked(ColumnsBean.class);
15 public ColumnBean[] columns;
17 public static void main(String[] args) {
19 System.err.println(BINDING.type().toSingleLineString());
21 ColumnBean b1 = new ColumnBean();
22 b1.alignment = "CENTER";
30 ColumnBean b2 = new ColumnBean();
31 b2.alignment = "LEFT";
39 ColumnBean[] cbs = { b1, b2 };
41 ColumnsBean bean = new ColumnsBean();
45 BINDING.printValue(bean, System.out, new DataValueRepository(), true);
46 } catch (IOException e) {
47 // TODO Auto-generated catch block
49 } catch (BindingException e) {
50 // TODO Auto-generated catch block