/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package event.editor;

import java.util.Observer;
import scriptbuilder.structures.events.I_ScriptEvent;

/**
 *
 * @author Bryan McGuffin
 */
public interface I_ScriptEventEditorPanel extends Observer
{

    /**
     * Load the script event associated with this editor panel.
     *
     * @param sei The script event in question
     */
    void getEventObject(I_ScriptEvent sei);
    
    /**
     * Remove the event associated with this panel.
     * 
     * @return true if the event was successfully deleted.
     */
    boolean removeAssociatedEvent();
    
    /**
     * Action to take when the panel closes.
     */
    void uponClose();
}
