/// <summary>
        /// Creates a JScrollWorksheet for the current data and returns it. </summary>
        /// <returns> a JScrollWorksheet containing the data Vector passed in to the
        /// constructor. </returns>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: protected RTi.Util.GUI.JScrollWorksheet buildJScrollWorksheet() throws Exception
        protected internal override JScrollWorksheet buildJScrollWorksheet()
        {
            StateMod_Well_Data_TableModel   tableModel   = new StateMod_Well_Data_TableModel(_data, _editable);
            StateMod_Well_Data_CellRenderer cellRenderer = new StateMod_Well_Data_CellRenderer(tableModel);

            // _props is defined in the super class
            return(new JScrollWorksheet(cellRenderer, tableModel, _props));
        }
        /// <summary>
        /// Performs general and specific data checks on well station data. </summary>
        /// <param name="props"> A property list for specific properties </param>
        /// <param name="wes_Vector"> Vector of data to check.
        /// on checking this data. </param>
        private void checkWellStationData(PropList props, System.Collections.IList wes_Vector)
        {
            // create elements for the checks and check file
            string[] header = StateMod_Well.getDataHeader();
            string   title  = "Well Station";

            // first do the general data validation
            // using this components data table model
            StateMod_Data_TableModel tm = new StateMod_Well_Data_TableModel(wes_Vector, false);

            System.Collections.IList @checked = performDataValidation(tm, title);
            //String [] columnHeader = getDataTableModelColumnHeader( tm );
            string[] columnHeader = getColumnHeader(tm);

            // do specific checks
            int size = 0;

            if (wes_Vector != null)
            {
                size = wes_Vector.Count;
            }
            System.Collections.IList data = new List <object>();
            data = doSpecificDataChecks(wes_Vector, props);
            // add the data and checks to the check file
            // provides basic header information for this data check table
            string info = "The following well stations (" + data.Count +
                          " out of " + size +
                          ") have no irrigated parcels served by wells.\n" +
                          "Data may be OK if the station is an M&I or has no wells.\n" +
                          "Parcel count and area in the following table are available " +
                          "only if well stations are read from HydroBase.\n";

            // create data models for Check file
            CheckFile_DataModel dm     = new CheckFile_DataModel(data, header, title, info, data.Count, size);
            CheckFile_DataModel gen_dm = new CheckFile_DataModel(@checked, columnHeader, title + " Missing or Invalid Data", "", __gen_problems, size);

            __check_file.addData(dm, gen_dm);

            // Check to make sure the sum of well rights equals the well station
            // capacity..
            checkWellRights_CapacityData();
        }
 /// <summary>
 /// Constructor. </summary>
 /// <param name="tableModel"> the table model for which to render cells </param>
 public StateMod_Well_Data_CellRenderer(StateMod_Well_Data_TableModel tableModel)
 {
     __tableModel = tableModel;
 }