KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > gui > PookaUIFactory


1 package net.suberic.pooka.gui;
2 import net.suberic.util.swing.ProgressDialog;
3 import net.suberic.util.gui.ConfigurableToolbar;
4 import net.suberic.util.gui.IconManager;
5
6 public interface PookaUIFactory extends ErrorHandler {
7
8   /**
9    * Returns the PookaThemeManager for fonts and colors.
10    */

11   public net.suberic.util.swing.ThemeManager getPookaThemeManager();
12
13   /**
14    * Creates an appropriate MessageUI object for the given MessageProxy.
15    */

16   public MessageUI createMessageUI(MessageProxy mp) throws javax.mail.MessagingException JavaDoc;
17
18   /**
19    * Creates an appropriate MessageUI object for the given MessageProxy,
20    * using the provided MessageUI as a guideline.
21    */

22   public MessageUI createMessageUI(MessageProxy mp, MessageUI mui) throws javax.mail.MessagingException JavaDoc;
23
24   /**
25    * Opens the given MessageProxy in the default manner for this UI.
26    * Usually this will just be callen createMessageUI() and openMessageUI()
27    * on it. However, in some cases (Preview Panel without auto display)
28    * it may be necessary to act differently.
29    */

30   public void doDefaultOpen(MessageProxy mp);
31
32   /**
33    * Creates an appropriate FolderDisplayUI object for the given
34    * FolderInfo.
35    */

36   public FolderDisplayUI createFolderDisplayUI(net.suberic.pooka.FolderInfo fi);
37
38   /**
39    * Creates a ContentPanel which will be used to show messages and folders.
40    */

41   public ContentPanel createContentPanel();
42
43   /**
44    * Creates a Toolbar for the MainPanel.
45    */

46   public ConfigurableToolbar createMainToolbar();
47
48   /**
49    * Creates a Toolbar for the FolderPanel.
50    */

51   public ConfigurableToolbar createFolderPanelToolbar();
52
53   /**
54    * Shows an Editor Window with the given title, which allows the user
55    * to edit the given property.
56    */

57   public void showEditorWindow(String JavaDoc title, String JavaDoc property);
58
59   /**
60    * Shows an Editor Window with the given title, which allows the user
61    * to edit the given property, which is in turn defined by the
62    * given template.
63    */

64   public void showEditorWindow(String JavaDoc title, String JavaDoc property, String JavaDoc template);
65
66   /**
67    * Returns the PropertyEditorFactory used by this component.
68    */

69   public net.suberic.util.gui.propedit.PropertyEditorFactory getEditorFactory();
70   /**
71    * Sets the PropertyEditorFactory used by this component.
72    */

73   public void setEditorFactory(net.suberic.util.gui.propedit.PropertyEditorFactory pEditorFactory);
74
75   /**
76    * Shows a Confirm dialog.
77    */

78   public int showConfirmDialog(String JavaDoc message, String JavaDoc title, int type);
79
80   /**
81    * Shows a Confirm dialog with the given Object[] as the Message.
82    */

83   public int showConfirmDialog(Object JavaDoc[] messageComponents, String JavaDoc title, int type);
84
85   /**
86    * This shows an Input window.
87    */

88   public String JavaDoc showInputDialog(String JavaDoc inputMessage, String JavaDoc title);
89
90   /**
91    * Shows an Input window.
92    */

93   public String JavaDoc showInputDialog(Object JavaDoc[] inputPanels, String JavaDoc title);
94
95   /**
96    * Shows a status message.
97    */

98   public void showStatusMessage(String JavaDoc newMessage);
99
100   /**
101    * Shows a message.
102    */

103   public void showMessage(String JavaDoc newMessage, String JavaDoc title);
104
105   /**
106    * Creates a ProgressDialog using the given values.
107    */

108   public ProgressDialog createProgressDialog(int min, int max, int initialValue, String JavaDoc title, String JavaDoc content);
109
110   /**
111    * Clears the main status message panel.
112    */

113   public void clearStatus();
114
115   /**
116    * Shows a SearchForm with the given FolderInfos selected from the list
117    * of the given allowedValues.
118    */

119   public void showSearchForm(net.suberic.pooka.FolderInfo[] selectedFolders, java.util.Vector JavaDoc allowedValues);
120
121   /**
122    * Shows a SearchForm with the given FolderInfos selected. The allowed
123    * values will be the list of all available Folders.
124    */

125   public void showSearchForm(net.suberic.pooka.FolderInfo[] selectedFolders);
126
127   /**
128    * This tells the factory whether or not its ui components are showing
129    * yet or not.
130    */

131   public void setShowing(boolean newValue);
132
133   /**
134    * Gets the current MessageNotificationManager.
135    */

136   public MessageNotificationManager getMessageNotificationManager();
137
138   /**
139    * Gets the IconManager for this UI.
140    */

141   public net.suberic.util.gui.IconManager getIconManager();
142
143   /**
144    * Sets the IconManager for this UI.
145    */

146   public void setIconManager(net.suberic.util.gui.IconManager pIconManager);
147
148
149 }
150
Popular Tags