1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.common.ui.client.widgets.menus;
17
18 import java.util.List;
19
20 import org.kuali.student.common.ui.client.widgets.menus.impl.KSBasicMenuImpl;
21
22 import com.google.gwt.core.client.GWT;
23
24 public class KSBasicMenu extends KSBasicMenuAbstract{
25
26 private KSBasicMenuAbstract basicMenu = GWT.create(KSBasicMenuImpl.class);
27
28 public KSBasicMenu(){
29 initWidget(basicMenu);
30 }
31
32
33
34
35
36
37 @Override
38 protected void populateMenu() {
39 basicMenu.populateMenu();
40 }
41
42
43
44
45
46
47
48
49 @Override
50 public List<KSMenuItemData> getItems() {
51 return basicMenu.getItems();
52 }
53
54
55
56
57
58
59
60 @Override
61 public void setItems(List<KSMenuItemData> items) {
62 basicMenu.setItems(items);
63 }
64
65 @Override
66 public boolean isNumberAllItems() {
67 return basicMenu.isNumberAllItems();
68 }
69
70 @Override
71 public void setNumberAllItems(boolean numberAllItems) {
72 basicMenu.setNumberAllItems(numberAllItems);
73 }
74
75 @Override
76 public void setDescription(String description) {
77 basicMenu.setDescription(description);
78
79 }
80
81 @Override
82 public void setTitle(String title) {
83 basicMenu.setTitle(title);
84
85 }
86
87 @Override
88 public boolean selectMenuItem(String[] hierarchy) {
89 return basicMenu.selectMenuItem(hierarchy);
90 }
91
92 public void clearSelected(){
93 basicMenu.clearSelected();
94 }
95
96 }