Changeset 180 in tmcsimulator-scriptbuilder for trunk/src/event/editor/frame/PropertyPanels.java


Ignore:
Timestamp:
12/23/2019 08:57:26 AM (6 years ago)
Author:
sdanthin
Message:

PropertyPanels?.java added a function to get properties from a certain jPanel.
Editor.java used above function to auto-close the editor window when it has no more events contained.
AudioPanel?.java modified to NOT allow audioEvents in the Event Editor to be deleted.

File:
1 edited

Legend:

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

    r119 r180  
    198198        return removed; 
    199199    } 
     200    /** 
     201     * returns a corresponding PropertyPanel from a jPanel 
     202     * @param jPanel 
     203     * @return  
     204     */ 
     205    public PropertyPanel getProperty(JPanel jPanel) 
     206    { 
     207        PropertyPanel returnable = null; 
     208 
     209        for (PropertyPanel panel : properties) 
     210        { 
     211            if (panel.getPanel() == jPanel) 
     212            { 
     213                returnable = panel; 
     214            } 
     215        } 
     216        return returnable; 
     217    } 
    200218 
    201219    public PropertyPanel removeProperty(String title) 
Note: See TracChangeset for help on using the changeset viewer.