Coverage Report - org.kuali.student.common.ui.client.widgets.field.layout.element.FieldTitle
 
Classes in this File Line Coverage Branch Coverage Complexity
FieldTitle
0%
0/8
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.field.layout.element;
 17  
 
 18  
 import com.google.gwt.user.client.ui.ComplexPanel;
 19  
 import com.google.gwt.user.client.ui.HasText;
 20  
 import com.google.gwt.user.client.ui.Widget;
 21  
 
 22  0
 public abstract class FieldTitle extends ComplexPanel implements HasText{
 23  
          
 24  
         /**
 25  
            * Adds a new child widget to the panel.
 26  
            * 
 27  
            * @param w the widget to be added
 28  
            */
 29  
           @Override
 30  
           public void add(Widget w) {
 31  0
             add(w, getElement());
 32  0
           }
 33  
 
 34  
           /**
 35  
            * Inserts a widget before the specified index.
 36  
            * 
 37  
            * @param w the widget to be inserted
 38  
            * @param beforeIndex the index before which it will be inserted
 39  
            * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out of
 40  
            *           range
 41  
            */
 42  
           public void insert(Widget w, int beforeIndex) {
 43  0
             insert(w, getElement(), beforeIndex, true);
 44  0
           }
 45  
           
 46  
           public void setText(String title){
 47  0
                   this.getElement().setInnerText(title);
 48  0
           }
 49  
           
 50  
           public String getText(){
 51  0
                   return this.getElement().getInnerText();
 52  
           }
 53  
         
 54  
 }