/// <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_Plan_WellAugmentation_Data_TableModel   tableModel   = new StateMod_Plan_WellAugmentation_Data_TableModel(_data, _editable);
            StateMod_Plan_WellAugmentation_Data_CellRenderer cellRenderer = new StateMod_Plan_WellAugmentation_Data_CellRenderer(tableModel);

            // Note (JTS - 2005-03-31)
            // while it would seem the right thing to do would be to here assign
            // the table model to __tableModel, JTS found that in practice for
            // some reason once the constructor was returned to (in order to finish
            // building the GUI with checkbox) that the table model was then
            // null!  JTS didn't understand why it was happening but didn't
            // want to spend too long investigating.

            // _props is defined in the super class
            return(new JScrollWorksheet(cellRenderer, tableModel, _props));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor. </summary>
 /// <param name="tableModel"> the tableModel for which this will render the cells </param>
 public StateMod_Plan_WellAugmentation_Data_CellRenderer(StateMod_Plan_WellAugmentation_Data_TableModel tableModel)
 {
     __tableModel = tableModel;
 }