@Test public void simpleAction() { final AtomicBoolean calledBack = new AtomicBoolean( false ); final LimitedEntryActionRetractFactCol52 arf = new LimitedEntryActionRetractFactCol52(); arf.setValue( new DTCellValue52( "$a" ) ); model.getActionCols().add( arf ); builder.generateDefinition( dtPresenter, arf, ( String definition ) -> { calledBack.set( true ); assertEquals( "retract( $a );", definition ); } ); assertTrue( calledBack.get() ); }
@Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof LimitedEntryActionRetractFactCol52 ) ) { return; } generateActionColumn( dtPresenter, column, afterGenerationCallback ); }
LimitedEntryActionRetractFactCol52DefinitionBuilder extends BaseActionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof LimitedEntryActionRetractFactCol52 ) ) { return; } generateActionColumn( dtPresenter, column, afterGenerationCallback ); } }
LimitedEntryActionRetractFactCol52DefinitionBuilder extends BaseActionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof LimitedEntryActionRetractFactCol52 ) ) { return; } generateActionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  LimitedEntryActionRetractFactCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); }
LimitedEntryActionRetractFactCol52DefinitionBuilder extends BaseActionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof LimitedEntryActionRetractFactCol52 ) ) { return; } generateActionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  LimitedEntryActionRetractFactCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); @Override Class getSupportedColumnType(); @Override void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                    final BaseColumn column,
                                    final Callback<String> afterGenerationCallback ); }
LimitedEntryActionRetractFactCol52DefinitionBuilder extends BaseActionColumnDefinitionBuilder { @Override public void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter, final BaseColumn column, final Callback<String> afterGenerationCallback ) { if ( !( column instanceof LimitedEntryActionRetractFactCol52 ) ) { return; } generateActionColumn( dtPresenter, column, afterGenerationCallback ); } @Inject  LimitedEntryActionRetractFactCol52DefinitionBuilder( final Caller<GuidedDecisionTableEditorService> service ); @Override Class getSupportedColumnType(); @Override void generateDefinition( final GuidedDecisionTableView.Presenter dtPresenter,
                                    final BaseColumn column,
                                    final Callback<String> afterGenerationCallback );  }