| java.lang.Object com.sourcetap.sfa.ui.UISearchField
All known Subclasses: com.sourcetap.sfa.ui.UIAccountSearchField,
UISearchField | public class UISearchField (Code) | | This class is used by the UI builder to display a search field on the screen.
author: Steve Fowler author: John Nutting |
Method Summary | |
public String | displayFieldHtml(UIDisplayObject uiDisplayObject, boolean protect, String htmlName, String fieldValue, Vector entityDetailsVector, UIFieldInfo fieldInfo, String action, int tabIndex, UserInfo userInfo, GenericDelegator delegator) Produces an HTML string to display the search field on a web page being built by the UIWebScreenSection class.
If the screen is being displayed in read-only mode, this method looks up the specified name value using the
current value as the primary key, and displays the looked up name instead of a search field.
author: Chris Maurer author: John Nutting Parameters: uiDisplayObject - Reference to a display object defined in the data base and attached to the field to be displayed by the UI builder Parameters: protect - Defines wether to show the current field in protected (read-only)_ mode Parameters: htmlName - The name to be used for the current field in the HTML Parameters: fieldValue - Value stored or to be stored in the data base Parameters: entityDetailsVector - Vector of generic values containing the values to be displayed on the screen for all fields Parameters: fieldInfo - Reference to field info object containing attributes of the current field Parameters: action - Action string defining the current screen mode. | public static String | displaySearchValueBox(String htmlName, String action, UIFieldInfo fieldInfo, UIDisplayObject uiDisplayObject, String fieldValue, int tabIndex) Produces an HTML string to display the search field in search mode.
author: Chris Maurer author: Steve Fowler author: John Nutting Parameters: htmlName - The name to be used for the current field in the HTML Parameters: action - Action string defining the current screen mode. | public List | getSearchFieldValuesDynamic(GenericDelegator delegator, String entityName, String searchField, String searchValue, UserInfo userInfo) Dynamically retrieves values to display as a drop down list when the search field is in list mode.
author: Steve Fowler author: John Nutting Parameters: delegator - Reference to the OFBIZ delegator being used to connect to the data base Parameters: entityName - The name of the entity whose instances are to be displayed in the list. Parameters: searchField - Name of attribute in the listed entity to be compared to the searchValue Parameters: searchValue - Value entered by the user into the search field. |
displayFieldHtml | public String displayFieldHtml(UIDisplayObject uiDisplayObject, boolean protect, String htmlName, String fieldValue, Vector entityDetailsVector, UIFieldInfo fieldInfo, String action, int tabIndex, UserInfo userInfo, GenericDelegator delegator)(Code) | | Produces an HTML string to display the search field on a web page being built by the UIWebScreenSection class.
If the screen is being displayed in read-only mode, this method looks up the specified name value using the
current value as the primary key, and displays the looked up name instead of a search field.
author: Chris Maurer author: John Nutting Parameters: uiDisplayObject - Reference to a display object defined in the data base and attached to the field to be displayed by the UI builder Parameters: protect - Defines wether to show the current field in protected (read-only)_ mode Parameters: htmlName - The name to be used for the current field in the HTML Parameters: fieldValue - Value stored or to be stored in the data base Parameters: entityDetailsVector - Vector of generic values containing the values to be displayed on the screen for all fields Parameters: fieldInfo - Reference to field info object containing attributes of the current field Parameters: action - Action string defining the current screen mode. See UIScreenSection for possible values. Parameters: tabIndex - Tab index (tab order) of the current field on the HTML form Parameters: protect - Boolean value defining whether to show the current field in protected (read-only)_ mode Parameters: userInfo - Reference to user info object containing information about the currently logged-in user Parameters: delegator - Reference to the OFBIZ delegator being used to connect to the data base String containing the HTML text that will draw the current field on the web page See Also: com.sourcetap.sfa.ui.UIWebScreenSection |
displaySearchValueBox | public static String displaySearchValueBox(String htmlName, String action, UIFieldInfo fieldInfo, UIDisplayObject uiDisplayObject, String fieldValue, int tabIndex)(Code) | | Produces an HTML string to display the search field in search mode.
author: Chris Maurer author: Steve Fowler author: John Nutting Parameters: htmlName - The name to be used for the current field in the HTML Parameters: action - Action string defining the current screen mode. See UIScreenSection for possible values. Parameters: fieldInfo - Reference to field info object containing attributes of the current field Parameters: uiDisplayObject - Reference to a display object defined in the data base and attached to the field to be displayed by the UI builder Parameters: fieldValue - Value stored or to be stored in the data base Parameters: tabIndex - Tab index (tab order) of the current field on the HTML form String containing the HTML text that will draw the current field on the web page See Also: com.sourcetap.sfa.ui.UIWebScreenSection |
getSearchFieldValuesDynamic | public List getSearchFieldValuesDynamic(GenericDelegator delegator, String entityName, String searchField, String searchValue, UserInfo userInfo)(Code) | | Dynamically retrieves values to display as a drop down list when the search field is in list mode.
author: Steve Fowler author: John Nutting Parameters: delegator - Reference to the OFBIZ delegator being used to connect to the data base Parameters: entityName - The name of the entity whose instances are to be displayed in the list. Parameters: searchField - Name of attribute in the listed entity to be compared to the searchValue Parameters: searchValue - Value entered by the user into the search field. To be used in a LIKE clause to filter the items in the drop down. Parameters: userInfo - Reference to user info object containing information about the currently logged-in user String containing the HTML text that will draw the current field on the web page See Also: com.sourcetap.sfa.ui.UIWebScreenSection |
|
|