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 Zhenya 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 /** Disables the action menu. */
25 void disableActionMenu();
26
27 /** Disables the language menu. */
28 void disableLanguageMenu();
29
30 /** Resets menu labels. */
31 void refreshMenuItemsLabels();
32
33 /**
34 * Enables/disables the next menu item on the action menu.
35 *
36 * @param enabled True when the menu item should be enabled; false if disabled.
37 * @throws UnsupportedOperationException If action menu does not exist.
38 */
39 void toggleNextAction(boolean enabled);
40
41 /**
42 * Enables/disables the back menu item on the action menu.
43 *
44 * @param enabled True when the menu item should be enabled; false if disabled.
45 * @throws UnsupportedOperationException If action menu does not exist.
46 */
47 void toggleBackAction(boolean enabled);
48
49 /**
50 * Enables/disables the compute menu item on the action menu.
51 *
52 * @param enabled True when the menu item should be enabled; false if disabled.
53 * @throws UnsupportedOperationException If action menu does not exist.
54 */
55 void toggleComputeAction(boolean enabled);
56
57 }