001package com.hfg.html; 002 003 004import com.hfg.xml.XMLNode; 005 006//------------------------------------------------------------------------------ 007/** 008 * Represents a param (<param>) tag. 009 * 010 * @author J. Alex Taylor, hairyfatguy.com 011 */ 012//------------------------------------------------------------------------------ 013// com.hfg XML/HTML Coding Library 014// 015// This library is free software; you can redistribute it and/or 016// modify it under the terms of the GNU Lesser General Public 017// License as published by the Free Software Foundation; either 018// version 2.1 of the License, or (at your option) any later version. 019// 020// This library is distributed in the hope that it will be useful, 021// but WITHOUT ANY WARRANTY; without even the implied warranty of 022// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 023// Lesser General Public License for more details. 024// 025// You should have received a copy of the GNU Lesser General Public 026// License along with this library; if not, write to the Free Software 027// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 028// 029// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 030// jataylor@hairyfatguy.com 031//------------------------------------------------------------------------------ 032 033public class Param extends HTMLTag 034{ 035 036 //########################################################################## 037 // CONSTRUCTORS 038 //########################################################################## 039 040 //-------------------------------------------------------------------------- 041 public Param() 042 { 043 super(HTML.PARAM); 044 } 045 046 //-------------------------------------------------------------------------- 047 public Param(String inName, String inValue) 048 { 049 super(HTML.PARAM); 050 setName(inName); 051 setValue(inValue); 052 } 053 054 //-------------------------------------------------------------------------- 055 public Param(XMLNode inXMLNode) 056 { 057 this(); 058 initFromXMLNode(inXMLNode); 059 } 060 061 //########################################################################## 062 // PUBLIC METHODS 063 //########################################################################## 064 065 066 //--------------------------------------------------------------------------- 067 public Param setName(String inValue) 068 { 069 setAttribute(HTML.NAME, inValue); 070 071 return this; 072 } 073 074 //--------------------------------------------------------------------------- 075 public Param setValue(String inValue) 076 { 077 setAttribute(HTML.VALUE, inValue); 078 079 return this; 080 } 081}