|
|
(4 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | {{ScoutPage|cat=Component Model}}
| + | The Scout documentation has been moved to https://eclipsescout.github.io/. |
− | | + | |
− | Specific type of {{ScoutLink|Concepts|ValueField|value field}} to use a Smart association (with {{ScoutLink|Concepts|CodeType|CodeType}} or {{ScoutLink|Concepts|LookupCall|LookupCall}}).
| + | |
− | | + | |
− | * implements: {{ScoutJavadoc|ISmartField<T>|I}}
| + | |
− | * extends: {{ScoutJavadoc|AbstractSmartField<T>|C}}
| + | |
− | | + | |
− | == Description ==
| + | |
− | A SmartField gives a selection of available values to the client. The field gets his contents from a CodeType or a LookupCall.
| + | |
− | | + | |
− | If the client doesn't write something into the SmartField, it will show all available values. (Lookup-Service Statement <code><all></all></code>)
| + | |
− | | + | |
− | If the client write text into the field, it will show all values, which starts with this text. (Lookup-Service Statement <code><text></text></code>)<br>
| + | |
− | Wildcards like <code>*</code>, <code>%</code> or <code>_</code> are also possible to write into the SmartField.
| + | |
− | | + | |
− | The functions:
| + | |
− | * setValue(value)
| + | |
− | * getValue()
| + | |
− | | + | |
− | use the key of the CodeType or the LookupCall. (Lookup-Service Statement <code><key></key></code>)
| + | |
− | | + | |
− | == Screenshot ==
| + | |
− | {|{{BMTableStyle}}
| + | |
− | |-{{BMTHStyle}}
| + | |
− | ! Type
| + | |
− | ! RAP
| + | |
− | ! SWT
| + | |
− | ! Swing
| + | |
− | ! Swing Rayo
| + | |
− | |-
| + | |
− | | Without values || [[Image:Scout_3.8_SmartField_all_RAP.png]] || [[Image:Scout_3.8_SmartField_all_SWT.png]] || [[Image:Scout_3.8_SmartField_all_Swing.png]] || [[Image:Scout_3.8_SmartField_all_Swing_Rayo.png]]
| + | |
− | |-
| + | |
− | | With text || [[Image:Scout_3.8_SmartField_text_RAP.png]] || [[Image:Scout_3.8_SmartField_text_SWT.png]] || [[Image:Scout_3.8_SmartField_text_Swing.png]] || [[Image:Scout_3.8_SmartField_text_Swing_Rayo.png]]
| + | |
− | |-
| + | |
− | | With text and wildcard || [[Image:Scout_3.8_SmartField_wildcard_RAP.png]] || [[Image:Scout_3.8_SmartField_wildcard_SWT.png]] || [[Image:Scout_3.8_SmartField_wildcard_Swing.png]] || [[Image:Scout_3.8_SmartField_wildcard_Swing_Rayo.png]]
| + | |
− | |-
| + | |
− | |}
| + | |
− | | + | |
− | == Properties ==
| + | |
− | ''Defined with {{ScoutLink|Concepts|GetConfigured Methods|getConfiguredXxxxxx()}} methods''.
| + | |
− | | + | |
− | See also the {{ScoutLink|Concepts|Field|Field}} and the {{ScoutLink|Concepts|ValueField|Value field}} pages for the properties that all fields have in common.
| + | |
− | | + | |
− | {{ScoutProp|BrowseHierarchy}}: overwrites the property of {{ScoutProp|IsHierarchy}} of the CodeType. If true the CodeType will be displayed as a tree, if false it will be displayed as a list.
| + | |
− | | + | |
− | <gallery>
| + | |
− | Image:Scout SmartField BrowseHierarchy True.png|BrowseHierarchy is true
| + | |
− | Image:Scout SmartField BrowseHierarchy False.png|BrowseHierarchy is false
| + | |
− | </gallery>
| + | |
− | | + | |
− | == Events ==
| + | |
− | ''Defined with {{ScoutLink|Concepts|Exec_Methods|execXxxxxx()}} methods''.
| + | |
− | | + | |
− | See also the {{ScoutLink|Concepts|Field|Field}} and the {{ScoutLink|Concepts|ValueField|Value field}} pages for the events that all fields have in common.
| + | |
− | | + | |
− | | + | |
− | == See Also ==
| + | |
− | * {{ScoutLink|Concepts|ValueField|Value field}}
| + | |
− | * {{ScoutLink|Concepts|Field|Field}}
| + | |
− | * {{ScoutLink|Concepts|Form|Form}}
| + | |
− | * The corresponding column: {{ScoutLink|Concepts|SmartColumn|SmartColumn}}
| + | |
− | * {{ScoutLink|Concepts|Type of Data|Type of data supported by Scout in the fields}}
| + | |