@Test public void testAppend() throws VetoException { final ActionInsertFactCol52 column = new ActionInsertFactCol52(); column.setHeader("col1"); column.setBoundName("$a"); column.setFactType("Applicant"); column.setFactField("age"); modelSynchronizer.appendColumn(column); assertEquals(1, model.getActionCols().size()); assertEquals(4, uiModel.getColumns().size()); assertTrue(uiModel.getColumns().get(3) instanceof IntegerUiColumn); assertEquals(true, ((BaseSingletonDOMElementUiColumn) uiModel.getColumns().get(3)).isEditable()); }
@Override public void append(final ColumnMetaData metaData) throws VetoException { if (!handlesAppend(metaData)) { return; } final ActionInsertFactCol52 column = (ActionInsertFactCol52) metaData.getColumn(); final OptionalInt targetIndex = findLastIndexOfActionInsertFactColumn(column); if (targetIndex.isPresent()) { model.getActionCols().add(targetIndex.getAsInt() + 1, column); synchroniseAppendColumn(column); } else { model.getActionCols().add(column); synchroniseAppendColumn(column); } }
ActionInsertFactColumnSynchronizer extends ActionColumnSynchronizer { @Override public void append(final ColumnMetaData metaData) throws VetoException { if (!handlesAppend(metaData)) { return; } final ActionInsertFactCol52 column = (ActionInsertFactCol52) metaData.getColumn(); final OptionalInt targetIndex = findLastIndexOfActionInsertFactColumn(column); if (targetIndex.isPresent()) { model.getActionCols().add(targetIndex.getAsInt() + 1, column); synchroniseAppendColumn(column); } else { model.getActionCols().add(column); synchroniseAppendColumn(column); } } }
ActionInsertFactColumnSynchronizer extends ActionColumnSynchronizer { @Override public void append(final ColumnMetaData metaData) throws VetoException { if (!handlesAppend(metaData)) { return; } final ActionInsertFactCol52 column = (ActionInsertFactCol52) metaData.getColumn(); final OptionalInt targetIndex = findLastIndexOfActionInsertFactColumn(column); if (targetIndex.isPresent()) { model.getActionCols().add(targetIndex.getAsInt() + 1, column); synchroniseAppendColumn(column); } else { model.getActionCols().add(column); synchroniseAppendColumn(column); } }  }
ActionInsertFactColumnSynchronizer extends ActionColumnSynchronizer { @Override public void append(final ColumnMetaData metaData) throws VetoException { if (!handlesAppend(metaData)) { return; } final ActionInsertFactCol52 column = (ActionInsertFactCol52) metaData.getColumn(); final OptionalInt targetIndex = findLastIndexOfActionInsertFactColumn(column); if (targetIndex.isPresent()) { model.getActionCols().add(targetIndex.getAsInt() + 1, column); synchroniseAppendColumn(column); } else { model.getActionCols().add(column); synchroniseAppendColumn(column); } }  @Override int priority(); @Override boolean handlesAppend(final MetaData metaData); @Override void append(final ColumnMetaData metaData); @Override boolean handlesUpdate(final MetaData metaData); @Override List<BaseColumnFieldDiff> update(final ColumnMetaData originalMetaData,
                                            final ColumnMetaData editedMetaData); @Override boolean handlesMoveColumnsTo(final List<? extends MetaData> metaData); }
ActionInsertFactColumnSynchronizer extends ActionColumnSynchronizer { @Override public void append(final ColumnMetaData metaData) throws VetoException { if (!handlesAppend(metaData)) { return; } final ActionInsertFactCol52 column = (ActionInsertFactCol52) metaData.getColumn(); final OptionalInt targetIndex = findLastIndexOfActionInsertFactColumn(column); if (targetIndex.isPresent()) { model.getActionCols().add(targetIndex.getAsInt() + 1, column); synchroniseAppendColumn(column); } else { model.getActionCols().add(column); synchroniseAppendColumn(column); } }  @Override int priority(); @Override boolean handlesAppend(final MetaData metaData); @Override void append(final ColumnMetaData metaData); @Override boolean handlesUpdate(final MetaData metaData); @Override List<BaseColumnFieldDiff> update(final ColumnMetaData originalMetaData,
                                            final ColumnMetaData editedMetaData); @Override boolean handlesMoveColumnsTo(final List<? extends MetaData> metaData);  }