2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

Coverage Report - org.apache.shale.examples.test.view.Subview1
 
Classes in this File Line Coverage Branch Coverage Complexity
Subview1
0%
0/18
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to you under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  *
 17  
  * $Id: Subview1.java 465405 2006-10-18 22:41:29Z craigmcc $
 18  
  */
 19  
 
 20  
 package org.apache.shale.examples.test.view;
 21  
 
 22  
 import org.apache.shale.view.AbstractViewController;
 23  
 
 24  
 /**
 25  
  * <p>First page for subview lifecycle event tests.</p>
 26  
  */
 27  0
 public class Subview1 extends AbstractViewController {
 28  
     
 29  
 
 30  
     // -------------------------------------------------------------- Properties
 31  
 
 32  
 
 33  
     // The "Recorder" object for this request
 34  0
     private Recorder recorder = null;
 35  
     public Recorder getRecorder() {
 36  0
         return this.recorder;
 37  
     }
 38  
     public void setRecorder(Recorder recorder) {
 39  0
         this.recorder = recorder;
 40  0
     }
 41  
 
 42  
 
 43  
     // ========================================================== Event Handlers
 44  
 
 45  
 
 46  
     /**
 47  
      * <p>Return null to stay on the same page.</p>
 48  
      */
 49  
     public String resubmit() {
 50  0
         return null;
 51  
     }
 52  
 
 53  
 
 54  
     // ------------------------------------------------------- Lifecycle Methods
 55  
 
 56  
 
 57  
     /**
 58  
      * <p>Record an init event.</p>
 59  
      */
 60  
     public void init() {
 61  0
         getRecorder().record("init1");
 62  0
         System.out.println("Subview1.init()");
 63  0
     }
 64  
 
 65  
 
 66  
     /**
 67  
      * <p>Record a preprocess event.</p>
 68  
      */
 69  
     public void preprocess() {
 70  0
         getRecorder().record("preprocess1");
 71  0
         System.out.println("Subview1.preprocess()");
 72  0
     }
 73  
 
 74  
 
 75  
     /**
 76  
      * <p>Record a prerender event.</p>
 77  
      */
 78  
     public void prerender() {
 79  0
         getRecorder().record("prerender1");
 80  0
         System.out.println("Subview1.prerender()");
 81  0
     }
 82  
 
 83  
 
 84  
     /**
 85  
      * <p>Record a destroy event.</p>
 86  
      */
 87  
     public void destroy() {
 88  0
         getRecorder().record("destroy1");
 89  0
         System.out.println("Subview1.destroy()");
 90  0
     }
 91  
 
 92  
 
 93  
 }