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; }