|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Input
org.pajes.html.Submit
org.pajes.html.SubmitImage
public class SubmitImage
This class creates a Submit image on the form. Extended functionality allows an input field on the form to be populated when the user clicks the image.
| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Input |
|---|
TYPE_ATTRIBUTE |
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource)
Generate a Submit image for the form. |
|
SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
boolean disableOnClickValidation)
Generate a Submit image for the form. |
|
SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
InputHidden hiddenField)
Generate a Submit image for the form. |
|
SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
InputHidden hiddenField,
java.lang.String fieldValue)
Generate a Submit image for the form. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAlignment()
Gets the alignment of the image with respect to other text and images. |
java.lang.String |
getAlternateText()
Gets the alternate text to be displayed before the image is loaded. |
java.lang.Integer |
getBorderWidth()
Gets the width of the border around the image. |
java.lang.String |
getHeight()
Gets the height of the image. |
java.lang.String |
getImageMapToUse()
Returns the client-side image map that will define the coordinates and related hyperlinks. |
java.lang.String |
getImageSource()
Gets the source attribute of this image. |
SubmitImage |
setAlignment(java.lang.String alignment)
Sets the alignment of the image with respect to other text and images. |
SubmitImage |
setAlternateText(java.lang.String alternateText)
Sets the alternate text to be displayed before the image is loaded. |
protected void |
setAttribute(TagAttribute attribute)
Adds the specified attribute. |
SubmitImage |
setBorderWidth(int borderWidth)
Sets the width of the border around the image. |
SubmitImage |
setHeight(java.lang.String height)
Sets the height of the image. |
SubmitImage |
setImageMapToUse(java.lang.String map)
Specifies the client-side image map that will define the coordinates and related hyperlinks. |
SubmitImage |
setImageSource(java.lang.String imageSource)
Sets the source attribute of this image. |
SubmitImage |
setWidth(java.lang.String width)
Sets the width of the image. |
| Methods inherited from class org.pajes.html.Submit |
|---|
getHiddenField, getHiddenFieldValue, getInactiveText, isActive, isOnChangeCheckingDisabled, isOnClickValidationDisabled, setActive, setChanged, setCheckForChangedFields, setCheckForChangedFieldsConfirmation, setHiddenField, setInactiveText, setInactiveText, setOnClickValidation, setSubmitConfirmation, write, writeSubmitJavaScript, writeTag |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource)
form - the form which is to be submitted.name - the name of the image.imageSource - the source URL of the image. Eg. "images/picture.jpg"
public SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
boolean disableOnClickValidation)
form - the form which is to be submitted.name - the name of the image.imageSource - the source URL of the image. Eg. "images/picture.jpg"disableOnClickValidation - if true, suppresses the onClick validation.
public SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
InputHidden hiddenField)
form - the form which is to be submitted.name - the name of the image.imageSource - the source URL of the image. Eg. "images/picture.jpg"hiddenField - the hidden field input element whish will be updated when the
image is clicked.
public SubmitImage(Form form,
java.lang.String name,
java.lang.String imageSource,
InputHidden hiddenField,
java.lang.String fieldValue)
form - the form which is to be submitted.name - the name of the image.imageSource - the source URL of the image. Eg. "images/picture.jpg"hiddenField - the hidden field input element whish will be updated when the
image is clicked.fieldValue - the value to set in the hidden field.| Method Detail |
|---|
public java.lang.String getAlignment()
public java.lang.String getAlternateText()
public java.lang.Integer getBorderWidth()
public java.lang.String getHeight()
public java.lang.String getImageMapToUse()
public java.lang.String getImageSource()
public SubmitImage setAlignment(java.lang.String alignment)
alignment - the alignment of the image.
public SubmitImage setAlternateText(java.lang.String alternateText)
alternateText - the text displayed before the image is loaded.
public SubmitImage setBorderWidth(int borderWidth)
borderWidth - the width of the border around the image.
public SubmitImage setHeight(java.lang.String height)
height - the height of the image in pixels or a percent.
public SubmitImage setImageMapToUse(java.lang.String map)
map - the image map that defines the coordinates and related
hyperlinks.
public SubmitImage setImageSource(java.lang.String imageSource)
imageSource - the source URL of the image. Eg. "images/picture.jpg"
public SubmitImage setWidth(java.lang.String width)
width - the width of the image in pixels or a percent.
protected void setAttribute(TagAttribute attribute)
Tag
setAttribute in class Tagattribute - The attribute.Tag.setAttribute(org.pajes.html.TagAttribute)
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||