Ignore:
Timestamp:
11/01/2017 12:31:34 PM (9 years ago)
Author:
jdalbey
Message:

TrafficModelManager?.java Refactor to use Observable, along with the view. Add Reload button functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/managers/TrafficModelViewer.form

    r188 r206  
    5656          <Group type="103" groupAlignment="0" attributes="0"> 
    5757              <Group type="102" attributes="0"> 
    58                   <Group type="103" groupAlignment="0" attributes="0"> 
    59                       <Group type="102" attributes="0"> 
    60                           <EmptySpace min="-2" pref="112" max="-2" attributes="0"/> 
    61                           <Component id="txtClockTime" min="-2" pref="225" max="-2" attributes="0"/> 
    62                       </Group> 
    63                       <Group type="102" alignment="0" attributes="0"> 
    64                           <EmptySpace max="-2" attributes="0"/> 
    65                           <Component id="scrollEvents" min="-2" pref="430" max="-2" attributes="0"/> 
    66                       </Group> 
    67                   </Group> 
     58                  <EmptySpace max="-2" attributes="0"/> 
     59                  <Component id="scrollEvents" min="-2" pref="430" max="-2" attributes="0"/> 
    6860                  <EmptySpace pref="20" max="32767" attributes="0"/> 
     61              </Group> 
     62              <Group type="102" alignment="0" attributes="0"> 
     63                  <EmptySpace min="-2" pref="112" max="-2" attributes="0"/> 
     64                  <Component id="txtClockTime" min="-2" pref="225" max="-2" attributes="0"/> 
     65                  <EmptySpace max="32767" attributes="0"/> 
     66                  <Component id="btnReload" min="-2" max="-2" attributes="0"/> 
     67                  <EmptySpace min="-2" pref="32" max="-2" attributes="0"/> 
    6968              </Group> 
    7069          </Group> 
     
    7372          <Group type="103" groupAlignment="0" attributes="0"> 
    7473              <Group type="102" alignment="1" attributes="0"> 
    75                   <Component id="txtClockTime" min="-2" pref="28" max="-2" attributes="0"/> 
     74                  <Group type="103" groupAlignment="3" attributes="0"> 
     75                      <Component id="txtClockTime" alignment="3" min="-2" pref="28" max="-2" attributes="0"/> 
     76                      <Component id="btnReload" alignment="3" min="-2" max="-2" attributes="0"/> 
     77                  </Group> 
    7678                  <EmptySpace max="-2" attributes="0"/> 
    7779                  <Component id="scrollEvents" pref="172" max="32767" attributes="0"/> 
     
    114116            <Property name="text" type="java.lang.String" value="0:00:00"/> 
    115117          </Properties> 
     118        </Component> 
     119        <Component class="javax.swing.JButton" name="btnReload"> 
     120          <Properties> 
     121            <Property name="text" type="java.lang.String" value="Reload"/> 
     122          </Properties> 
     123          <Events> 
     124            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnReloadActionPerformed"/> 
     125          </Events> 
    116126        </Component> 
    117127      </SubComponents> 
Note: See TracChangeset for help on using the changeset viewer.