|
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.toolbar.ViewToolbar
The ViewToolbar is a container for the ViewTool
s.
The ViewToolbar
generates the following events:
BIConstants.SHOW_TOOL_EVENT
-- generated when a tool is selected on the toolbarBIConstants.HIDE_TOOLS_EVENT
-- generated when the tools are hiddenThe ViewToolbar
handles the following events:
BIConstants.SHOW_TOOL_EVENT
-- generated when a tool is selected on the toolbarBIConstants.HIDE_TOOLS_EVENT
-- generated when the tools are hiddenWhen the ViewToolbar creates its tools automatically the tool names are set to [toolbar name] + [default tool name] where the default tool names are:
For more information about using the ViewToolbar, see the "View Toolbar" topic in the BI Beans Help system.
ViewTool
, ViewToolListener
, ViewToolEvent
, ViewTypeTool
, RotateTool
, FavoriteTool
, SortTool
Fields inherited from interface oracle.dss.thin.beans.ThinBeanUI |
EVENT_HANDLED, EVENT_NOT_HANDLED, EVENT_RESPONSE_DONE |
Constructor Summary | |
ViewToolbar() Constructor. |
Method Summary | |
void |
addViewTool(ViewTool viewTool) Registers a ViewTool with the toolbar |
void |
addViewToolListener(ViewToolListener l) Registers a listener for the ViewToolEvent s |
void |
checkpointState() Tells the ThinBean to start tracking state changes. |
java.lang.String |
getCheckpointState() Used to retrieve the state differences from the last time that state was checkpointed. |
java.lang.String |
getState() Returns a String that represents the changes in the ViewToolbar , since the ViewToolbar was created or since setBaseState() was called. |
ThinDataviewCommon |
getView() Retrieves the view modified by this ViewToolbar . |
java.util.Vector |
getViewTools() Retrieves all the ViewTool thin beans |
java.lang.String |
getVisibleTool() Retrieves the thin bean name of the currently visible tool |
int |
handleEvent(QueryParameterProvider provider) An application's servlet must call handleEvent, when a ThinBean event triggered the servlet request. |
void |
removeViewTool(ViewTool viewTool) Unregisters a ViewTool from the toolbar |
void |
removeViewToolListener(ViewToolListener l) Unregisters a listener for the ViewToolEvent s |
void |
setBaseState() Establishes a base state for the ViewToolbar from which state changes that go onto the state string are tracked. |
void |
setCheckpointState(java.lang.String state) Used to set state differences from the last time that state was checkpointed. |
void |
setLocale(java.util.Locale loc) Specifies the Locale for this ViewToolbar . |
void |
setState(java.lang.String state) Sets a state string that represents the changes on the ViewToolbar , since the ViewToolbar was created or since setBaseState() was called. |
void |
setThinBeanName(java.lang.String thinBeanName) The ThinBeanName is used to uniquely identify a ThinBeanUI . |
void |
setView(ThinDataviewCommon view) Specifies the view modified by this ViewToolbar . |
void |
setVisibleTool(java.lang.String toolName) Sets the tool identified by the parameter to be visible |
Methods inherited from class oracle.dss.thin.beans.BaseThinBeanUI |
addErrorHandler, generateOnClickSubmit, getEventTarget, getLocale, getThinBeanName, removeErrorHandler, setEventTarget |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ViewToolbar()
Method Detail |
public void setBaseState()
ViewToolbar
from which state changes that go onto the state string are tracked. This call will effectively clear the thin bean's current state string.setBaseState
in class BaseThinBeanUI
public void setState(java.lang.String state)
ViewToolbar
, since the ViewToolbar
was created or since setBaseState() was called. This string placed onto the URLs/Forms that an application generates, so that the application can re-establish the thin bean's state from a request's URL. This placing of an application's state onto the URL supports the ability for the application to support re-establishing application state from a bookmark.setState
in class BaseThinBeanUI
a
- ViewToolbar
statepublic java.lang.String getState()
ViewToolbar
, since the ViewToolbar
was created or since setBaseState() was called. This string placed onto the URLs/Forms that an application generates, so that the application can re-establish the thin bean's state from a request's URL. This placing of an application's state onto the URL supports the ability for the application to support re-establishing application state from a bookmark.getState
in class BaseThinBeanUI
ViewToolbar
's statepublic java.lang.String getCheckpointState()
getCheckpointState
in class BaseThinBeanUI
public void setCheckpointState(java.lang.String state) throws ThinException
setCheckpointState
in class BaseThinBeanUI
state
- the state differences from the last checkpointThinException
- if the state could not be setpublic void checkpointState()
checkpointState
in class BaseThinBeanUI
oracle.dss.thin.beans.CheckpointState
ThinBean.getState()
, BIStateManager
public void setView(ThinDataviewCommon view)
ViewToolbar
.a
- view implementing interface ThinDataviewCommon
public ThinDataviewCommon getView()
ViewToolbar
.ThinDataviewCommon
public void addViewToolListener(ViewToolListener l)
ViewToolEvent
sl
- The listener to add.ViewToolEvent
public void removeViewToolListener(ViewToolListener l)
ViewToolEvent
sl
- The listener to remove.ViewTypeChangedEvent
public void setThinBeanName(java.lang.String thinBeanName)
ThinBeanUI
. An application may have multiple thin beans in an application at the same time. Events that an ThinBeanUI
generates will also include a "source" event parameter ( really just a query parameter on a URL ), which has a value that is the ThinBeanName.setThinBeanName
in class BaseThinBeanUI
thinBeanName
- the ThinBeanUI
's namepublic 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 void setVisibleTool(java.lang.String toolName)
toolName
- the tool's thin bean name If no tools match the name, all tools will be hiddenpublic java.lang.String getVisibleTool()
public void addViewTool(ViewTool viewTool)
ViewTool
with the toolbarviewTool
- The view tool to add.ViewTool
public void removeViewTool(ViewTool viewTool)
ViewTool
from the toolbarviewTool
- The view tool to remove.ViewTool
public java.util.Vector getViewTools()
ViewTool
public void setLocale(java.util.Locale loc)
Locale
for this ViewToolbar
.setLocale
in class BaseThinBeanUI
loc
- The Locale
for this ViewToolbar
.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |