Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

oracle.apps.fnd.applcore.globalSearch.ui.managed
Class GlobalSearchResultTabBean

java.lang.Object
  extended by oracle.apps.fnd.applcore.globalSearch.ui.managed.GlobalSearchBaseBean
      extended by oracle.apps.fnd.applcore.globalSearch.ui.managed.GlobalSearchResultTabBean

public class GlobalSearchResultTabBean
extends GlobalSearchBaseBean

Backing bean for a single tab of results in the global search results popup.

Author:
David Groves <david.groves@oracle.com>

Field Summary
 
Fields inherited from class oracle.apps.fnd.applcore.globalSearch.ui.managed.GlobalSearchBaseBean
_sessionBean
 
Constructor Summary
GlobalSearchResultTabBean()
          Public constructor.
 
Method Summary
 void applyCustomDateRangeFilter(javax.faces.event.ActionEvent e)
          Apply the custom date range filter.
 void categoryNodeClicked(SearchResult sr, TreeItem selectedNode)
          A category node was clicked.
 void deleteCustomDateRangeFilter(javax.faces.event.ActionEvent e)
          Delete the custom tree date range filter.
 void facetItemNodeClicked(SearchResult sr, TreeItem selectedFINode)
          A facet item node was clicked.
 void flipSelectedOrdering(javax.faces.event.ActionEvent e)
          react to a change in the selected ordering.
 org.apache.myfaces.trinidad.model.RowKeySet getDisclosedRowKeys()
          Get the disclosed row keys, this method is bound to the af:tree.
 java.util.List<javax.faces.model.SelectItem> getOrderingAttributeNames()
          Ge this list of ordering attributes to show the user.
 int getPollInterval()
          Get the background poll interval.
 oracle.adf.view.rich.component.rich.data.RichTree getSearchResultsDlgAttributeTree()
          Binding for the Attribute filters tree.
 oracle.adf.view.rich.component.rich.data.RichTree getSearchResultsDlgCommonTree()
          Binding of common tree.
 java.lang.String getSortDirection()
          Get the sort direction tooltip text.
 org.apache.myfaces.trinidad.model.RowKeySet getSRDisclosedRowKeys()
          The disclosed rows for the current search result attribute filter tree.
 java.lang.String getTopText()
          Get the tooltip text for top xx results for sort.
 boolean isClosedFolder()
          Is the current tree node a folder node and is it closed.
 boolean isCommonTreeClosedFolder()
          Is the current tree node a folder node and is it closed.
 boolean isCommonTreeOpenFolder()
          Is the current tree node a folder node and is it open.
 boolean isOpenFolder()
          Is the current tree node a folder node and is it open.
 boolean isPolling()
          Do we continu to poll for background result extension.
 void onPoll(org.apache.myfaces.trinidad.event.PollEvent pe)
          A poll has occured, is our background search done?
 void orderingAttributeSelected(javax.faces.event.ValueChangeEvent vce)
          React to a change in the selection of a saved search in the search results area.
 void savedSearchSelectionChanged(javax.faces.event.ValueChangeEvent vce)
          React to a change in the selection of a saved search in the search results area.
 void searchableObjectNodeClicked(SearchResult sr, TreeItem selectedSONode)
          A searchable object node was clicked.
 void searchResultsDlgAttributeTreeRowDisclosure(org.apache.myfaces.trinidad.event.RowDisclosureEvent evt)
          Disclose a node in the attributes tree.
 void searchResultsDlgAttributeTreeSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)
          Select a node in the attributes tree.
 void searchResultsDlgCommonTreeSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)
          Select a node in the common tree.
 void searchResultsDlgDeleteFilter(javax.faces.event.ActionEvent actionEvent)
          React to the user explicitly deleting a filter tile in the UI.
 void searchResultsDlgNarrowFilter(javax.faces.event.ActionEvent actionEvent)
          Process a click on a facet item filter tile to narrow the filter.
 void setSearchResultsDlgAttributeTree(oracle.adf.view.rich.component.rich.data.RichTree newtree)
          Binding for the Attribute filters tree.
 void setSearchResultsDlgCommonTree(oracle.adf.view.rich.component.rich.data.RichTree tree)
          Binding for common tree.
 
Methods inherited from class oracle.apps.fnd.applcore.globalSearch.ui.managed.GlobalSearchBaseBean
getCallerContextSavedSearches, getGlobalContextSavedSearches, getSearchLabel, getSelectedSavedSearch, getSessionBean, isCallerContextSavedSearchesExist, isGlobalContextSavedSearchesExist, isRecentSearchesExist, performGlobalContextSavedSearch, performRecentSearch, refreshSearchUI, runSavedSearch, setSelectedSavedSearch, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalSearchResultTabBean

public GlobalSearchResultTabBean()
Public constructor.

Method Detail

searchResultsDlgNarrowFilter

public void searchResultsDlgNarrowFilter(javax.faces.event.ActionEvent actionEvent)
Process a click on a facet item filter tile to narrow the filter.

Parameters:
actionEvent - event caused by commandlink press.

getDisclosedRowKeys

public org.apache.myfaces.trinidad.model.RowKeySet getDisclosedRowKeys()
Get the disclosed row keys, this method is bound to the af:tree.

Returns:
single RowKeySet objects to act as disclosedRowKeys.

searchResultsDlgAttributeTreeRowDisclosure

