|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.as400.util.html.HTMLTagAttributes com.ibm.as400.util.html.FormInput com.ibm.as400.util.html.ImageFormInput
public class ImageFormInput extends FormInput implements HTMLConstants
The ImageFormInput class represents a image input type in an HTML form. The trailing slash "/" on the ImageFormInput tag allows it to conform to the XHTML specification.
Here is an example of a ImageFormInput tag:
<input type="image" name="myPicture" src="image.gif"
align="top" height="100" width="100" />
ImageFormInput objects generate the following events:
Modifier and Type | Field and Description |
---|
Fields inherited from interface com.ibm.as400.util.html.HTMLConstants |
---|
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CAPITALS, CENTER, CIRCLE, DISC, JUSTIFY, LARGE_ROMAN, LEFT, LOWER_CASE, LTR, MIDDLE, NUMBERS, RIGHT, RTL, SMALL_ROMAN, SQUARE, TARGET_BLANK, TARGET_PARENT, TARGET_SELF, TARGET_TOP, TEXTTOP, TOP |
Constructor and Description |
---|
ImageFormInput()
Constructs a default ImageFormInput object. |
ImageFormInput(String name)
Constructs a ImageFormInput object with the specified control name. |
ImageFormInput(String name,
String source)
Constructs a ImageFormInput object with the specified control name and image source. |
Modifier and Type | Method and Description |
---|---|
String |
getAlignment()
Returns the alignment of the text following the image. |
String |
getFOTag()
Returns a comment tag. |
int |
getHeight()
Returns the height of the image in pixels. |
String |
getSource()
Returns the source URL for the image. |
String |
getTag()
Returns the tag for the image form input type. |
int |
getWidth()
Returns the width of the image in pixels. |
void |
setAlignment(String align)
Sets the alignment of the text following the image. |
void |
setHeight(int height)
Sets the height of the image in pixels. |
void |
setSource(String source)
Sets the source URL for the image. |
void |
setWidth(int width)
Sets the width of the image in pixels. |
Methods inherited from class com.ibm.as400.util.html.FormInput |
---|
addVetoableChangeListener, getDirection, getLanguage, getName, getSize, getValue, removeVetoableChangeListener, setDirection, setLanguage, setName, setSize, setValue, toString |
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 ImageFormInput()
public ImageFormInput(String name)
name
- The control name of the input field.public ImageFormInput(String name, String source)
name
- The control name of the input field.source
- The source URL of the image.Method Detail |
---|
public String getAlignment()
HTMLConstants
public int getHeight()
public String getSource()
public String getFOTag()
getFOTag
in interface HTMLTagElement
public String getTag()
getTag
in interface HTMLTagElement
public int getWidth()
public void setAlignment(String align) throws PropertyVetoException
align
- The alignment. One of the following constants
defined in HTMLConstants: BASELINE, BOTTOM, ABSBOTTOM, LEFT, RIGHT,
MIDDLE, ABSMIDDLE, TOP, or TEXTOP.PropertyVetoException
- If a change is vetoed.HTMLConstants
public void setHeight(int height) throws PropertyVetoException
height
- The height.PropertyVetoException
- If a change is vetoed.public void setSource(String source) throws PropertyVetoException
source
- The URL.PropertyVetoException
- If a change is vetoed.public void setWidth(int width) throws PropertyVetoException
width
- The width.PropertyVetoException
- If a change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |