Coverage report

  %line %branch
org.cb.jset.client.model.CardEvent
0% 
0% 

 1  
 // START LICENSE
 2  
 // JSet - a Java JSet card board game implementation
 3  
 // Copyright (C) 2004 Jerome Lacoste
 4  
 //
 5  
 // This program is free software; you can redistribute it and/or modify
 6  
 // it under the terms of the GNU General Public License as published by
 7  
 // the Free Software Foundation; either version 2 of the License, or (at
 8  
 // your option) any later version.
 9  
 //
 10  
 // This program is distributed in the hope that it will be useful, but
 11  
 // WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
 // General Public License for more details.
 14  
 //
 15  
 // You should have received a copy of the GNU General Public License
 16  
 // along with this program; if not, write to the Free Software
 17  
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 18  
 // END LICENSE
 19  
 
 20  
 package org.cb.jset.client.model;
 21  
 
 22  
 import org.cb.cardboard.Card;
 23  
 
 24  
 import java.util.EventObject;
 25  
 
 26  
 /**
 27  
  * Event related to the change of state of a card.
 28  
  *
 29  
  * @author jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
 30  
  * @version $Id: CardEvent.java 123 2004-04-14 23:45:53Z jerome $
 31  
  */
 32  
 public class CardEvent extends EventObject
 33  
 {
 34  
   /** the type of a selection event. */
 35  
   public static final int SELECTED = 1;
 36  
   /** the type of a deselection event. */
 37  
   public static final int DESELECTED = 2;
 38  
   /**  the type of the event. */
 39  
   private final int _type;
 40  
 
 41  
   /**
 42  
    * Constructs an instance of <code>CardEvent</code>, given the specified source and type. 
 43  
    * @param source
 44  
    * @param type
 45  
    */
 46  
   public CardEvent(final Card source, class="keyword">final int type)
 47  
   {
 48  0
     super(source);
 49  0
     _type = type;
 50  0
   }
 51  
 
 52  
   /**
 53  
    * @return the type of the event
 54  
    */
 55  
   public int getType()
 56  
   {
 57  0
     return _type;
 58  
   }
 59  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.