1 package org.columba.api.gui.frame; 19 20 import java.io.InputStream ; 21 22 import javax.swing.JComponent ; 23 import javax.swing.JFrame ; 24 import javax.swing.JMenuBar ; 25 import javax.swing.JPanel ; 26 import javax.swing.JToolBar ; 27 28 import org.columba.api.statusbar.IStatusBar; 29 30 42 public interface IContainer { 43 44 47 public static final String MAIN_TOOLBAR = "main"; 48 49 55 void setFrameMediator(IFrameMediator m); 56 57 65 void switchFrameMediator(IFrameMediator m); 66 67 72 IFrameMediator getFrameMediator(); 73 74 79 public IStatusBar getStatusBar(); 80 81 89 public void enableToolBar(String id, boolean enable); 90 91 98 public boolean isToolBarEnabled(String id); 99 100 107 public void addToolBar(JComponent c); 108 109 115 void setToolBar(JToolBar toolbar); 116 117 120 JToolBar getToolBar(); 121 122 127 public void close(); 128 129 136 void setContentPane(JPanel view); 137 138 145 JFrame getFrame(); 146 147 157 163 JMenuBar getJMenuBar(); 164 165 171 void setJMenuBar(JMenuBar menuBar); 172 173 181 void extendMenu(IFrameMediator mediator, InputStream is); 182 183 191 void extendToolbar(IFrameMediator mediator, InputStream is); 192 193 198 void setWindowName(String name); 199 200 207 void setCloseOperation(boolean close); 208 209 } | Popular Tags |