ImageFormInput class

The ImageFormInput class represents an image input type in an HTML form.

You can retrieve and update many of the attributes for the ImageFormInput class by using the methods provided.

Example: Creating an ImageFormInput object

The following code example shows you how to create an ImageFormInput object:

    ImageFormInput image = new ImageFormInput("myPicture", "myPicture.gif");
    image.setAlignment(HTMLConstants.TOP);
    image.setHeight(81);
    image.setWidth(100);

The above code example generates the following tag:

    <input type="image" name="MyPicture" src="myPicture.gif" align="top" height="81" width="100" />