public void onClick( ClickEvent w ) { String[] val = pats.getValue( pats.getSelectedIndex() ).split( "\\s" ); editingCol.setFactType( val[ 0 ] ); editingCol.setBoundName( val[ 1 ] ); editingCol.setFactField( null ); doBindFieldToWorkItem(); doPatternLabel(); doFieldLabel(); pop.hide(); } } );
public void onClick( ClickEvent w ) { //Validate column configuration String ft = types.getItemText( types.getSelectedIndex() ); String fn = binding.getText(); if ( fn.equals( "" ) ) { Window.alert( Constants.INSTANCE.PleaseEnterANameForFact() ); return; } else if ( fn.equals( ft ) ) { Window.alert( Constants.INSTANCE.PleaseEnterANameThatIsNotTheSameAsTheFactType() ); return; } else if ( !isBindingUnique( fn ) ) { Window.alert( Constants.INSTANCE.PleaseEnterANameThatIsNotAlreadyUsedByAnotherPattern() ); return; } //Configure column editingCol.setBoundName( binding.getText() ); editingCol.setFactType( types.getItemText( types.getSelectedIndex() ) ); editingCol.setFactField( null ); doBindFieldToWorkItem(); doPatternLabel(); doFieldLabel(); pop.hide(); } } );
private ActionWorkItemInsertFactCol52 cloneActionInsertColumn( ActionWorkItemInsertFactCol52 col ) { ActionWorkItemInsertFactCol52 clone = new ActionWorkItemInsertFactCol52(); clone.setBoundName( col.getBoundName() ); clone.setType( col.getType() ); clone.setFactField( col.getFactField() ); clone.setFactType( col.getFactType() ); clone.setHeader( col.getHeader() ); clone.setValueList( col.getValueList() ); clone.setDefaultValue( col.getDefaultValue() ); clone.setHideColumn( col.isHideColumn() ); clone.setInsertLogical( col.isInsertLogical() ); clone.setWorkItemName( col.getWorkItemName() ); clone.setWorkItemResultParameterName( col.getWorkItemResultParameterName() ); clone.setParameterClassName( col.getParameterClassName() ); return clone; }
asf1.setBoundName( "$r" ); asf1.setFactField( "ResultBooleanField" ); asf1.setType( DataType.TYPE_BOOLEAN ); asf2.setBoundName( "$r" ); asf2.setFactField( "ResultFloatField" ); asf2.setType( DataType.TYPE_NUMERIC_FLOAT );
asf1.setBoundName( "$r" ); asf1.setFactField( "ResultBooleanField" ); asf1.setType( DataType.TYPE_BOOLEAN ); asf2.setBoundName( "$r" ); asf2.setFactField( "ResultFloatField" ); asf2.setType( DataType.TYPE_NUMERIC_FLOAT ); asf3.setBoundName( "$r" ); asf3.setFactField( "ResultIntegerField" ); asf3.setType( DataType.TYPE_NUMERIC_INTEGER ); asf4.setBoundName( "$r" ); asf4.setFactField( "ResultStringField" ); asf4.setType( DataType.TYPE_STRING );