Clover Coverage Report - KS Common 1.2.1-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Nov 2 2011 04:55:08 EST
../../../../../../../../img/srcFileCovDistChart0.png 29% of files have more coverage
10   96   10   1
0   45   1   10
10     1  
1    
 
  KSBasicMenu       Line # 24 10 0% 10 20 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
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  0 toggle public KSBasicMenu(){
29  0 initWidget(basicMenu);
30    }
31   
32    /**
33    * Populates the menu with the items set through setItems.
34    *
35    * @see org.kuali.student.common.ui.client.widgets.menus.KSMenu#populateMenu()
36    */
 
37  0 toggle @Override
38    protected void populateMenu() {
39  0 basicMenu.populateMenu();
40    }
41   
42    /**
43    * Get the list of KSMenuItemData used in this accordion menu.
44    *
45    * @return the List of KSMenuItemData used in this accordion menu.
46    *
47    * @see org.kuali.student.common.ui.client.widgets.menus.KSMenu#getItems()
48    */
 
49  0 toggle @Override
50    public List<KSMenuItemData> getItems() {
51  0 return basicMenu.getItems();
52    }
53   
54    /**
55    * Sets the KSMenuItemData used in this accordion menu.
56    *
57    * @param items the list of KSMenuItemData used in this accordion menu
58    *
59    */
 
60  0 toggle @Override
61    public void setItems(List<KSMenuItemData> items) {
62  0 basicMenu.setItems(items);
63    }
64   
 
65  0 toggle @Override
66    public boolean isNumberAllItems() {
67  0 return basicMenu.isNumberAllItems();
68    }
69   
 
70  0 toggle @Override
71    public void setNumberAllItems(boolean numberAllItems) {
72  0 basicMenu.setNumberAllItems(numberAllItems);
73    }
74   
 
75  0 toggle @Override
76    public void setDescription(String description) {
77  0 basicMenu.setDescription(description);
78   
79    }
80   
 
81  0 toggle @Override
82    public void setTitle(String title) {
83  0 basicMenu.setTitle(title);
84   
85    }
86   
 
87  0 toggle @Override
88    public boolean selectMenuItem(String[] hierarchy) {
89  0 return basicMenu.selectMenuItem(hierarchy);
90    }
91   
 
92  0 toggle public void clearSelected(){
93  0 basicMenu.clearSelected();
94    }
95   
96    }