001 package nl.cwi.sen1.visplugin; 002 003 import nl.cwi.sen1.gui.CloseAbortedException; 004 import nl.cwi.sen1.gui.StatusMessageEvent; 005 import nl.cwi.sen1.gui.component.StudioComponent; 006 import nl.cwi.sen1.gui.component.StudioComponentListener; 007 008 public class VisualizationWindowListener implements StudioComponentListener { 009 VisualizationPluginWindow m_window; 010 StudioComponent m_component; 011 012 public VisualizationWindowListener(VisualizationPluginWindow window, 013 StudioComponent component) { 014 m_window = window; 015 m_component = component; 016 } 017 018 /** 019 * Disconnects a component from the Meta-Environment when its panel is 020 * closed. 021 * 022 * @author Arend van Beelen 023 * @author Anton Gerdesse 024 * @date 19-03-2007 025 */ 026 public void componentClose() { 027 m_window.disconnectComponent(m_component); 028 } 029 030 public void componentFocusReceived() { 031 m_window.createExtensionMenu(); 032 } 033 034 public void componentRequestClose() throws CloseAbortedException { 035 } 036 037 public void statusMessageChanged(StatusMessageEvent event) { 038 } 039 }