|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.util.html.HTMLTagAttributes
com.ibm.as400.util.html.HTMLParameter
public class HTMLParameter extends HTMLTagAttributes implements 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:
| Constructor and Description |
|---|
HTMLParameter()
Constructs a default HTMLParameter object. |
HTMLParameter(String name,
String value)
Constructs an HTMLParameter object with the specified name and value. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFOTag()
Returns a comment tag. |
String |
getName()
Returns the name of the parameter. |
String |
getTag()
Returns the tag for the HTML parameter. |
String |
getValue()
Returns the value of the parameter. |
void |
setName(String name)
Sets the name of the parameter. |
void |
setValue(String value)
Set the value of the parameter. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLParameter()
public HTMLParameter(String name,
String value)
name - The parameter name.value - The parameter value.| Method Detail |
|---|
public String getName()
public String getValue()
public String getFOTag()
getFOTag in interface HTMLTagElementpublic String getTag()
getTag in interface HTMLTagElementpublic void setName(String name)
name - The name.public void setValue(String value)
value - The value.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||