- Timestamp:
- 10/24/2017 04:21:44 PM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 2 edited
-
IncidentEditorFrame.form (modified) (1 diff)
-
IncidentEditorFrame.java (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/IncidentEditorFrame.form
r124 r135 1346 1346 <Component class="javax.swing.JButton" name="btnAddTime"> 1347 1347 <Properties> 1348 <Property name="text" type="java.lang.String" value="+15 :00"/>1348 <Property name="text" type="java.lang.String" value="+15"/> 1349 1349 </Properties> 1350 1350 <Events> -
trunk/src/scriptbuilder/gui/IncidentEditorFrame.java
r124 r135 406 406 @SuppressWarnings("unchecked") 407 407 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 408 private void initComponents() { 408 private void initComponents() 409 { 409 410 410 411 eventPopupMenu = new javax.swing.JPopupMenu(); … … 491 492 492 493 cadEvent.setText("CAD Event"); 493 cadEvent.addMouseListener(new java.awt.event.MouseAdapter() { 494 public void mousePressed(java.awt.event.MouseEvent evt) { 494 cadEvent.addMouseListener(new java.awt.event.MouseAdapter() 495 { 496 public void mousePressed(java.awt.event.MouseEvent evt) 497 { 495 498 cadEventMousePressed(evt); 496 499 } 497 public void mouseReleased(java.awt.event.MouseEvent evt) { 500 public void mouseReleased(java.awt.event.MouseEvent evt) 501 { 498 502 cadEventMouseReleased(evt); 499 503 } … … 505 509 506 510 radioEvent.setText("Radio Event"); 507 radioEvent.addMouseListener(new java.awt.event.MouseAdapter() { 508 public void mousePressed(java.awt.event.MouseEvent evt) { 511 radioEvent.addMouseListener(new java.awt.event.MouseAdapter() 512 { 513 public void mousePressed(java.awt.event.MouseEvent evt) 514 { 509 515 radioEventMousePressed(evt); 510 516 } … … 560 566 561 567 okButton.setText("OK"); 562 okButton.addActionListener(new java.awt.event.ActionListener() { 563 public void actionPerformed(java.awt.event.ActionEvent evt) { 568 okButton.addActionListener(new java.awt.event.ActionListener() 569 { 570 public void actionPerformed(java.awt.event.ActionEvent evt) 571 { 564 572 okButtonActionPerformed(evt); 565 573 } … … 567 575 568 576 cancelButton.setText("Cancel"); 569 cancelButton.addActionListener(new java.awt.event.ActionListener() { 570 public void actionPerformed(java.awt.event.ActionEvent evt) { 577 cancelButton.addActionListener(new java.awt.event.ActionListener() 578 { 579 public void actionPerformed(java.awt.event.ActionEvent evt) 580 { 571 581 cancelButtonActionPerformed(evt); 572 582 } … … 611 621 612 622 editEventList.setText("Edit..."); 613 editEventList.addActionListener(new java.awt.event.ActionListener() { 614 public void actionPerformed(java.awt.event.ActionEvent evt) { 623 editEventList.addActionListener(new java.awt.event.ActionListener() 624 { 625 public void actionPerformed(java.awt.event.ActionEvent evt) 626 { 615 627 editEventListActionPerformed(evt); 616 628 } … … 654 666 655 667 btnCancelNoise.setText("Cancel"); 656 btnCancelNoise.addActionListener(new java.awt.event.ActionListener() { 657 public void actionPerformed(java.awt.event.ActionEvent evt) { 668 btnCancelNoise.addActionListener(new java.awt.event.ActionListener() 669 { 670 public void actionPerformed(java.awt.event.ActionEvent evt) 671 { 658 672 btnCancelNoiseActionPerformed(evt); 659 673 } … … 661 675 662 676 btnGenerateNoise.setText("Generate"); 663 btnGenerateNoise.addActionListener(new java.awt.event.ActionListener() { 664 public void actionPerformed(java.awt.event.ActionEvent evt) { 677 btnGenerateNoise.addActionListener(new java.awt.event.ActionListener() 678 { 679 public void actionPerformed(java.awt.event.ActionEvent evt) 680 { 665 681 btnGenerateNoiseActionPerformed(evt); 666 682 } … … 837 853 zoomSlider.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); 838 854 zoomSlider.setFocusable(false); 839 zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() { 840 public void stateChanged(javax.swing.event.ChangeEvent evt) { 855 zoomSlider.addChangeListener(new javax.swing.event.ChangeListener() 856 { 857 public void stateChanged(javax.swing.event.ChangeEvent evt) 858 { 841 859 zoomSliderStateChanged(evt); 842 860 } … … 917 935 maintenanceRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 918 936 maintenanceRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 919 maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() { 920 public void actionPerformed(java.awt.event.ActionEvent evt) { 937 maintenanceRadioButton.addActionListener(new java.awt.event.ActionListener() 938 { 939 public void actionPerformed(java.awt.event.ActionEvent evt) 940 { 921 941 maintenanceRadioButtonActionPerformed(evt); 922 942 } … … 929 949 tmtRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 930 950 tmtRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 931 tmtRadioButton.addActionListener(new java.awt.event.ActionListener() { 932 public void actionPerformed(java.awt.event.ActionEvent evt) { 951 tmtRadioButton.addActionListener(new java.awt.event.ActionListener() 952 { 953 public void actionPerformed(java.awt.event.ActionEvent evt) 954 { 933 955 tmtRadioButtonActionPerformed(evt); 934 956 } … … 941 963 telephoneButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 942 964 telephoneButton.setPreferredSize(new java.awt.Dimension(30, 25)); 943 telephoneButton.addActionListener(new java.awt.event.ActionListener() { 944 public void actionPerformed(java.awt.event.ActionEvent evt) { 965 telephoneButton.addActionListener(new java.awt.event.ActionListener() 966 { 967 public void actionPerformed(java.awt.event.ActionEvent evt) 968 { 945 969 telephoneButtonActionPerformed(evt); 946 970 } … … 953 977 unitButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 954 978 unitButton.setPreferredSize(new java.awt.Dimension(30, 25)); 955 unitButton.addActionListener(new java.awt.event.ActionListener() { 956 public void actionPerformed(java.awt.event.ActionEvent evt) { 979 unitButton.addActionListener(new java.awt.event.ActionListener() 980 { 981 public void actionPerformed(java.awt.event.ActionEvent evt) 982 { 957 983 unitButtonActionPerformed(evt); 958 984 } … … 965 991 witnessButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 966 992 witnessButton.setPreferredSize(new java.awt.Dimension(30, 25)); 967 witnessButton.addActionListener(new java.awt.event.ActionListener() { 968 public void actionPerformed(java.awt.event.ActionEvent evt) { 993 witnessButton.addActionListener(new java.awt.event.ActionListener() 994 { 995 public void actionPerformed(java.awt.event.ActionEvent evt) 996 { 969 997 witnessButtonActionPerformed(evt); 970 998 } … … 977 1005 paramicsButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 978 1006 paramicsButton.setPreferredSize(new java.awt.Dimension(30, 25)); 979 paramicsButton.addActionListener(new java.awt.event.ActionListener() { 980 public void actionPerformed(java.awt.event.ActionEvent evt) { 1007 paramicsButton.addActionListener(new java.awt.event.ActionListener() 1008 { 1009 public void actionPerformed(java.awt.event.ActionEvent evt) 1010 { 981 1011 paramicsButtonActionPerformed(evt); 982 1012 } … … 989 1019 towButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 990 1020 towButton.setPreferredSize(new java.awt.Dimension(30, 25)); 991 towButton.addActionListener(new java.awt.event.ActionListener() { 992 public void actionPerformed(java.awt.event.ActionEvent evt) { 1021 towButton.addActionListener(new java.awt.event.ActionListener() 1022 { 1023 public void actionPerformed(java.awt.event.ActionEvent evt) 1024 { 993 1025 towButtonActionPerformed(evt); 994 1026 } … … 1001 1033 audioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1002 1034 audioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1003 audioButton.addActionListener(new java.awt.event.ActionListener() { 1004 public void actionPerformed(java.awt.event.ActionEvent evt) { 1035 audioButton.addActionListener(new java.awt.event.ActionListener() 1036 { 1037 public void actionPerformed(java.awt.event.ActionEvent evt) 1038 { 1005 1039 audioButtonActionPerformed(evt); 1006 1040 } … … 1013 1047 cctvButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1014 1048 cctvButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1015 cctvButton.addActionListener(new java.awt.event.ActionListener() { 1016 public void actionPerformed(java.awt.event.ActionEvent evt) { 1049 cctvButton.addActionListener(new java.awt.event.ActionListener() 1050 { 1051 public void actionPerformed(java.awt.event.ActionEvent evt) 1052 { 1017 1053 cctvButtonActionPerformed(evt); 1018 1054 } … … 1025 1061 cadButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1026 1062 cadButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1027 cadButton.addActionListener(new java.awt.event.ActionListener() { 1028 public void actionPerformed(java.awt.event.ActionEvent evt) { 1063 cadButton.addActionListener(new java.awt.event.ActionListener() 1064 { 1065 public void actionPerformed(java.awt.event.ActionEvent evt) 1066 { 1029 1067 cadButtonActionPerformed(evt); 1030 1068 } … … 1037 1075 chpRadioButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1038 1076 chpRadioButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1039 chpRadioButton.addActionListener(new java.awt.event.ActionListener() { 1040 public void actionPerformed(java.awt.event.ActionEvent evt) { 1077 chpRadioButton.addActionListener(new java.awt.event.ActionListener() 1078 { 1079 public void actionPerformed(java.awt.event.ActionEvent evt) 1080 { 1041 1081 chpRadioButtonActionPerformed(evt); 1042 1082 } … … 1107 1147 atmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1108 1148 atmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1109 atmsEvalButton.addActionListener(new java.awt.event.ActionListener() { 1110 public void actionPerformed(java.awt.event.ActionEvent evt) { 1149 atmsEvalButton.addActionListener(new java.awt.event.ActionListener() 1150 { 1151 public void actionPerformed(java.awt.event.ActionEvent evt) 1152 { 1111 1153 atmsEvalButtonActionPerformed(evt); 1112 1154 } … … 1119 1161 cmsEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1120 1162 cmsEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1121 cmsEvalButton.addActionListener(new java.awt.event.ActionListener() { 1122 public void actionPerformed(java.awt.event.ActionEvent evt) { 1163 cmsEvalButton.addActionListener(new java.awt.event.ActionListener() 1164 { 1165 public void actionPerformed(java.awt.event.ActionEvent evt) 1166 { 1123 1167 cmsEvalButtonActionPerformed(evt); 1124 1168 } … … 1131 1175 cadEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1132 1176 cadEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1133 cadEvalButton.addActionListener(new java.awt.event.ActionListener() { 1134 public void actionPerformed(java.awt.event.ActionEvent evt) { 1177 cadEvalButton.addActionListener(new java.awt.event.ActionListener() 1178 { 1179 public void actionPerformed(java.awt.event.ActionEvent evt) 1180 { 1135 1181 cadEvalButtonActionPerformed(evt); 1136 1182 } … … 1143 1189 facilitatorEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1144 1190 facilitatorEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1145 facilitatorEvalButton.addActionListener(new java.awt.event.ActionListener() { 1146 public void actionPerformed(java.awt.event.ActionEvent evt) { 1191 facilitatorEvalButton.addActionListener(new java.awt.event.ActionListener() 1192 { 1193 public void actionPerformed(java.awt.event.ActionEvent evt) 1194 { 1147 1195 facilitatorEvalButtonActionPerformed(evt); 1148 1196 } … … 1155 1203 activityLogEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1156 1204 activityLogEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1157 activityLogEvalButton.addActionListener(new java.awt.event.ActionListener() { 1158 public void actionPerformed(java.awt.event.ActionEvent evt) { 1205 activityLogEvalButton.addActionListener(new java.awt.event.ActionListener() 1206 { 1207 public void actionPerformed(java.awt.event.ActionEvent evt) 1208 { 1159 1209 activityLogEvalButtonActionPerformed(evt); 1160 1210 } … … 1167 1217 radioEvalButton.setMargin(new java.awt.Insets(2, 10, 2, 10)); 1168 1218 radioEvalButton.setPreferredSize(new java.awt.Dimension(30, 25)); 1169 radioEvalButton.addActionListener(new java.awt.event.ActionListener() { 1170 public void actionPerformed(java.awt.event.ActionEvent evt) { 1219 radioEvalButton.addActionListener(new java.awt.event.ActionListener() 1220 { 1221 public void actionPerformed(java.awt.event.ActionEvent evt) 1222 { 1171 1223 radioEvalButtonActionPerformed(evt); 1172 1224 } … … 1212 1264 zoomInIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomIn.png"))); // NOI18N 1213 1265 zoomInIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 1214 zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() { 1215 public void mouseClicked(java.awt.event.MouseEvent evt) { 1266 zoomInIcon.addMouseListener(new java.awt.event.MouseAdapter() 1267 { 1268 public void mouseClicked(java.awt.event.MouseEvent evt) 1269 { 1216 1270 zoomInIconMouseClicked(evt); 1217 1271 } … … 1220 1274 zoomOutIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/ZoomOut.png"))); // NOI18N 1221 1275 zoomOutIcon.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); 1222 zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() { 1223 public void mouseClicked(java.awt.event.MouseEvent evt) { 1276 zoomOutIcon.addMouseListener(new java.awt.event.MouseAdapter() 1277 { 1278 public void mouseClicked(java.awt.event.MouseEvent evt) 1279 { 1224 1280 zoomOutIconMouseClicked(evt); 1225 1281 } … … 1260 1316 timeStampScrollPane1.setViewportView(relativeTimeStampPanel); 1261 1317 1262 btnAddTime.setText("+15:00"); 1263 btnAddTime.addActionListener(new java.awt.event.ActionListener() { 1264 public void actionPerformed(java.awt.event.ActionEvent evt) { 1318 btnAddTime.setText("+15"); 1319 btnAddTime.addActionListener(new java.awt.event.ActionListener() 1320 { 1321 public void actionPerformed(java.awt.event.ActionEvent evt) 1322 { 1265 1323 btnAddTimeActionPerformed(evt); 1266 1324 } … … 1268 1326 1269 1327 btnToggleTimeStart.setText("to Start"); 1270 btnToggleTimeStart.addActionListener(new java.awt.event.ActionListener() { 1271 public void actionPerformed(java.awt.event.ActionEvent evt) { 1328 btnToggleTimeStart.addActionListener(new java.awt.event.ActionListener() 1329 { 1330 public void actionPerformed(java.awt.event.ActionEvent evt) 1331 { 1272 1332 btnToggleTimeStartActionPerformed(evt); 1273 1333 } … … 1276 1336 btnToggleTimeEnd.setSelected(true); 1277 1337 btnToggleTimeEnd.setText("to End"); 1278 btnToggleTimeEnd.addActionListener(new java.awt.event.ActionListener() { 1279 public void actionPerformed(java.awt.event.ActionEvent evt) { 1338 btnToggleTimeEnd.addActionListener(new java.awt.event.ActionListener() 1339 { 1340 public void actionPerformed(java.awt.event.ActionEvent evt) 1341 { 1280 1342 btnToggleTimeEndActionPerformed(evt); 1281 1343 }
Note: See TracChangeset
for help on using the changeset viewer.
