1 /**
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation;
5 */
6
7 package net.curre.prefcount.gui.menu;
8
9 /**
10 * This is interface for the prefcount menu bar.
11 * <p/>
12 * Created date: Jul 28, 2007
13 *
14 * @author Yevgeny Nyden
15 */
16 public interface PrefCountMenuBar {
17
18 /** Enumeration that represents type of a PrefCountMenuBar. */
19 static enum MenuBarType {
20
21 MAIN_WINDOW, PLAYER_DIALOG
22 }
23
24 /** Resets menu language icon. */
25 void refreshLanguageIcon();
26
27 /**
28 * Enables/disables the next menu item on the action menu.
29 *
30 * @param enabled True when the menu item should be enabled; false if disabled.
31 * @throws UnsupportedOperationException If action menu does not exist.
32 */
33 void toggleNextAction(boolean enabled);
34
35 /**
36 * Enables/disables the back menu item on the action menu.
37 *
38 * @param enabled True when the menu item should be enabled; false if disabled.
39 * @throws UnsupportedOperationException If action menu does not exist.
40 */
41 void toggleBackAction(boolean enabled);
42
43 /**
44 * Enables/disables the compute menu item on the action menu.
45 *
46 * @param enabled True when the menu item should be enabled; false if disabled.
47 * @throws UnsupportedOperationException If action menu does not exist.
48 */
49 void toggleComputeAction(boolean enabled);
50
51 /**
52 * Sets the selected status of the
53 * dialog frame menu bar menu item.
54 *
55 * @param isSelected true if the item should be selected; false otherwise.
56 */
57 void setDialogFrameItemState(boolean isSelected);
58
59 }