Esempio n. 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_ReservoirAccount_Data_TableModel   tableModel   = new StateMod_ReservoirAccount_Data_TableModel(_data, _editable);
            StateMod_ReservoirAccount_Data_CellRenderer cellRenderer = new StateMod_ReservoirAccount_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_ReservoirAccount_Data_CellRenderer(StateMod_ReservoirAccount_Data_TableModel tableModel)
 {
     __tableModel = tableModel;
 }