Changeset 457 in tmcsimulator for trunk/src/tmcsim/highwaymodel/trafficeventseditor/TrafficEventsEditor.java
- Timestamp:
- 07/18/2019 08:55:21 AM (7 years ago)
- Location:
- trunk/src/tmcsim/highwaymodel/trafficeventseditor
- Files:
-
- 1 added
- 1 copied
-
. (added)
-
TrafficEventsEditor.java (copied) (copied from trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tmcsim/highwaymodel/trafficeventseditor/TrafficEventsEditor.java
r422 r457 1 package atmsdriver.trafficeventseditor;1 package tmcsim.highwaymodel.trafficeventseditor; 2 2 3 3 import tmcsim.highwaymodel.Highway; … … 340 340 @SuppressWarnings("unchecked") 341 341 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 342 private void initComponents() 343 { 342 private void initComponents() { 344 343 345 344 colorRadioButtons = new javax.swing.ButtonGroup(); … … 409 408 jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Highway")); 410 409 411 HighwayList.setModel(new javax.swing.AbstractListModel() 412 { 410 HighwayList.setModel(new javax.swing.AbstractListModel() { 413 411 String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; 414 412 public int getSize() { return strings.length; } … … 431 429 432 430 StationTable.setModel(new javax.swing.table.DefaultTableModel( 433 new Object [][] 434 { 431 new Object [][] { 435 432 {null, null, null, null}, 436 433 {null, null, null, null}, … … 438 435 {null, null, null, null} 439 436 }, 440 new String [] 441 { 437 new String [] { 442 438 "Title 1", "Title 2", "Title 3", "Title 4" 443 439 } … … 459 455 460 456 LoopDetectorTable.setModel(new javax.swing.table.DefaultTableModel( 461 new Object [][] 462 { 457 new Object [][] { 463 458 {null, null, null, null}, 464 459 {null, null, null, null}, … … 466 461 {null, null, null, null} 467 462 }, 468 new String [] 469 { 463 new String [] { 470 464 "Title 1", "Title 2", "Title 3", "Title 4" 471 465 } … … 632 626 633 627 AddNewEventButton.setText("Add New Event"); 634 AddNewEventButton.addActionListener(new java.awt.event.ActionListener() 635 { 636 public void actionPerformed(java.awt.event.ActionEvent evt) 637 { 628 AddNewEventButton.addActionListener(new java.awt.event.ActionListener() { 629 public void actionPerformed(java.awt.event.ActionEvent evt) { 638 630 AddLaneEventButtonActionPerformed(evt); 639 631 } … … 641 633 642 634 DeleteEventButton.setText("Delete Selected Event"); 643 DeleteEventButton.addActionListener(new java.awt.event.ActionListener() 644 { 645 public void actionPerformed(java.awt.event.ActionEvent evt) 646 { 635 DeleteEventButton.addActionListener(new java.awt.event.ActionListener() { 636 public void actionPerformed(java.awt.event.ActionEvent evt) { 647 637 DeleteEventButtonActonPerformed(evt); 648 638 } … … 690 680 691 681 SinglePreviewStationButton.setText("Send Selected Station Events"); 692 SinglePreviewStationButton.addActionListener(new java.awt.event.ActionListener() 693 { 694 public void actionPerformed(java.awt.event.ActionEvent evt) 695 { 682 SinglePreviewStationButton.addActionListener(new java.awt.event.ActionListener() { 683 public void actionPerformed(java.awt.event.ActionEvent evt) { 696 684 SinglePreviewStationButtonActionPerformed(evt); 697 685 } … … 699 687 700 688 SinglePreviewHighwaysButton.setText("Send All Events"); 701 SinglePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() 702 { 703 public void actionPerformed(java.awt.event.ActionEvent evt) 704 { 689 SinglePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() { 690 public void actionPerformed(java.awt.event.ActionEvent evt) { 705 691 SinglePreviewHighwaysButtonActionPerformed(evt); 706 692 } … … 733 719 734 720 CumulativePreviewStationButton.setText("Send Selected Station Events"); 735 CumulativePreviewStationButton.addActionListener(new java.awt.event.ActionListener() 736 { 737 public void actionPerformed(java.awt.event.ActionEvent evt) 738 { 721 CumulativePreviewStationButton.addActionListener(new java.awt.event.ActionListener() { 722 public void actionPerformed(java.awt.event.ActionEvent evt) { 739 723 CumulativeStationPreviewButtonActionPerformed(evt); 740 724 } … … 742 726 743 727 CumulativePreviewHighwaysButton.setText("Send All Events"); 744 CumulativePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() 745 { 746 public void actionPerformed(java.awt.event.ActionEvent evt) 747 { 728 CumulativePreviewHighwaysButton.addActionListener(new java.awt.event.ActionListener() { 729 public void actionPerformed(java.awt.event.ActionEvent evt) { 748 730 CumulativeHighwaysPreviewButtonActionPerformed(evt); 749 731 } … … 775 757 jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Time Frame")); 776 758 777 TimeFrameList.setModel(new javax.swing.AbstractListModel() 778 { 759 TimeFrameList.setModel(new javax.swing.AbstractListModel() { 779 760 String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; 780 761 public int getSize() { return strings.length; } … … 787 768 AddNewTimeFrameButton.setText("New"); 788 769 AddNewTimeFrameButton.setActionCommand("addTimeFrame"); 789 AddNewTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 790 { 791 public void actionPerformed(java.awt.event.ActionEvent evt) 792 { 770 AddNewTimeFrameButton.addActionListener(new java.awt.event.ActionListener() { 771 public void actionPerformed(java.awt.event.ActionEvent evt) { 793 772 addNewTimeFrameButtonClicked(evt); 794 773 } … … 796 775 797 776 DeleteTimeFrameButton.setText("Delete"); 798 DeleteTimeFrameButton.addActionListener(new java.awt.event.ActionListener() 799 { 800 public void actionPerformed(java.awt.event.ActionEvent evt) 801 { 777 DeleteTimeFrameButton.addActionListener(new java.awt.event.ActionListener() { 778 public void actionPerformed(java.awt.event.ActionEvent evt) { 802 779 DeleteTimeFrameButtonActionPerformed(evt); 803 780 } … … 844 821 845 822 TrafficLaneEventsTable.setModel(new javax.swing.table.DefaultTableModel( 846 new Object [][] 847 { 823 new Object [][] { 848 824 {null, null, null, null}, 849 825 {null, null, null, null}, … … 851 827 {null, null, null, null} 852 828 }, 853 new String [] 854 { 829 new String [] { 855 830 "Title 1", "Title 2", "Title 3", "Title 4" 856 831 } … … 897 872 898 873 btnSave.setText("Save Script"); 899 btnSave.addActionListener(new java.awt.event.ActionListener() 900 { 901 public void actionPerformed(java.awt.event.ActionEvent evt) 902 { 874 btnSave.addActionListener(new java.awt.event.ActionListener() { 875 public void actionPerformed(java.awt.event.ActionEvent evt) { 903 876 btnSaveActionPerformed(evt); 904 877 }
Note: See TracChangeset
for help on using the changeset viewer.
