public void ColumnAdded(int index, CellModel cellModel, ColumnModel columnModel)
        {
            CellView v = cellModel.GetView(context);

            cells.Insert(index, v);
            row_view.AddView(v.GetView(), index + ADDITIONAL_COLUMNS);
        }
        public void ColumnChanged(int index, CellModel cellModel, ColumnModel columnModel)
        {
            CellView v = cellModel.GetView(context);

            cells[index] = v;

            row_view.RemoveViewAt(index + ADDITIONAL_COLUMNS);
            row_view.AddView(v.GetView(), index + ADDITIONAL_COLUMNS);
        }
 public void Initiate(List <CellModel> cells, List <ColumnModel> columns)
 {
     foreach (CellModel model in cells)
     {
         CellView v = model.GetView(context);
         this.cells.Add(v);
         row_view.AddView(v.GetView());
     }
 }
Esempio n. 4
0
        public void ColumnAdded(int index, CellModel cellModel, ColumnModel column)
        {
            CellView Cllv = cellModel.GetView(context);

            this.cells.Add(Cllv);
            layout.AddView(Cllv.GetView(), index * 2 + ADDITIONAL_ROWS);

            ColumnView Cmnv = column.GetView(context);

            this.columns.Add(Cmnv);
            layout.AddView(Cmnv.GetView(), index * 2 + ADDITIONAL_ROWS);
        }
Esempio n. 5
0
        public void Initiate(List <CellModel> cells, List <ColumnModel> columns)
        {
            for (int i = 0; i < cells.Count; ++i)
            {
                ColumnView Cmnv = columns[i].GetView(context);
                this.columns.Add(Cmnv);
                layout.AddView(Cmnv.GetView());

                CellView Cllv = cells[i].GetView(context);
                this.cells.Add(Cllv);
                layout.AddView(Cllv.GetView());
            }
        }