private void removeConfigRecord() { SECSConfigurationVo voConfig = (SECSConfigurationVo) form.dyngrdSecs().getSelectedRow().getValue(); form.getLocalContext().getSelectedInstance().getConfiguration().remove(voConfig); form.dyngrdSecs().getRows().remove(form.dyngrdSecs().getSelectedRow()); form.dyngrdSecs().setValue(null); form.getLocalContext().getSelectedInstance().validate(); doSave(form.getLocalContext().getSelectedInstance()); open(); }
/** * if a record exists then retrieve it for type else create new * @param voCollSecsConfig * @param type * @return */ private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, SECSTypes type) { for(int i=0; i<voCollSecsConfig.size(); i++) { if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type)) return voCollSecsConfig.get(i); } return new SECSConfigurationVo(); }
/** * if a record exists then retrieve it for type else create new * @param voCollSecsConfig * @param type * @return */ private SECSConfigurationVo getConfigRecord(SECSConfigurationVoCollection voCollSecsConfig, OBSType type) { for(int i=0; i<voCollSecsConfig.size(); i++) { if(voCollSecsConfig.get(i).getTypeIsNotNull() && voCollSecsConfig.get(i).getType().equals(type)) return voCollSecsConfig.get(i); } return new SECSConfigurationVo(); }
private void dyngrdSecsSelectionChanged() { populateConfigInstanceControls((SECSConfigurationVo)form.dyngrdSecs().getValue()); updateControlsState(); }