/// <summary> /// Constructor. </summary> /// <param name="dataset"> the dataset containing the data to show in the form. </param> /// <param name="dataset_wm"> the dataset window manager or null if the data set windows are not being managed. </param> /// <param name="editable"> whether the data on the gui can be edited or not. </param> public StateMod_RiverNetworkNode_JFrame(StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm, bool editable) { JGUIUtil.setIcon(this, JGUIUtil.getIconImage()); StateMod_GUIUtil.setTitle(this, dataset, "River Network Nodes", null); __dataset = dataset; __dataset_wm = dataset_wm; __riverNetworkNodeComponent = __dataset.getComponentForComponentType(StateMod_DataSet.COMP_RIVER_NETWORK); //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") java.util.List<StateMod_RiverNetworkNode> riverNetworkNodesList = (java.util.List<StateMod_RiverNetworkNode>)__riverNetworkNodeComponent.getData(); IList <StateMod_RiverNetworkNode> riverNetworkNodesList = (IList <StateMod_RiverNetworkNode>)__riverNetworkNodeComponent.getData(); __riverNetworkNodesVector = riverNetworkNodesList; int size = __riverNetworkNodesVector.Count; StateMod_RiverNetworkNode r = null; for (int i = 0; i < size; i++) { r = (StateMod_RiverNetworkNode)__riverNetworkNodesVector[i]; r.createBackup(); } __editable = editable; setupGUI(0); }
/// <summary> /// Constructor. </summary> /// <param name="parent"> the JFrame on which to display this dialog. Must not be null. </param> /// <param name="dataset"> the dataset that is being worked with. </param> /// <param name="datasetWindowManager"> the window manager that is managing this window. </param> public StateMod_Save_JDialog(JFrame parent, StateMod_DataSet dataset, StateMod_DataSet_WindowManager datasetWindowManager) : base(parent, "Save Modified StateMod Files", true) { __dataset = dataset; __dataset_wm = datasetWindowManager; __parent = parent; setupGUI(); }
/// <summary> /// Constructor. </summary> /// <param name="dataset"> the dataset that contains the data. </param> /// <param name="dataset_wm"> the dataset window manager or null if the data set windows /// are not being managed. </param> public StateMod_RunReport_JFrame(StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm) { StateMod_GUIUtil.setTitle(this, dataset, "Run StateMod Report", null); JGUIUtil.setIcon(this, JGUIUtil.getIconImage()); __dataset = dataset; __dataset_wm = dataset_wm; setupGUI(); }
private IList <StateMod_Diversion> __matches_Vector = null; // The list of matching data. /// <summary> /// Constructor. </summary> /// <param name="dataset"> the dataset in which the Control data with which to populate /// this form is found. </param> /// <param name="dataset_wm"> the dataset window manager or null if the data set windows /// are not being managed. </param> /// <param name="editable"> If true, the data in the window are editable. </param> public StateMod_QueryTool_JFrame(StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm) { StateMod_GUIUtil.setTitle(this, dataset, "Query Tool", null); JGUIUtil.setIcon(this, JGUIUtil.getIconImage()); __dataset = dataset; __dataset_wm = dataset_wm; setupGUI(); }
/// <summary> /// Constructor. </summary> /// <param name="dataset"> the dataset that is being worked with. </param> /// <param name="dataset_wm"> the dataset's window manager </param> public StateMod_Response_JFrame(StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm) { StateMod_GUIUtil.setTitle(this, dataset, "Response File Contents", null); JGUIUtil.setIcon(this, JGUIUtil.getIconImage()); __dataset = dataset; __dataset_copy = new StateMod_DataSet(dataset, false); __dataset_wm = dataset_wm; setupGUI(); }
/// <summary> /// Construct a StateMod_DataSet_JFrame. </summary> /// <param name="parent"> JFrame from which this instance is constructed. </param> /// <param name="dataset"> StateMod_DataSet that is being displayed/managed. </param> /// <param name="dataset_wm"> the dataset window manager or null if the data set windows are not being managed. </param> /// <param name="display_data_objects"> If true, data objects are listed in the tree. If </param> /// <param name="editable"> If true, data objects can be edited. /// false, only the top-level data set components are listed. </param> public StateMod_DataSet_JTree(JFrame parent, StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm, bool display_data_objects, bool editable) { __dataset = dataset; __dataset_wm = dataset_wm; __display_data_objects = display_data_objects; __editable = editable; __folderIcon = getClosedIcon(); showRootHandles(true); addMouseListener(this); setLeafIcon(null); setTreeTextEditable(false); __popup_JPopupMenu = new JPopupMenu(); }
/// <summary> /// Constructor. </summary> /// <param name="dataset"> the dataset containing the data to display </param> /// <param name="dataset_wm"> the dataset window manager or null if the data set windows /// are not being managed. </param> /// <param name="delayTable"> the delay table to display. </param> /// <param name="monthly_data"> If true, display the monthly delay tables. If false, /// display the daily delay tables. </param> /// <param name="editable"> whether the data is editable or not </param> public StateMod_DelayTable_JFrame(StateMod_DataSet dataset, StateMod_DataSet_WindowManager dataset_wm, StateMod_DelayTable delayTable, bool monthly_data, bool editable) { __dataset = dataset; __dataset_wm = dataset_wm; __monthly_data = monthly_data; JGUIUtil.setIcon(this, JGUIUtil.getIconImage()); string interval = " (Monthly)"; if (__monthly_data) { __window_type = StateMod_DataSet_WindowManager.WINDOW_DELAY_TABLE_MONTHLY; __delayComponent = __dataset.getComponentForComponentType(StateMod_DataSet.COMP_DELAY_TABLES_MONTHLY); __componentType = StateMod_DataSet.COMP_DELAY_TABLES_MONTHLY; } else { __window_type = StateMod_DataSet_WindowManager.WINDOW_DELAY_TABLE_DAILY; __delayComponent = __dataset.getComponentForComponentType(StateMod_DataSet.COMP_DELAY_TABLES_DAILY); __componentType = StateMod_DataSet.COMP_DELAY_TABLES_DAILY; interval = " (Daily)"; } StateMod_GUIUtil.setTitle(this, dataset, "Delay Tables" + interval, null); //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") java.util.List<StateMod_DelayTable> delaysList = (java.util.List<StateMod_DelayTable>)__delayComponent.getData(); IList<StateMod_DelayTable> delaysList = (IList<StateMod_DelayTable>)__delayComponent.getData(); __delaysVector = delaysList; int size = __delaysVector.Count; StateMod_DelayTable dt = null; for (int i = 0; i < size; i++) { dt = __delaysVector[i]; dt.createBackup(); } string id = delayTable.getID(); int index = StateMod_Util.IndexOf(__delaysVector, id); __editable = editable; setupGUI(index); }
/// <summary> /// Set the data set window manager. </summary> /// <param name="dataset_wm"> StateMod_DataSet_WindowManager that is being used to /// display/manage the data set. </param> public virtual void setDataSetWindowManager(StateMod_DataSet_WindowManager dataset_wm) { __dataset_wm = dataset_wm; }