Coverage Report - org.kuali.student.common.ui.client.widgets.list.KSLabelList
 
Classes in this File Line Coverage Branch Coverage Complexity
KSLabelList
0%
0/43
N/A
1
 
 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.list;
 17  
 
 18  
 import java.util.List;
 19  
 
 20  
 import org.kuali.student.common.ui.client.mvc.Callback;
 21  
 import org.kuali.student.common.ui.client.widgets.list.impl.KSLabelListImpl;
 22  
 
 23  
 import com.google.gwt.core.client.GWT;
 24  
 import com.google.gwt.event.dom.client.BlurHandler;
 25  
 import com.google.gwt.event.dom.client.FocusHandler;
 26  
 import com.google.gwt.event.shared.HandlerRegistration;
 27  
 import com.google.gwt.user.client.ui.Widget;
 28  
 
 29  
 
 30  
 /**
 31  
  * This is a description of what this class does - hjohnson don't forget to fill this in. 
 32  
  * 
 33  
  * @author Kuali Student Team 
 34  
  *
 35  
  */
 36  
 public class KSLabelList extends KSSelectItemWidgetAbstract {
 37  0
     private KSSelectItemWidgetAbstract selectItemWidget = GWT.create(KSLabelListImpl.class);
 38  
 
 39  
     
 40  0
         public KSLabelList(String name) {
 41  0
         initWidget(selectItemWidget);
 42  0
         selectItemWidget.setName(name);
 43  0
         }
 44  
         
 45  0
     public KSLabelList() {
 46  0
         initWidget(selectItemWidget);
 47  0
     }
 48  
 
 49  0
     public KSLabelList(boolean initialzed) {
 50  0
         initWidget(selectItemWidget);
 51  0
         selectItemWidget.setInitialized(initialzed);
 52  0
     }
 53  
     
 54  
         /**
 55  
          * @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#deSelectItem(java.lang.String)
 56  
          */
 57  
         public void deSelectItem(String id) {
 58  0
             selectItemWidget.deSelectItem(id);        
 59  0
         }
 60  
 
 61  
         /**
 62  
          * @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#getSelectedItems()
 63  
          */
 64  
         public List<String> getSelectedItems() {
 65  0
             return selectItemWidget.getSelectedItems();
 66  
         }
 67  
 
 68  
         /**
 69  
          * @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#selectItem(java.lang.String)
 70  
          */
 71  
         public void selectItem(String id) {
 72  0
             selectItemWidget.selectItem(id);
 73  0
         }
 74  
 
 75  
     public void setListItems(ListItems listItems) {
 76  0
         selectItemWidget.setListItems(listItems);      
 77  0
     }
 78  
 
 79  
     /**
 80  
      * Use to set number of columns to use when displaying list
 81  
      * 
 82  
      */
 83  
     public void setColumnSize(int cols){
 84  0
         selectItemWidget.setColumnSize(cols);
 85  0
     }
 86  
         
 87  0
     public void setMultipleSelect(boolean isMultipleSelect) {}
 88  
 
 89  
     /**
 90  
      * This overridden method is not used
 91  
      * 
 92  
      * @see org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract#onLoad()
 93  
      */
 94  
     @Override
 95  0
     public void onLoad() {}
 96  
    
 97  
     public HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler) {
 98  0
         return selectItemWidget.addSelectionChangeHandler(handler);
 99  
     }
 100  
 
 101  
     public ListItems getListItems() {
 102  0
         return selectItemWidget.getListItems();
 103  
     }
 104  
 
 105  
     public String getName() {
 106  0
         return selectItemWidget.getName();
 107  
     }
 108  
 
 109  
     public void setName(String name) {
 110  0
         selectItemWidget.setName(name);
 111  0
     }
 112  
 
 113  
     @Override
 114  
     public void setEnabled(boolean b) {
 115  0
         selectItemWidget.setEnabled(b);
 116  0
     }
 117  
 
 118  
     @Override
 119  
     public boolean isEnabled() {
 120  0
         return selectItemWidget.isEnabled();
 121  
     }
 122  
 
 123  
     @Override
 124  
     public boolean isMultipleSelect() {
 125  0
         return selectItemWidget.isMultipleSelect();
 126  
     }
 127  
 
 128  
     @Override
 129  
     public void redraw() {
 130  0
         selectItemWidget.redraw();
 131  0
     }
 132  
 
 133  
     @Override
 134  
     public void clear() {
 135  0
         selectItemWidget.clear();
 136  0
     }
 137  
 
 138  
         @Override
 139  
         public HandlerRegistration addFocusHandler(FocusHandler handler) {
 140  0
                 return selectItemWidget.addFocusHandler(handler);
 141  
         }
 142  
 
 143  
         @Override
 144  
         public HandlerRegistration addBlurHandler(BlurHandler handler) {
 145  0
                 return selectItemWidget.addBlurHandler(handler);
 146  
         }
 147  
 
 148  
     public void addWidgetReadyCallback(Callback<Widget> callback) {
 149  0
         selectItemWidget.addWidgetReadyCallback(callback);
 150  0
     }
 151  
 
 152  
     public boolean isInitialized() {
 153  0
         return selectItemWidget.isInitialized();
 154  
     }
 155  
 
 156  
     public void setInitialized(boolean initialized) {
 157  0
         selectItemWidget.setInitialized(initialized);
 158  0
     }
 159  
         
 160  
         
 161  
 }
 162  
 
 163