org.jivesoftware
Interface MainWindowListener

All Known Implementing Classes:
Notifications, PluginManager

public interface MainWindowListener

The MainWindowListener interface is one of the interfaces extension writers use to add functionality to Spark.

In general, you implement this interface in order to listen for Window events that could otherwise not be listened to by attaching to the MainWindow due to security restrictions.


Method Summary
 void mainWindowActivated()
          Invoked by the MainWindow when it has been activated, such as when it is coming out of a minimized state.
 void mainWindowDeactivated()
          Invoked by the MainWindow when it has been minimized in the toolbar.
 void shutdown()
          Invoked by the MainWindow when it is about the shutdown.
 

Method Detail

shutdown

void shutdown()
Invoked by the MainWindow when it is about the shutdown. When invoked, the MainWindowListener should do anything necessary to persist their current state. MainWindowListeners authors should take care to ensure that any extraneous processing is not performed on this method, as it would cause a delay in the shutdown process.

See Also:
MainWindow

mainWindowActivated

void mainWindowActivated()
Invoked by the MainWindow when it has been activated, such as when it is coming out of a minimized state. When invoked, the MainWindowListener should do anything necessary to smoothly transition back to the application.

See Also:
MainWindow

mainWindowDeactivated

void mainWindowDeactivated()
Invoked by the MainWindow when it has been minimized in the toolbar.

See Also:
MainWindow