sub_arctic.input
Interface window_notifiable

All Known Implementing Classes:
frame_test

public abstract interface window_notifiable
extends focusable

This interface is used by clients that wish to become aware of window events such as windows opening, closing, or becoming iconified. Because this interface is derived from focusable, if you implement this interface and are not an interactor, you'll need to implement the focus set calls in the interface focusable. If you are an interactor, base_interactor defines these for you. They can safely be ignored (which is the default implementation in base_interactor).

All of these calls will reference window objects, the AWT Window objects. You will need to respond to them using the appropriate AWT calls. For example, when you receive the window_closing() call, you will need to hide (or destroy) the window for you to receive the window_closed() call. To hide or destroy the window, you'll need to use AWT calls, not sub_arctic calls; put another way, you will need to operate on the sub_arctic.lib.interactor_frame, not the sub_arctic.lib.top_level contained within it.

Authors should be aware that this agent may have multiple members of its focus set and all are notified of window activities. This is independent of whether or not a particular window_notifiable handled an event.


Method Summary
 boolean window_activated(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_closed(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_closing(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_deactivated(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_deiconified(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_iconified(event evt, java.awt.Window w, java.lang.Object user_info)
           
 boolean window_opened(event evt, java.awt.Window w, java.lang.Object user_info)
           
 
Methods inherited from interface sub_arctic.input.focusable
focus_set_enter, focus_set_exit
 

Method Detail

window_opened

public boolean window_opened(event evt,
                             java.awt.Window w,
                             java.lang.Object user_info)

window_closing

public boolean window_closing(event evt,
                              java.awt.Window w,
                              java.lang.Object user_info)

window_closed

public boolean window_closed(event evt,
                             java.awt.Window w,
                             java.lang.Object user_info)

window_iconified

public boolean window_iconified(event evt,
                                java.awt.Window w,
                                java.lang.Object user_info)

window_deiconified

public boolean window_deiconified(event evt,
                                  java.awt.Window w,
                                  java.lang.Object user_info)

window_activated

public boolean window_activated(event evt,
                                java.awt.Window w,
                                java.lang.Object user_info)

window_deactivated

public boolean window_deactivated(event evt,
                                  java.awt.Window w,
                                  java.lang.Object user_info)