Coverage Report - net.wotonomy.web.WOResetButton
 
Classes in this File Line Coverage Branch Coverage Complexity
WOResetButton
0% 
0% 
1.5
 
 1  
 /*
 2  
  Wotonomy: OpenStep design patterns for pure Java applications.
 3  
  Copyright (C) 2000 Blacksmith, Inc.
 4  
 
 5  
  This library is free software; you can redistribute it and/or
 6  
  modify it under the terms of the GNU Lesser General Public
 7  
  License as published by the Free Software Foundation; either
 8  
  version 2.1 of the License, or (at your option) any later version.
 9  
 
 10  
  This library is distributed in the hope that it will be useful,
 11  
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
  Lesser General Public License for more details.
 14  
 
 15  
  You should have received a copy of the GNU Lesser General Public
 16  
  License along with this library; if not, see http://www.gnu.org
 17  
  */
 18  
 
 19  
 package net.wotonomy.web;
 20  
 
 21  
 import net.wotonomy.foundation.NSDictionary;
 22  
 
 23  
 /**
 24  
 * Implements a reset button with dynamic bindings.
 25  
  * @author michael@mpowers.net
 26  
  * @author $Author: cgruber $
 27  
  * @version $Revision: 905 $
 28  
  */
 29  
 public class WOResetButton extends WOInput {
 30  
 
 31  
     public WOResetButton() {
 32  0
         super();
 33  0
     }
 34  
 
 35  
     public WOResetButton(String n, NSDictionary m, WOElement t) {
 36  0
         super(n, m, t);
 37  0
     }
 38  
 
 39  
     protected String inputType() {
 40  0
         return "RESET";
 41  
     }
 42  
 
 43  
     protected Object value(WOContext c) {
 44  0
         Object v = valueForProperty("value", c.component());
 45  0
         if (v == null)
 46  0
             return "Reset";
 47  0
         return v;
 48  
     }
 49  
 
 50  
 }