/// <summary> /// Display the results of the query. /// </summary> private void displayQueryResults() { string routine = "StateMod_QueryTool_JFrame.displayQueryResults"; // For now only diversion stations are supported... InputFilter_JPanel ifp = __input_filter_diversion_JPanel; if (ifp is StateMod_Diversion_InputFilter_JPanel) { try { StateMod_Diversion_TableModel tm = new StateMod_Diversion_TableModel(__matches_Vector, false); StateMod_Diversion_CellRenderer cr = new StateMod_Diversion_CellRenderer(tm); TableModel_JFrame f = new TableModel_JFrame(tm, cr, (PropList)null, (PropList)null); StateMod_GUIUtil.setTitle(f, __dataset, "Diversion Station Query Results", null); } catch (Exception e) { Message.printWarning(1, routine, "Error displaying results.", this); Message.printWarning(2, routine, e); } } }
/// <summary> /// Constructor. </summary> /// <param name="tableModel"> the table model for which this class renders the cells. </param> public StateMod_Diversion_CellRenderer(StateMod_Diversion_TableModel tableModel) { __tableModel = tableModel; }