|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.thin.beans.BaseThinBeanUI | +--oracle.dss.thin.beans.tools.BaseViewTool | +--oracle.dss.thin.beans.tools.query.FavoriteTool
Use the FavoriteTool to apply a favorite (that is, a saved selection) to a view. The FavoriteTool can be used by itself or with ViewToolbar
.
For the FavoriteTool to function properly, the DataSource of the view must extend Query
.
The FavoriteTool generates the BIConstants.APPLY_FAVORITE_EVENT
event when a user chooses the Go button.
The FavoriteTool handles the BIConstants.APPLY_FAVORITE_EVENT
event, which is generated when a user chooses the Go button. When this event occurs, the FavoriteTool applies the specified saved selection to the query for the view.
For more information about using the FavoriteTool, see the "Favorite Tool" topic in the BI Beans Help system.
ViewTool
, ViewToolbar
, Query
Fields inherited from interface oracle.dss.thin.beans.ThinBeanUI |
EVENT_HANDLED, EVENT_NOT_HANDLED, EVENT_RESPONSE_DONE |
Constructor Summary | |
FavoriteTool() Constructor. |
Method Summary | |
BIContext |
getBIContext() Retrieves the BIContext for the FavoriteTool. |
oracle.cabo.ui.UINode |
getContentUINode() Retrieves the UINode that was used to render this ViewTool |
java.lang.String |
getCurrentDimension() Retrieves the current dimension for the FavoritesUI . |
java.lang.String |
getDisplayName() Retrieves the name that is used to display this tool on the ViewToolbar |
int |
handleEvent(QueryParameterProvider provider) An application's servlet must call handleEvent, when a ThinBean event triggered the servlet request. |
boolean |
isEnabled() Indicates whether the FavoriteTool's link appears on the toolbar. |
void |
setBIContext(BIContext biContext) Specifies the BIContext for the FavoriteTool. |
void |
setCurrentDimension(java.lang.String currentDimension) Specifies the current dimension for the FavoritesUI . |
void |
setView(ThinDataviewCommon view) Specifies the view that was modified by this FavoriteTool. |
Methods inherited from class oracle.dss.thin.beans.tools.BaseViewTool |
addViewToolListener, getDestination, getToolbarName, getView, isVisible, removeViewToolListener, setDestination, setDisplayName, setEnabled, setToolbarName, setVisible |
Methods inherited from class oracle.dss.thin.beans.BaseThinBeanUI |
addErrorHandler, checkpointState, generateOnClickSubmit, getCheckpointState, getEventTarget, getLocale, getState, getThinBeanName, removeErrorHandler, setBaseState, setCheckpointState, setEventTarget, setLocale, setState, setThinBeanName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.thin.beans.ThinBeanUI |
getEventTarget, getLocale, setEventTarget, setLocale |
Methods inherited from interface oracle.dss.thin.beans.ThinBean |
getState, getThinBeanName, setBaseState, setState, setThinBeanName |
Constructor Detail |
public FavoriteTool()
Method Detail |
public int handleEvent(QueryParameterProvider provider) throws ThinException
ThinBean
event triggered the servlet request. To determine the correct ThinBean
to call handleEvent() on, the application should check the "source" query parameter, which will be the ThinBeanName of the ThinBean
that rendered the URL/Form in HTML and which also needs to handle the event. The application can also choose to call handleEvent on all of its ThinBeanUI components and check the return value of handleEvent() to determine which component has handled the event. Each ThinBeanUI component needs to check the source parameter to make sure that it matches their ThinBeanName. If it does not match, then the event should not be processed.provider
- An instance of a QueryParameterProvider that returns decoded and unescaped query parameter values from HTTPServletRequestsThinBeanUI.EVENT_NOT_HANDLED
, ThinBeanUI.EVENT_HANDLED
, ThinBeanUI.EVENT_RESPONSE_DONE
public BIContext getBIContext()
BIContext
for the FavoriteTool.oracle.dss.bicontext.BIContext
interfacepublic void setBIContext(BIContext biContext)
BIContext
for the FavoriteTool.biContext
- an implementation of the oracle.dss.bicontext.BIContext
interfacepublic void setView(ThinDataviewCommon view)
setView
in class BaseViewTool
a
- view that implements the ThinDataviewCommon
interfacepublic java.lang.String getCurrentDimension()
FavoritesUI
. Only the favorites for the current dimension are displayed.public void setCurrentDimension(java.lang.String currentDimension)
FavoritesUI
.current
- dimension String namepublic oracle.cabo.ui.UINode getContentUINode()
public java.lang.String getDisplayName()
getDisplayName
in class BaseViewTool
ViewToolbar
public boolean isEnabled()
isEnabled
in class BaseViewTool
true
if enabled, false
otherwiseViewToolbar
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |