public interface FieldControlProperties
Modifier and Type | Method and Description |
---|---|
Text |
getAriaLabelText()
Returns the
Text object for the aria label text. |
java.lang.String |
getButtonImageUrl()
Returns the URL of the image to be displayed when the
buttonDisplayAsImage is set to true . |
Text |
getButtonText()
Returns the
Text object for the button text. |
FieldHyperlinkProperties |
getHyperlinkProperties()
Hyperlink properties that apply when the field value should be displayed as a hyperlink
(property
hyperlink is set to true ). |
java.lang.String |
getIvImageURL()
Returns the URL of the image to be displayed when Javascript is disabled and immediate
validation is simulated using an image to be clicked by the user (
displayIvAsImage is set to true ). |
Text |
getPlaceHolderText()
Returns the
Text object for the place holder text. |
Text |
getRequiredText()
Returns the required message
Text displayed when the field is missing. |
Text |
getValidationText()
Returns the HTML5 validation message
Text . |
boolean |
isButtonDisplayAsImage()
Indicates whether or not the image specified in the
buttonImageUrl property is displayed instead of a button. |
boolean |
isButtonSkipValidation()
Returns whether or not validation of controls higher on the page is skipped prior to executing the button's on click event.
|
boolean |
isDisplayIvAsImage()
Indicates that a button is displayed as an image, and is applicable only when Javascript is disabled and immediate
validation is simulated using buttons/images to be clicked by the user.
|
boolean |
isHyperlink()
Indicates whether or not the field's value should be displayed as a hyperlink.
|
boolean |
isImmediateValidation()
Indicates whether or not control should pass immediately to the Ebase Server when the user changes the field's value.
|
boolean |
isMandatory()
Deprecated.
From V5.4 use
isRequired() instead |
boolean |
isRequired()
Indicates whether or not this is a required field.
|
void |
setButtonDisplayAsImage(boolean buttonDisplayAsImage)
Sets whether or not the image specified in the
buttonImageUrl property is displayed instead of a button. |
void |
setButtonImageUrl(java.lang.String buttonImageUrl)
Sets the URL of the image to be displayed when the
buttonDisplayAsImage is set to true . |
void |
setButtonSkipValidation(boolean buttonSkipValidation)
Specifies whether or not validation of controls higher on the page is skipped prior to executing the button's on click event.
|
void |
setDisplayIvAsImage(boolean displayIvAsImage)
Sets whether or not a button is displayed as an image, and is applicable only when Javascript is disabled and immediate
validation is simulated using buttons/images to be clicked by the user.
|
void |
setHyperlink(boolean hyperlink)
Sets whether or not the field's value should be displayed as a hyperlink.
|
void |
setImmediateValidation(boolean immediateValidation)
Sets whether or not control should pass immediately to the Ebase Server when the user changes the field's value.
|
void |
setIvImageURL(java.lang.String url)
Sets the URL of the image to be displayed when Javascript is disabled and immediate
validation is simulated using an image to be clicked by the user
(property
displayIvAsImage is set to true ). |
void |
setMandatory(boolean mandatory)
Deprecated.
From V5.4 use
setRequired(boolean) instead |
void |
setRequired(boolean required)
Sets whether or not this is a required field.
|
boolean isImmediateValidation()
void setImmediateValidation(boolean immediateValidation)
@Deprecated boolean isMandatory()
isRequired()
instead@Deprecated void setMandatory(boolean mandatory)
setRequired(boolean)
insteadboolean isRequired()
void setRequired(boolean required)
boolean isHyperlink()
void setHyperlink(boolean hyperlink)
boolean isButtonSkipValidation()
Note that field type validation is always executed regardless of the setting of this flag (e.g. check that only numeric data is entered for numeric fields).
void setButtonSkipValidation(boolean buttonSkipValidation)
Note that field type validation is always executed regardless of the setting of this flag (e.g. check that only numeric data is entered for numeric fields).
Text getButtonText()
Text
object for the button text.
This applies only to legacy (<= Ebase V3.4) button fields.Text getAriaLabelText()
Text
object for the aria label text.
This applies only to legacy (<= Ebase V3.4) button fields or when the field is displayed as a hyperlink.Text getPlaceHolderText()
Text
object for the place holder text.
Place holder texts are only displayed for fields with a display type of text, search, url, tel, email, and password.boolean isButtonDisplayAsImage()
buttonImageUrl
property is displayed instead of a button.
When displayed as an image, any configured button text is displayed as alternate text.
This applies only to legacy (<= Ebase V3.4) button fields.void setButtonDisplayAsImage(boolean buttonDisplayAsImage)
buttonImageUrl
property is displayed instead of a button.
When displayed as an image, any configured button text is displayed as alternate text.
This applies only to legacy (<= Ebase V3.4) button fields.java.lang.String getButtonImageUrl()
buttonDisplayAsImage
is set to true
.
This applies only to legacy (<= Ebase V3.4) button fields.void setButtonImageUrl(java.lang.String buttonImageUrl)
buttonDisplayAsImage
is set to true
.
This applies only to legacy (<= Ebase V3.4) button fields.boolean isDisplayIvAsImage()
void setDisplayIvAsImage(boolean displayIvAsImage)
java.lang.String getIvImageURL()
displayIvAsImage
is set to true
).void setIvImageURL(java.lang.String url)
displayIvAsImage
is set to true
).FieldHyperlinkProperties getHyperlinkProperties()
hyperlink
is set to true
).Text getRequiredText()
Text
displayed when the field is missing. This text can be used to
override the default message displayed in the browser.
To change the required message text:
controls.Fldh0AG3.requiredText.setText("Please enter an order number");
Text getValidationText()
Text
. This text can be used to override the browser's default validation messages
when HTML5 input validation is used - this applies when any of the HTML5 display types are used or when one of the HTML5 validation attributes is used
e.g. min, max, pattern etc.
It's advisable to be cautious when overriding the browser's default validation messages. The browser may have many validation messages for any given type depending on data entered by the user, whereas it is only possible to enter a single replacement message. Reasons to override the browser's default might be: to create a specific message when pattern validation is used, to create a message in a specific language etc.
To change the validation message text:
controls.Fldh0AG3.validationText.setText("Please enter a valid social security number");