public class HTMLParameter extends HTMLTagAttributes implements java.io.Serializable
This example creates a HTMLParameter tag:
// Create an HTMLServletParameter. HTMLParameter parm = new HTMLParameter("age", "21"); System.out.println(parm);
Here is the output of the HTMLParameter tag:
<param name="age" value="21">
HTMLParameter objects generate the following events:
Constructor and Description |
---|
HTMLParameter()
Constructs a default HTMLParameter object.
|
HTMLParameter(java.lang.String name,
java.lang.String value)
Constructs an HTMLParameter object with the specified name and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFOTag()
Returns a comment tag.
|
java.lang.String |
getName()
Returns the name of the parameter.
|
java.lang.String |
getTag()
Returns the tag for the HTML parameter.
|
java.lang.String |
getValue()
Returns the value of the parameter.
|
void |
setName(java.lang.String name)
Sets the name of the parameter.
|
void |
setValue(java.lang.String value)
Set the value of the parameter.
|
java.lang.String |
toString()
Returns a String representation for the HTMLParameter tag.
|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
public HTMLParameter()
public HTMLParameter(java.lang.String name, java.lang.String value)
name
- The parameter name.value
- The parameter value.public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String getFOTag()
getFOTag
in interface HTMLTagElement
public java.lang.String getTag()
getTag
in interface HTMLTagElement
public void setName(java.lang.String name)
name
- The name.public void setValue(java.lang.String value)
value
- The value.public java.lang.String toString()
toString
in class java.lang.Object