|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.html.HTMLTagAttributes | +--com.ibm.as400.util.html.HTMLParameter
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 Summary | |
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 | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTMLParameter()
public HTMLParameter(java.lang.String name, java.lang.String value)
name
- The parameter name.value
- The parameter value.Method Detail |
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String getTag()
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |