1 package siouxsie.mvc; 2 3 4 5 import java.util.Collection; 6 7 import javax.swing.JComponent; 8 9 import com.opensymphony.xwork2.ActionInvocation; 10 11 /** 12 * Handle the screen "installation" in the UI (ex.: creation and layout). 13 * Usually defined as a dependancy in the 14 * XW container and used by an appropriate result. 15 * @author Arnaud Cogoluegnes 16 * @version $Id$ 17 */ 18 public interface IScreenHandler { 19 20 /** 21 * The UI component where screen are installed. 22 * @return 23 */ 24 public JComponent getComponent(); 25 26 /** 27 * Screen installation. 28 * @param invocation 29 */ 30 public void displayScreen(ActionInvocation invocation); 31 32 /** 33 * Display action messages in the current screen. 34 * @param messages 35 */ 36 public void displayMessages(Collection<Message> messages); 37 38 }