com.ibm.as400.util.html
Class HTMLParameter
- java.lang.Object
-
- com.ibm.as400.util.html.HTMLTagAttributes
-
- com.ibm.as400.util.html.HTMLParameter
-
- All Implemented Interfaces:
- HTMLTagElement, java.io.Serializable
public class HTMLParameter extends HTMLTagAttributes implements java.io.Serializable
The HTMLParameter class represents a parameter within an HTML servlet tag.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:
- PropertyChangeEvent
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods 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.-
Methods inherited from class com.ibm.as400.util.html.HTMLTagAttributes
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributes
-
-
-
-
Constructor Detail
-
HTMLParameter
public HTMLParameter()
Constructs a default HTMLParameter object.
-
HTMLParameter
public HTMLParameter(java.lang.String name, java.lang.String value)
Constructs an HTMLParameter object with the specified name and value.- Parameters:
name
- The parameter name.value
- The parameter value.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the parameter.- Returns:
- The name.
-
getValue
public java.lang.String getValue()
Returns the value of the parameter.- Returns:
- The value.
-
getFOTag
public java.lang.String getFOTag()
Returns a comment tag. This method should not be called. There is no XSL-FO support for this class.- Specified by:
getFOTag
in interfaceHTMLTagElement
- Returns:
- The comment tag.
-
getTag
public java.lang.String getTag()
Returns the tag for the HTML parameter.- Specified by:
getTag
in interfaceHTMLTagElement
- Returns:
- The tag.
-
setName
public void setName(java.lang.String name)
Sets the name of the parameter.- Parameters:
name
- The name.
-
setValue
public void setValue(java.lang.String value)
Set the value of the parameter.- Parameters:
value
- The value.
-
toString
public java.lang.String toString()
Returns a String representation for the HTMLParameter tag.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The tag.
-
-