Coverage Report - org.apache.tapestry.event.ReportStatusEvent
 
Classes in this File Line Coverage Branch Coverage Complexity
ReportStatusEvent
0%
0/32
N/A
1
 
 1  
 // Copyright 2005 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 
 15  
 package org.apache.tapestry.event;
 16  
 
 17  
 import java.util.Collection;
 18  
 import java.util.EventObject;
 19  
 
 20  
 import org.apache.hivemind.util.Defense;
 21  
 import org.apache.tapestry.describe.DescriptionReceiver;
 22  
 
 23  
 /**
 24  
  * Event object used by {@link org.apache.tapestry.event.ReportStatusListener};
 25  
  * the event implements {@link org.apache.tapestry.describe.DescriptionReceiver};
 26  
  * classes (typically, HiveMind service implementations) that implement the
 27  
  * listener interface will "describe" themselves to the event.
 28  
  * 
 29  
  * @author Howard M. Lewis Ship
 30  
  * @since 4.0
 31  
  */
 32  
 public class ReportStatusEvent extends EventObject implements
 33  
         DescriptionReceiver
 34  
 {
 35  
 
 36  
     /**
 37  
      * serialVersionUID.
 38  
      */
 39  
     private static final long serialVersionUID = 7546818328708861783L;
 40  
     
 41  
     private final DescriptionReceiver _receiver;
 42  
 
 43  
     public ReportStatusEvent(Object source, DescriptionReceiver receiver)
 44  
     {
 45  0
         super(source);
 46  
 
 47  0
         Defense.notNull(receiver, "receiver");
 48  
 
 49  0
         _receiver = receiver;
 50  0
     }
 51  
 
 52  
     public void array(String key, Object[] values)
 53  
     {
 54  0
         _receiver.array(key, values);
 55  0
     }
 56  
 
 57  
     public void collection(String key, Collection values)
 58  
     {
 59  0
         _receiver.collection(key, values);
 60  0
     }
 61  
 
 62  
     public void describeAlternate(Object alternate)
 63  
     {
 64  0
         _receiver.describeAlternate(alternate);
 65  0
     }
 66  
 
 67  
     public void property(String key, boolean value)
 68  
     {
 69  0
         _receiver.property(key, value);
 70  0
     }
 71  
 
 72  
     public void property(String key, byte value)
 73  
     {
 74  0
         _receiver.property(key, value);
 75  0
     }
 76  
 
 77  
     public void property(String key, char value)
 78  
     {
 79  0
         _receiver.property(key, value);
 80  0
     }
 81  
 
 82  
     public void property(String key, double value)
 83  
     {
 84  0
         _receiver.property(key, value);
 85  0
     }
 86  
 
 87  
     public void property(String key, float value)
 88  
     {
 89  0
         _receiver.property(key, value);
 90  0
     }
 91  
 
 92  
     public void property(String key, int value)
 93  
     {
 94  0
         _receiver.property(key, value);
 95  0
     }
 96  
 
 97  
     public void property(String key, long value)
 98  
     {
 99  0
         _receiver.property(key, value);
 100  0
     }
 101  
 
 102  
     public void property(String key, Object value)
 103  
     {
 104  0
         _receiver.property(key, value);
 105  0
     }
 106  
 
 107  
     public void property(String key, short value)
 108  
     {
 109  0
         _receiver.property(key, value);
 110  0
     }
 111  
 
 112  
     public void section(String section)
 113  
     {
 114  0
         _receiver.section(section);
 115  0
     }
 116  
 
 117  
     public void title(String title)
 118  
     {
 119  0
         _receiver.title(title);
 120  0
     }
 121  
 }