Coverage Report - org.kuali.student.common.ui.client.demo.KSLightBoxDemo
 
Classes in this File Line Coverage Branch Coverage Complexity
KSLightBoxDemo
0%
0/10
N/A
1
KSLightBoxDemo$1
0%
0/2
N/A
1
KSLightBoxDemo$2
0%
0/3
N/A
1
 
 1  
 package org.kuali.student.common.ui.client.demo;
 2  
 
 3  
 import org.kuali.student.common.ui.client.widgets.KSButton;
 4  
 import org.kuali.student.common.ui.client.widgets.KSButtonAbstract.ButtonStyle;
 5  
 import org.kuali.student.common.ui.client.widgets.progress.BlockingTask;
 6  
 import org.kuali.student.common.ui.client.widgets.progress.KSBlockingProgressIndicator;
 7  
 
 8  
 import com.google.gwt.event.dom.client.ClickEvent;
 9  
 import com.google.gwt.event.dom.client.ClickHandler;
 10  
 import com.google.gwt.user.client.ui.Composite;
 11  
 import com.google.gwt.user.client.ui.VerticalPanel;
 12  
 import com.google.gwt.user.client.ui.Widget;
 13  
 
 14  
 
 15  
 public class KSLightBoxDemo extends Composite{
 16  0
    public KSLightBoxDemo(){
 17  0
        super.initWidget(createDemoPage());
 18  0
    }
 19  
    private Widget createDemoPage(){
 20  0
        VerticalPanel p = new VerticalPanel();
 21  
        
 22  
        
 23  0
        KSButton button = new KSButton("Lightbox", new ClickHandler() {
 24  
            @Override
 25  
            public void onClick(ClickEvent event) {
 26  
              //  final KSLightBox box = new KSLightBox(new HTML("Proposal Comments"));
 27  
               // box.setWidget(new Label("asdf"));
 28  
               // box.setSize(400, 200);
 29  
               // box.show();
 30  
               // box.setWidget(new Label("asdf"));
 31  
                
 32  0
            }
 33  
        });
 34  0
        p.add(button);
 35  
        
 36  0
        button = new KSButton("KSBlockingProgressIndicator", new ClickHandler() {
 37  
            @Override
 38  
            public void onClick(ClickEvent event) {
 39  0
                KSBlockingProgressIndicator.addTask(new BlockingTask("this is a test."));
 40  0
            }
 41  
        });
 42  0
        p.add(button);
 43  
        
 44  0
        p.add(new KSButton("Lightbox", ButtonStyle.SECONDARY));
 45  
        
 46  0
        return p;
 47  
    }
 48  
 }