001package com.hfg.html;
002
003//------------------------------------------------------------------------------
004/**
005 * Represents a reset form element (<input type='reset'>) tag.
006 *
007 * @author J. Alex Taylor, hairyfatguy.com
008 */
009//------------------------------------------------------------------------------
010// com.hfg XML/HTML Coding Library
011//
012// This library is free software; you can redistribute it and/or
013// modify it under the terms of the GNU Lesser General Public
014// License as published by the Free Software Foundation; either
015// version 2.1 of the License, or (at your option) any later version.
016//
017// This library is distributed in the hope that it will be useful,
018// but WITHOUT ANY WARRANTY; without even the implied warranty of
019// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
020// Lesser General Public License for more details.
021//
022// You should have received a copy of the GNU Lesser General Public
023// License along with this library; if not, write to the Free Software
024// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
025//
026// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
027// jataylor@hairyfatguy.com
028//------------------------------------------------------------------------------
029
030public class InputReset extends HTMLTagWithCoreEvents
031{
032
033    //##########################################################################
034    // PRIVATE FIELDS
035    //##########################################################################
036
037
038    //##########################################################################
039    // CONSTRUCTORS
040    //##########################################################################
041
042    //--------------------------------------------------------------------------
043    public InputReset()
044    {
045        super(HTML.INPUT);
046        setAttribute(HTML.TYPE, "reset");
047    }
048
049    //##########################################################################
050    // PUBLIC METHODS
051    //##########################################################################
052
053    
054    //--------------------------------------------------------------------------
055    public InputReset setOnBlur(String inValue)
056    {
057        setAttribute(HTML.ONBLUR, inValue);
058                
059                return this;
060    }
061
062        
063   // Overrides for HTMLTag setters to allow method chaining.
064
065   //--------------------------------------------------------------------------
066   @Override
067   public InputReset setId(String inValue)
068   {
069      return (InputReset) super.setId(inValue);
070   }
071
072   //--------------------------------------------------------------------------
073   @Override
074   public InputReset setStyle(CharSequence inValue)
075   {
076      return (InputReset) super.setStyle(inValue);
077   }
078
079   //--------------------------------------------------------------------------
080   @Override
081   public InputReset addStyle(String inValue)
082   {
083      return (InputReset) super.addStyle(inValue);
084   }
085
086   // Overrides for HTMLTagWithCoreEvents setters to allow method chaining.
087
088   //--------------------------------------------------------------------------
089   @Override
090   public InputReset setOnClick(String inValue)
091   {
092      return (InputReset) super.setOnClick(inValue);
093   }
094
095   //--------------------------------------------------------------------------
096   @Override
097   public InputReset setOnDblClick(String inValue)
098   {
099      return (InputReset) super.setOnDblClick(inValue);
100   }
101
102   //--------------------------------------------------------------------------
103   @Override
104   public InputReset setOnMouseDown(String inValue)
105   {
106      return (InputReset) super.setOnMouseDown(inValue);
107   }
108
109   //--------------------------------------------------------------------------
110   @Override
111   public InputReset setOnMouseMove(String inValue)
112   {
113      return (InputReset) super.setOnMouseMove(inValue);
114   }
115
116   //--------------------------------------------------------------------------
117   @Override
118   public InputReset setOnMouseOut(String inValue)
119   {
120      return (InputReset) super.setOnMouseOut(inValue);
121   }
122
123   //--------------------------------------------------------------------------
124   @Override
125   public InputReset setOnMouseOver(String inValue)
126   {
127      return (InputReset) super.setOnMouseOver(inValue);
128   }
129
130   //--------------------------------------------------------------------------
131   @Override
132   public InputReset setOnMouseUp(String inValue)
133   {
134      return (InputReset) super.setOnMouseUp(inValue);
135   }
136
137   //--------------------------------------------------------------------------
138   @Override
139   public InputReset setOnKeyDown(String inValue)
140   {
141      return (InputReset) super.setOnKeyDown(inValue);
142   }
143
144   //--------------------------------------------------------------------------
145   @Override
146   public InputReset setOnKeyPress(String inValue)
147   {
148      return (InputReset) super.setOnKeyPress(inValue);
149   }
150
151   //--------------------------------------------------------------------------
152   @Override
153   public InputReset setOnKeyUp(String inValue)
154   {
155      return (InputReset) super.setOnKeyUp(inValue);
156   }
157}