Changeset 101 in tmcsimulator-scriptbuilder for trunk/src/event/editor/frame/PropertyModel.java


Ignore:
Timestamp:
08/30/2017 10:05:35 AM (9 years ago)
Author:
bmcguffin
Message:

Added text field, txtEventStart, to bottom of event editor screen. This text field by default displays the time that the event starts. Altering this field will change the start time of the selected event to the new value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/event/editor/frame/PropertyModel.java

    r94 r101  
    1818import java.awt.event.ActionListener; 
    1919import java.util.EnumMap; 
     20import java.util.HashMap; 
    2021import java.util.Observable; 
    2122import java.util.Observer; 
     23import java.util.TreeMap; 
    2224import javax.swing.JPanel; 
    2325import scriptbuilder.structures.events.I_ScriptEvent; 
     
    3436    private EnumMap<Properties, Class> classMap 
    3537            = new EnumMap<Properties, Class>(Properties.class); 
     38     
     39    public HashMap<JPanel, I_ScriptEvent> eventMap = new HashMap<JPanel, I_ScriptEvent>(); 
    3640 
    3741    public PropertyModel() 
     
    6064    } 
    6165 
    62     public void addProperty(Properties property, I_ScriptEvent se) 
     66    public void addEventPanel(Properties property, I_ScriptEvent se) 
    6367    { 
    6468        try 
     
    6973            if (panel instanceof I_ScriptEventEditorPanel) 
    7074            { 
     75                eventMap.put(panel, se); 
    7176                ((I_ScriptEventEditorPanel) panel).getEventObject(se); 
    7277            } 
Note: See TracChangeset for help on using the changeset viewer.