public ActionSetFieldColumnDetails(final ActionSetFieldCol52 column) { super( column ); this.boundName = column.getBoundName(); this.factField = column.getFactField(); }
public ActionSetFieldColumnDetails(final ActionSetFieldCol52 column) { super( column ); this.boundName = column.getBoundName(); this.factField = column.getFactField(); }
private void doAction(List<LabelledAction> actions, ActionSetFieldCol52 sf, String cell) { LabelledAction a = findByLabelledAction( actions, sf.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = sf.getBoundName(); if ( !sf.isUpdate() ) { a.action = new ActionSetField( sf.getBoundName() ); } else { a.action = new ActionUpdateField( sf.getBoundName() ); } actions.add( a ); } else if ( sf.isUpdate() && !(a.action instanceof ActionUpdateField) ) { // lets swap it out for an update as the user has asked for it. ActionSetField old = (ActionSetField) a.action; ActionUpdateField update = new ActionUpdateField( sf.getBoundName() ); update.fieldValues = old.fieldValues; a.action = update; } ActionSetField asf = (ActionSetField) a.action; ActionFieldValue val = new ActionFieldValue( sf.getFactField(), cell, sf.getType() ); asf.addFieldValue( val ); }
private void doAction(List<LabelledAction> actions, ActionSetFieldCol52 sf, String cell) { LabelledAction a = findByLabelledAction( actions, sf.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = sf.getBoundName(); if ( !sf.isUpdate() ) { a.action = new ActionSetField( sf.getBoundName() ); } else { a.action = new ActionUpdateField( sf.getBoundName() ); } actions.add( a ); } else if ( sf.isUpdate() && !(a.action instanceof ActionUpdateField) ) { // lets swap it out for an update as the user has asked for it. ActionSetField old = (ActionSetField) a.action; ActionUpdateField update = new ActionUpdateField( sf.getBoundName() ); update.fieldValues = old.fieldValues; a.action = update; } ActionSetField asf = (ActionSetField) a.action; ActionFieldValue val = new ActionFieldValue( sf.getFactField(), cell, sf.getType() ); asf.addFieldValue( val ); }
private String getType(ActionSetFieldCol52 col, SuggestionCompletionEngine sce) { // Columns with "Value Lists" etc are always Text (for now) if ( hasValueList( col ) ) { return SuggestionCompletionEngine.TYPE_STRING; } //Otherwise lookup from SuggestionCompletionEngine final String factType = getBoundFactType( col.getBoundName() ); final String fieldName = col.getFactField(); return getTypeFromSCE( factType, fieldName, sce ); }
private String getType(ActionSetFieldCol52 col, SuggestionCompletionEngine sce) { // Columns with "Value Lists" etc are always Text (for now) if ( hasValueList( col ) ) { return SuggestionCompletionEngine.TYPE_STRING; } //Otherwise lookup from SuggestionCompletionEngine final String factType = getBoundFactType( col.getBoundName() ); final String fieldName = col.getFactField(); return getTypeFromSCE( factType, fieldName, sce ); }
a3.getBoundName() ); assertEquals( "goo1", a3.getFactField() ); a4.getBoundName() ); assertEquals( "goo2", a4.getFactField() );
a3.getBoundName() ); assertEquals( "goo1", a3.getFactField() ); a4.getBoundName() ); assertEquals( "goo2", a4.getFactField() );