示例#1
0
        /// <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_ReservoirAreaCap_Data_TableModel tableModel = new StateMod_ReservoirAreaCap_Data_TableModel(_data, _editable);
            // false means to set up the table model to allow many
            // reservoirs' area capacities to be in the same table.
            StateMod_ReservoirAreaCap_Data_CellRenderer cellRenderer = new StateMod_ReservoirAreaCap_Data_CellRenderer(tableModel);

            // _props is defined in the super class
            return(new JScrollWorksheet(cellRenderer, tableModel, _props));
        }
 /// <summary>
 /// Constructor. </summary>
 /// <param name="tableModel"> the table model for which this class renders cells. </param>
 public StateMod_ReservoirAreaCap_Data_CellRenderer(StateMod_ReservoirAreaCap_Data_TableModel tableModel)
 {
     __tableModel = tableModel;
 }