Coverage Report - org.kuali.student.common.ui.client.widgets.field.layout.layouts.UnborderedHeadedLayout
 
Classes in this File Line Coverage Branch Coverage Complexity
UnborderedHeadedLayout
0%
0/18
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  
  * Date: 14-Jul-2010
 16  
  * Time: 10:52:16 AM
 17  
  */
 18  
 
 19  
 package org.kuali.student.common.ui.client.widgets.field.layout.layouts;
 20  
 
 21  
 import org.kuali.student.common.ui.client.configurable.mvc.SectionTitle;
 22  
 
 23  
 
 24  
 /**
 25  
  * This class has no border and the header text is underlined
 26  
  * Title text is .H5 heading
 27  
  *
 28  
  * // TODO rename styles to remove references to course format and activity
 29  
  *
 30  
  */
 31  
 public class UnborderedHeadedLayout extends HeadedLayout {
 32  
 
 33  
     public UnborderedHeadedLayout(){
 34  0
                 super();
 35  0
                 verticalLayout.addStyleName("ks-form-course-format-activity");
 36  0
                 body.add(verticalLayout);
 37  
 
 38  0
         }
 39  
         
 40  
         public UnborderedHeadedLayout(String titleText, boolean updateable){
 41  0
                 super();
 42  0
                 buildHeader(titleText, updateable);
 43  0
                 verticalLayout.addStyleName("ks-form-course-format-activity");
 44  0
                 body.add(header);
 45  0
                 body.add(verticalLayout);
 46  
 
 47  0
         }
 48  
 
 49  
     @Override
 50  
     protected void buildHeader(String titleText, boolean updateable) {
 51  0
                 SectionTitle title = SectionTitle.generateH5Title(titleText);
 52  0
                 header = new Header(title, updateable);
 53  0
                 header.setStyleName("ks-form-course-format-activity-header");
 54  0
                 title.addStyleName("ks-form-course-format-activity-header-title");
 55  0
         }
 56  
 
 57  
     @Override
 58  
         public void setLayoutTitle(SectionTitle layoutTitle) {
 59  0
                 layoutTitle.addStyleName("ks-form-bordered-activity-header-title");
 60  0
                 header.setHeaderTitle(layoutTitle);
 61  
 
 62  0
         }
 63  
 
 64  
 }