public void searchResultsDlgAttributeTreeRowDisclosure(org.apache.myfaces.trinidad.event.RowDisclosureEvent evt)
Disclose a node in the attributes tree.

Parameters:
evt - event.

searchResultsDlgAttributeTreeSelection

public void searchResultsDlgAttributeTreeSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)
Select a node in the attributes tree. This will add/remove filters as needed and perform new searches.

Parameters:
event - event.

searchResultsDlgDeleteFilter

public void searchResultsDlgDeleteFilter(javax.faces.event.ActionEvent actionEvent)
React to the user explicitly deleting a filter tile in the UI.

Parameters:
actionEvent - event.

isOpenFolder

public boolean isOpenFolder()
Is the current tree node a folder node and is it open.

Returns:
true if open, false if not a folder, or if closed.

isClosedFolder

public boolean isClosedFolder()
Is the current tree node a folder node and is it closed.

Returns:
true if open, false if not a folder, or if open.

categoryNodeClicked

public void categoryNodeClicked(SearchResult sr,
                                TreeItem selectedNode)
A category node was clicked. This method is public for the purposes of unit tests only, it is considered internal.

Parameters:
sr - search result.
selectedNode - selected node.

searchableObjectNodeClicked

public void searchableObjectNodeClicked(SearchResult sr,
                                        TreeItem selectedSONode)
A searchable object node was clicked. This method is public for the purposes of unit tests only, it is considered internal.

Parameters:
sr - search result.
selectedSONode - selected node.

facetItemNodeClicked

public void facetItemNodeClicked(SearchResult sr,
                                 TreeItem selectedFINode)
A facet item node was clicked. This method is public for the purposes of unit tests only, it is considered internal.

Parameters:
sr - search result.
selectedFINode - selected node.

setSearchResultsDlgAttributeTree

public void setSearchResultsDlgAttributeTree(oracle.adf.view.rich.component.rich.data.RichTree newtree)
Binding for the Attribute filters tree.

Parameters:
newtree - Attribute filters tree.

getSearchResultsDlgAttributeTree

public oracle.adf.view.rich.component.rich.data.RichTree getSearchResultsDlgAttributeTree()
Binding for the Attribute filters tree.

Returns:
Binding for the Attribute filters tree.

getSRDisclosedRowKeys

public org.apache.myfaces.trinidad.model.RowKeySet getSRDisclosedRowKeys()
The disclosed rows for the current search result attribute filter tree.

Returns:
disclosed rows.

savedSearchSelectionChanged

public void savedSearchSelectionChanged(javax.faces.event.ValueChangeEvent vce)
React to a change in the selection of a saved search in the search results area. This will run the selected search in the current callerContext.

Parameters:
vce - event.

getPollInterval

public int getPollInterval()
Get the background poll interval.

Returns:
interval to poll, -1 if polling stopped.

onPoll

public void onPoll(org.apache.myfaces.trinidad.event.PollEvent pe)
A poll has occured, is our background search done?

Parameters:
pe - poll event.

isPolling

public boolean isPolling()
Do we continu to poll for background result extension.

Returns:
true to continue, false to stop.

flipSelectedOrdering

public void flipSelectedOrdering(javax.faces.event.ActionEvent e)
react to a change in the selected ordering.

Parameters:
e - event triggering flip.

orderingAttributeSelected

public void orderingAttributeSelected(javax.faces.event.ValueChangeEvent vce)
React to a change in the selection of a saved search in the search results area. This will run the selected search in the current callerContext.

Parameters:
vce - event.

getOrderingAttributeNames

public java.util.List<javax.faces.model.SelectItem> getOrderingAttributeNames()
Ge this list of ordering attributes to show the user.

Returns:
ordering attributes.

getSortDirection

public java.lang.String getSortDirection()
Get the sort direction tooltip text.

Returns:
sort direction tooltip text.

getTopText

public java.lang.String getTopText()
Get the tooltip text for top xx results for sort.

Returns:
text.

setSearchResultsDlgCommonTree

public void setSearchResultsDlgCommonTree(oracle.adf.view.rich.component.rich.data.RichTree tree)
Binding for common tree.

Parameters:
tree - tree component.

getSearchResultsDlgCommonTree

public oracle.adf.view.rich.component.rich.data.RichTree getSearchResultsDlgCommonTree()
Binding of common tree.

Returns:
tree component.

isCommonTreeOpenFolder

public boolean isCommonTreeOpenFolder()
Is the current tree node a folder node and is it open.

Returns:
true if open, false if not a folder, or if closed.

isCommonTreeClosedFolder

public boolean isCommonTreeClosedFolder()
Is the current tree node a folder node and is it closed.

Returns:
true if open, false if not a folder, or if open.

searchResultsDlgCommonTreeSelection

public void searchResultsDlgCommonTreeSelection(org.apache.myfaces.trinidad.event.SelectionEvent event)
Select a node in the common tree. This will add/remove filters as needed and perform new searches.

Parameters:
event - event.

applyCustomDateRangeFilter

public void applyCustomDateRangeFilter(javax.faces.event.ActionEvent e)
Apply the custom date range filter.

Parameters:
e - search click.

deleteCustomDateRangeFilter

public void deleteCustomDateRangeFilter(javax.faces.event.ActionEvent e)
Delete the custom tree date range filter.

Parameters:
e - event causing delete.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.6)

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.