Warning: Can't use blame annotator:
svn blame failed on trunk/src/event/editor/I_ScriptEventEditorPanel.java: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator-scriptbuilder/trunk/src/event/editor/I_ScriptEventEditorPanel.java @ 130

Revision 130, 834 bytes checked in by bmcguffin, 9 years ago (diff)

Changed implementation of save function for event editor panels. Instead of updating their model objects whenever the enter key is pressed, panels are now notified when the window is closed and update their information then.

RevLine 
1/*
2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
5 */
6package event.editor;
7
8import java.util.Observer;
9import scriptbuilder.structures.events.I_ScriptEvent;
10
11/**
12 *
13 * @author Bryan McGuffin
14 */
15public interface I_ScriptEventEditorPanel extends Observer
16{
17
18    /**
19     * Load the script event associated with this editor panel.
20     *
21     * @param sei The script event in question
22     */
23    void getEventObject(I_ScriptEvent sei);
24   
25    /**
26     * Remove the event associated with this panel.
27     *
28     * @return true if the event was successfully deleted.
29     */
30    boolean removeAssociatedEvent();
31   
32    /**
33     * Action to take when the panel closes.
34     */
35    void uponClose();
36}
Note: See TracBrowser for help on using the repository browser.