1 package siouxsie.desktop; 2 3 import javax.swing.JComponent; 4 5 /** 6 * Status bar interface 7 * @author Arnaud Cogoluegnes 8 * @version $Id$ 9 */ 10 public interface IStatusBar { 11 12 /** 13 * The component 14 * @return 15 */ 16 public JComponent getComponent(); 17 18 /** 19 * Message (usually on the left) 20 * @param msg 21 */ 22 public void setLeadingMessage(String msg); 23 24 /** 25 * Message (usually beside the progress bar) 26 * @param msg 27 */ 28 public void setTrailingMessage(String msg); 29 30 /** 31 * Notice a process has started. 32 * @param indeterminate the process state cannot be followed 33 */ 34 public void processStarted(boolean indeterminate); 35 36 /** 37 * Notice the process has ended. 38 * 39 */ 40 public void processEnded(); 41 42 /** 43 * Notice the process evolution (out of 100) 44 * @param progress 45 */ 46 public void setProgress(int progress); 47 48 49 }