Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
ReportViewer: Route: add warning that stops must be added before upda…
Browse files Browse the repository at this point in the history
…ting routes
  • Loading branch information
tenzap committed Jul 31, 2023
1 parent 7cf369c commit 6547fba
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
110 changes: 110 additions & 0 deletions GO_Sync/src/main/java/edu/usf/cutr/go_sync/gui/ReportViewer.form
Original file line number Diff line number Diff line change
Expand Up @@ -4017,6 +4017,21 @@
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JLabel" name="membersWarningLabel">
<Properties>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="0" id="magenta" palette="1" red="ff" type="palette"/>
</Property>
<Property name="text" type="java.lang.String" value="For members correctness, required GTFS stops must be present in OSM prior to using this feature."/>
<Property name="toolTipText" type="java.lang.String" value=""/>
<Property name="name" type="java.lang.String" value="membersWarningLabel" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="1" gridY="7" gridWidth="0" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="17" weightX="0.0" weightY="0.0"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
<LayoutCode>
<CodeStatement>
Expand Down Expand Up @@ -6310,6 +6325,101 @@
<CodeExpression id="356_gridBagConstraints"/>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints">
<CodeVariable name="gridBagConstraints"/>
<ExpressionOrigin>
<ExpressionProvider type="CodeConstructor">
<CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/>
</ExpressionProvider>
</ExpressionOrigin>
</CodeExpression>
<StatementProvider type="CodeExpression">
<CodeExpression id="363_gridBagConstraints"/>
</StatementProvider>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints"/>
<StatementProvider type="CodeField">
<CodeField name="gridx" class="java.awt.GridBagConstraints"/>
</StatementProvider>
<Parameters>
<CodeExpression id="364">
<ExpressionOrigin>
<Value type="int" value="1"/>
</ExpressionOrigin>
</CodeExpression>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints"/>
<StatementProvider type="CodeField">
<CodeField name="gridy" class="java.awt.GridBagConstraints"/>
</StatementProvider>
<Parameters>
<CodeExpression id="365">
<ExpressionOrigin>
<Value type="int" value="7"/>
</ExpressionOrigin>
</CodeExpression>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints"/>
<StatementProvider type="CodeField">
<CodeField name="gridwidth" class="java.awt.GridBagConstraints"/>
</StatementProvider>
<Parameters>
<CodeExpression id="366">
<ExpressionOrigin>
<Value type="int" value="0"/>
</ExpressionOrigin>
</CodeExpression>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints"/>
<StatementProvider type="CodeField">
<CodeField name="fill" class="java.awt.GridBagConstraints"/>
</StatementProvider>
<Parameters>
<CodeExpression id="367">
<ExpressionOrigin>
<Value type="int" value="2"/>
</ExpressionOrigin>
</CodeExpression>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="363_gridBagConstraints"/>
<StatementProvider type="CodeField">
<CodeField name="anchor" class="java.awt.GridBagConstraints"/>
</StatementProvider>
<Parameters>
<CodeExpression id="368">
<ExpressionOrigin>
<Value type="int" value="17"/>
</ExpressionOrigin>
</CodeExpression>
</Parameters>
</CodeStatement>
<CodeStatement>
<CodeExpression id="204_busRoutePanel"/>
<StatementProvider type="CodeMethod">
<CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/>
</StatementProvider>
<Parameters>
<CodeExpression id="369_membersWarningLabel">
<CodeVariable name="membersWarningLabel" type="8194" declaredType="javax.swing.JLabel"/>
<ExpressionOrigin>
<ExpressionProvider type="ComponentRef">
<ComponentRef name="membersWarningLabel"/>
</ExpressionProvider>
</ExpressionOrigin>
</CodeExpression>
<CodeExpression id="363_gridBagConstraints"/>
</Parameters>
</CodeStatement>
</LayoutCode>
</Container>
</SubComponents>
Expand Down
14 changes: 14 additions & 0 deletions GO_Sync/src/main/java/edu/usf/cutr/go_sync/gui/ReportViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public void run() {
private org.jdesktop.swingx.JXMapKit mapJXMapKit;
private javax.swing.JTable memberTable;
private javax.swing.ButtonGroup membersButtonGroup;
private javax.swing.JLabel membersWarningLabel;
private javax.swing.JRadioButton newNoMatchStopsRadioButton;
private javax.swing.JRadioButton newRoutesRadioButton;
private javax.swing.JRadioButton newWithMatchStopsRadioButton;
Expand Down Expand Up @@ -1814,6 +1815,7 @@ public String getToolTipText(MouseEvent e) {
saveChangeRouteButton = new javax.swing.JButton();
jLabel20 = new javax.swing.JLabel();
osmRoutesComboBox = new javax.swing.JComboBox(osmRoutes);
membersWarningLabel = new javax.swing.JLabel();
dummyUploadButton = new javax.swing.JButton();
uploadDataButton = new javax.swing.JButton();
stopsCheckbox = new javax.swing.JCheckBox();
Expand Down Expand Up @@ -2645,6 +2647,18 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 5);
busRoutePanel.add(osmRoutesComboBox, gridBagConstraints);

membersWarningLabel.setForeground(java.awt.Color.magenta);
membersWarningLabel.setText("For members correctness, required GTFS stops must be present in OSM prior to using this feature.");
membersWarningLabel.setToolTipText("");
membersWarningLabel.setName("membersWarningLabel"); // NOI18N
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 7;
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
busRoutePanel.add(membersWarningLabel, gridBagConstraints);

jTabbedPane1.addTab("Bus Route", busRoutePanel);

dummyUploadButton.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
Expand Down

0 comments on commit 6547fba

Please sign in to comment.