query component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [search_button] - search button (mapped programmatically) 2. [reset_button] - reset button (mapped programmatically) 3. [save_button] - save button (mapped programmatically) 4. [mode_button] - mode button (mapped programmatically) 5. [saved_search --> saveSrch] - Saved Search dropdown 6. [disclosure_icon --> _afrDscl] - Disclosure icon 7. [search_header --> _afrTtxt] - Search header 8. [addFields_button --> adFlds] - addFields button 9. [match_type --> conj] - Match type 10. [deleteCriterion[(value)] --> delCrtn. For example value=1. Here the digit refers to criterion index.] - deleteCriterion (by rendered suffix e.g. deleteCriterion[0] --> deleteCriterion0) 11. [criterion_operator[(value)] --> oper. For example value=1. Here the digit refers to criterion index.] - operator (by rendered suffix e.g. criterion_operator[0] --> operator0) 12. [criterion_value[(value)] --> val. For example value=20. Here the first digit refers to criterion index and second digit is the index of the value field of that criterion. As in case "Between" operator there are two value fields having "value" such as 20 and 21.] - value (by rendered suffix e.g. criterion_value[20] --> value20). Here the first digit refers to criterion no. and second digit is the value no. for that criterion. 13. [saveSearch_popup --> SSPop] - Create Save Search Popup 14. [saveSearch_name --> SS_name] - Create Save Search Name field 15. [saveSearch_dialog --> SSD] - Create Save Search Dialog 16. [personalizeSearch_popup --> PSSPop] - Personalize Saved Search Popup 17. [personalizeSearch_searches --> PSS_Srchs] - Personalize Saved Searches Dropdown list 18. [personalizeSearch_dialog --> PSSD] - Personalize Saved Searches Dialog 19. [personalizeSearch_delete --> delete] - Personalize Saved Searches Delete Button 20. [personalizeSearch_duplicate --> duplicate] - Personalize Saved Searches Duplicate Button 21. [personalizeSearch_apply --> apply] - Personalize Saved Searches Apply Button 22. [personalizeSearch_Name --> PSS_name] - Personalize Saved Searches Name field 23. [deleteWarning_popup --> DWPop] - Personalize Saved Searches Delete Warning Popup 24. [deleteWarning_dialog --> DWD] - Personalize Saved Searches Delete Warning Dialog 25. [overrideWarning_popup --> OWPop] - Create Saved Searches Override Warning Popup 26. [overrideWarning_dialog --> OWD] - Create Saved Searches Override Warning Dialog 27. [overrideError_popup --> OEPop] - Create Saved Searches Override Error Popup 28. [overrideError_dialog --> OED] - Create Saved Searches Override Error Dialog 29. [criterion_label[(value)] --> crtnLab] - For example: criterion_label[0] is subId for first criterion label. Here the "value" refers to criterion index. 30. [addFields['menu Item label'] --> fldItemx] - For example: addFields['Hire Date'] for menu item with label "Hire Date" which is not inside any menu/UICategory. 31. [addFields['menu label'] --> adFldGrpMenu] - For example: addFields['Confidential'] for menu with label Confidential. 32. [addFields['menu label']['menu item label'] --> fldItemx] - For example: addFields['Confidential']['salary of employee'] for menu item salary inside menu confidential. 33. [addFields['menu label'][ALL_FIELDS] --> adFldGrpAddAllItem] - For example: addFields['Confidential'][ALL_FIELDS] for All Fields menu item inside menu with label Confidential. 34. [saveSearchSetAsDefault --> SS_def] - Create Save search dialog Set As Default Checkbox 35. [saveSearchAutoExecute --> SS_autoEx] - Create Save search dialog run automatically Checkbox 36. [saveSearchSaveLayout--> SS_SL] - Create Save search dialog save result layout Checkbox 37. [personalizeSearchSetAsDefault --> PSS_def] - Personalize Saved Searches set as default Checkbox 38. [personalizeSearchAutoExecute --> PSS_autoEx] - Personalize Saved Searches run automatically Checkbox 39. [personalizeSearchShowInList --> PSS_SiL] - Personalize Saved Searches Show in List Checkbox 40. [deleteWarningMessage --> DWDMsg] - Personalize Saved Searches Delete Warning Dialog - message subid 41. [overrideWarningMessage --> OWDMsg] - Create Saved Searches Override Warning Dialog - message subid 42. [reorderButton --> reorder] - Reorder button which opens the reorder Dialog -(mapped programmatically) 43. [reorderPopup --> REPop] - Reorder Popup 44. [reorderDialog --> REDlg] - Reorder Dialog 45. [reorderTree[(index)] --> RETree] - Reorder Tree - Rich tree component For ex: reorderTree[1] for node at index '1' of the tree 46. [reorderMoveTopButton --> move-top] - Reorder Dialog - Move to the start button 47. [reorderMoveUpButton --> move-up] - Reorder Dialog - Move up button 48. [reorderMoveDownButton --> move-down] - Reorder Dialog - Move down button 49. [reorderMoveBottomButton --> move-bottom] - Reorder Dialog - Move to the end button {External indexing example --> Internal indexing example} 1) getAttribute("rich=testTemplate:testQuery#criterion_operator[0]
Method Summary
|
private Object |
_clearPageProperty(Object propertyKey)
-
Pushes propertyKey -> propertyValue into the page state map
|
protected Object |
ComponentDisclosedChanged(Object component, Object domElement, Object newValue, Object oldValue)
|
private Object |
_evaluateAddFieldsExpandoScript()
|
private Object |
_getAddFieldsSubIdDomElement(Object subElementId, Object component, Object addFieldsIndex)
|
private Object |
_getAddFieldsSubIdFromPrunedClientId(Object prunedClientId)
|
protected Object |
GetBestMatchSubId(Object domElement)
-
Returns the best match subId for the given domElement.
|
protected Object |
GetClientIdDomElement(Object clientId)
-
Returns the DOM element if clientId is given.
|
private Object |
_getContentDomElement()
|
private Object |
_getCreateOrUpdateValue(Object component, Object dlgId)
-
Creates a Map of return values that reflects the selecions/changes made to the content in the Saved Search dialogs.
|
protected String |
GetDomElementSubId(Object subIdElement)
-
Returns the subId for a given dom element for query.
|
private Object |
_getPageProperty(Object propertyKey)
-
Retreives value for 'propertyKey' stored on the page state map by 'component'
|
private Object |
_getPopupComponent(Object clientId, Object isPersonalize)
-
Returns the popup component for the personalize popup if isPersonalize is true, else the component for the create popup.
|
private Object |
_getQueryButtonId(Object buttonId)
-
Get the id for the query button
|
public static Object |
getSavedSearchNames()
-
Returns the stored saved search names by concatenating user search names and system search names otherwise a blank array.
|
private Object |
_getSearchNameInCSSDialog(Object component)
-
Returns the value of the saved search name in Create Save Search Dialog
|
private Object |
_getSelectedSearchName(Object component, Object isPersonalize)
-
Returns the value of the saved search that is currently selected, either in the Personalize Saved Search dialog or in the search panel.
|
private Object |
_getSSNameComponent(Object clientId, Object isPsz)
-
Helper function that returns the Saved search name component in either dialog.
|
protected HTMLElement |
GetSubIdDomElement(String subElementIdLocator)
-
Returns the dom element for a given subElementId for query.
|
private Object |
_getSubIdFromClientId(Object clientId)
|
private Object |
_getSubIdFromPrunedClientId(Object clientId)
|
public static Object |
getSystemSavedSearchNames()
-
Returns the stored system saved search names.
|
public static Object |
getUserSavedSearchNames()
-
Returns the stored saved search names.
|
private Object |
_getWarningPopupComponent(Object isDeletePopup, Object isWarningPopup)
-
Returns the delete/override warning(error) popup component.
|
private Object |
_handleCheckboxClick(Object componentEvent, Object checkboxId)
-
Handles checkbox selections in both the dialogs.
|
private Object |
_handleClickOnReorderButtons(Object componentEvent, Object buttonClicked)
|
Object |
__handleClientSideDisclosure(Boolean disclosed)
-
Client side optimized disclosure function
|
protected Object |
HandleComponentAction(Object componentEvent)
-
Action Event handler for the Apply button in PSS dialog.
|
protected Object |
HandleComponentClick(Object componentEvent)
-
Handler for the component mouse click events.
|
private Object |
_handleComponentClickInDialog(Object componentEvent)
-
Handles component click events generated from components within the dialog.
|
protected Object |
HandleComponentDialog(Object componentEvent)
-
Takes the appropriate action when the dialog buttons OK and Cancel are clicked in the Saved Search dialogs or YES/NO are clicked in the delete/override warning(error) dialog.
|
protected Object |
HandleComponentDisclosure(Object componentEvent)
|
protected Object |
HandleComponentKeyDown(Object componentEvent)
-
When query component is used inside a dialog and the Enter key pressed, keydown event is not bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome.
|
protected Object |
HandleComponentKeyPress(Object componentEvent)
-
When query component is used inside a dialog and the Enter key pressed, keydown event is not bubbles up to the dialog potentially causing it to close, especially if the dialog has an OK outcome.
|
protected Object |
HandleComponentKeyUp(Object componentEvent)
-
The query component has a built-in notion of a defaultCommand that should execute a search when user hits the Enter key.
|
protected Object |
HandleComponentMouseOver(Object componentEvent)
-
This is used to set the no.
|
private Object |
_handleComponentOperation(Object componentEvent)
|
protected Object |
HandleComponentValueChange(Object componentEvent)
-
Handles any value change event that happens within the query component.
|
private Object |
_handleConjunctionSelection(Object query, Object componentEvent)
-
Queues a QueryInternalEvent when a conjunction is selected.
|
protected Object |
HidePopupDialog(Object clientId, Object isPersonalize)
-
Hides the popup dialog when OK or Cancel is pressed on either dialog.
|
protected Object |
Init(Object component)
|
protected Object |
InitDomElement(AdfUIComponent component, Object domElement)
-
Initialize the associated domElement when the peer is created.
|
public Object |
initialize(Object component)
|
protected static Object |
InitSubclass()
-
Initializes variables and adds component event handlers.
|
private Object |
_isCheckboxClicked(Object componentEvent, Object rootId, Object sourceClientId)
-
Determines if the checkbox was clicked.
|
private Object |
_isClickInClientComponent(Object node, Object id)
-
Checks to see if the clientId of the component with "id" is indeed the component that this event originated from.
|
private Object |
_isClickInReorderDialogButtons(Object componentEvent)
|
private Object |
_isClickInSubComponent(Object elem, Object subId)
-
Checks to see if the clientId of the component with "subid" matches the id of the component this event originated from.
|
private Boolean |
_isEnterKeyNotConsumed(Object componentEvent)
-
Return true if Enter key is pressed on a component that does not consume it else return false.
|
private Object |
_isEventTargetInChoiceComponent(Object componentEvent)
-
Returns true if the event source is one of the select subcomponent in Query.
|
private Object |
_isHeaderless(ADfUIComponent component)
-
Checks if the query component is rendered in a headerless manner.
|
private Object |
_passSavedSearchNameCheck(Object component, Object isPsz)
-
Validates the entered name by performing the following checks 1.
|
private Object |
_passSystemSearchNameCheck(Object queryName)
-
Validates the entered name by searching it in System Searches
|
protected Object |
PopupClosed(Object component, Object contentDom)
-
Callback method called when the popup is closed.
|
private Object |
_queueResultComponentEvent(Object component)
|
protected Object |
ResizeNotify(Object oldWidth, Object oldHeight, Object newWidth, Object newHeight)
-
Resize notification callback - we perform geometry management here
|
private HTMLElement |
_returnButtonElement(String buttonId)
-
Convenience method to handle both new af:buttons and old af:commandButtons.
|
protected Object |
SetBusy(Object isBusy)
|
private Object |
_setComponentError(Object component, Object summaryKey, Object detailKey, Object trResourceKey)
-
Adds the error message to the component if the component passed in is valid, otherwise it displays a page level error.
|
private Object |
_setPageProperty(Object propertyKey, Object propertyValue)
-
Pushes propertyKey -> propertyValue into the page state map
|
public static Object |
setSystemSavedSearchNames(Object names)
-
This method is used to store the user saved search names.
|
public static Object |
setUserSavedSearchNames(Object names)
-
This method is used to store the user saved search names.
|
protected Object |
ShowPopupDialog(Object clientId, Object isPersonalize)
-
Shows the query popup when the Personalize..
|
protected Object |
ShowReorderPopupDialog(Object clientId, Object isPersonalize)
|
private Object |
_showWarningPopup(Object isDeletePopup, Object isWarningPopup)
-
Shows the delete/override warning(error) dialog popup.
|
public Boolean |
validateCriterionFields()
-
Internal framework use only.
|