/// <summary> /// Fills the parameter column in the given row based on the station type selected for that row. </summary> /// <param name="row"> the row for which to fill the parameter column. </param> /// <param name="type"> the type of the station in the given row. </param> public virtual void fillParameterColumn(int row, string type) { IList <string> datatypes = new List <string>(); // Get the model output data types (no input since SmDelta deals with output). if (type.Equals("Diversion", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.DIVERSION_TYPE, false); } else if (type.Equals("Instream flow", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.INSTREAM_TYPE, false); } else if (type.Equals("Reservoir", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.RESERVOIR_TYPE, false); } else if (type.Equals("Streamflow", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.STREAM_TYPE, false); } else if (type.Equals("Well", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.WELL_TYPE, false); } else if (type.Equals("Stream ID (0* Gages)", StringComparison.OrdinalIgnoreCase)) { datatypes = StateMod_GraphNode.getGraphDataType(StateMod_GraphNode.STREAM_TYPE, false); } IList <string> finalTypes = new List <string>(); finalTypes.Add(""); for (int i = 0; i < datatypes.Count; i++) { // FIXME SAM 2008-03-20 No need to remove underscores for newer versions of StateMod, right?. // Use data types from binary file. //finalTypes.add(((String)datatypes.elementAt(i)).replace('_', ' ')); finalTypes.Add(datatypes[i]); } if (__worksheet != null) { //System.out.println("Setting cell-specific stuff"); __worksheet.setCellSpecificJComboBoxValues(row, COL_PARM, finalTypes); } }