@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface UiElement
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
fieldLoc
specify locator of form field.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
defaultValue |
java.lang.String |
dependingValue
Specify value of parent field which enables this field.
|
java.lang.String |
dependsOnField
specify filed name on which this field is depends.
|
java.lang.Class<? extends QAFExtendedWebElement> |
elementClass
Optional, can be used to specify custom component to interact with UI.
|
UiElement.Type |
fieldType
specify type of form field.
|
int |
order
Specify the order in which form fields should be filled in UI.
|
boolean |
pagewait
Deprecated.
|
boolean |
readonly
specify whether this form field is read-only? Default is false.
|
boolean |
required
specify whether is this a required form field? Default is false.
|
java.lang.String |
viewLoc
mapping with data-view : if this form field value reflected in other view
page then specify locator of that field
|
UiElement.Type |
viewType
specify type of view element.
|
public abstract java.lang.String fieldLoc
public abstract UiElement.Type fieldType
UiElement.Type.textbox
public abstract java.lang.String viewLoc
public abstract UiElement.Type viewType
UiElement.Type.text
public abstract java.lang.String dependsOnField
public abstract java.lang.String dependingValue
dependsOnField()
. You can use JavaScript notation for value
comparison. Some valid Example:
@UiElement(fieldLoc = DOMAIN_SELECT_LOC, fieldType = Type.selectbox, order = 1) private String domain; @UiElement(fieldLoc = NAME_INPUT_LOC, fieldType = Type.selectbox, dependsOnField = "domain", dependingValue = "DUNS", order=3) public String name;
This can also be written as: @UiElement(fieldLoc = NAME_INPUT_LOC, fieldType = Type.selectbox, dependsOnField = "domain", dependingValue = "${domain}=='DUNS'", order=3) public String name;
@UiElement(fieldLoc = PASSWORD_INPUT_LOC, fieldType = Type.selectbox, dependsOnField = "domain", dependingValue = "${domain}!='DUNS' && ${domain}!='GLN'", order=3) public String password;
order()
of parent filed less
then child field.public abstract boolean readonly
public abstract boolean required
BaseFormDataBean.fillUiRequiredElements()
public abstract int order
Integer.MAX_VALUE
public abstract boolean pagewait
public abstract java.lang.Class<? extends QAFExtendedWebElement> elementClass
Copyright © 2000 Infostretch Corp.