Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.thin.beans.tools
Class BaseViewTool

java.lang.Object
  |
  +--oracle.dss.thin.beans.BaseThinBeanUI
        |
        +--oracle.dss.thin.beans.tools.BaseViewTool
All Implemented Interfaces:
CheckpointState, ErrorHandlerCallback, ThinBean, ThinBeanUI, ViewTool
Direct Known Subclasses:
FavoriteTool, RotateTool, SortTool, ViewTypeTool

public abstract class BaseViewTool
extends BaseThinBeanUI
implements ViewTool

Base class for all the ViewTools. The BaseViewTool provides default implementation for methods of the ViewTool interface.

See Also:
ViewTool, ViewToolListener, ViewToolEvent

Fields inherited from interface oracle.dss.thin.beans.ThinBeanUI
EVENT_HANDLED, EVENT_NOT_HANDLED, EVENT_RESPONSE_DONE

 

Constructor Summary
BaseViewTool()
          Constructor.
BaseViewTool(ThinDataviewCommon view)
          Constructor, taking a View as a parameter.

 

Method Summary
 void addViewToolListener(ViewToolListener l)
          Registers a listener for the ViewToolEvents
 java.lang.String getDestination()
          Returns the destination URL for the tool.
 java.lang.String getDisplayName()
          Retrieves the name used to display this tool on the ViewToolbar
 java.lang.String getToolbarName()
          Returns the thin bean name of the toolbar this tools belongs to When the tool belongs to a toolbar, all the events generated by this tool will be handled by the toolbar.
 ThinDataviewCommon getView()
          Retrieves the view modified by this ViewTool.
 boolean isEnabled()
          Indicates whether the tool's link appears on the toolbar.
 boolean isVisible()
          Indicates whether the tool's controls are visible in the ViewToolbar
 void removeViewToolListener(ViewToolListener l)
          Unregisters a listener for the ViewToolEvents
 void setDestination(java.lang.String destination)
          Specifies the destination URL for the tool.
 void setDisplayName(java.lang.String name)
          Sets the name used to display this tool on the ViewToolbar
 void setEnabled(boolean enabled)
          Specifies whether the tool's link appears on the toolbar.
 void setToolbarName(java.lang.String toolbarName)
          Specifies the thin bean name of the toolbar this tools belongs to When the tool belongs to a toolbar, all the events generated by this tool will be handled by the toolbar.
 void setView(ThinDataviewCommon view)
          Specifies the view modified by this ViewTool.
 void setVisible(boolean visible)
          Specifies whether the tool's controls are visible in the ViewToolbar

 

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.tools.ViewTool
getContentUINode

 

Methods inherited from interface oracle.dss.thin.beans.ThinBeanUI
getEventTarget, getLocale, handleEvent, setEventTarget, setLocale

 

Methods inherited from interface oracle.dss.thin.beans.ThinBean
getState, getThinBeanName, setBaseState, setState, setThinBeanName

 

Constructor Detail

BaseViewTool

public BaseViewTool()
Constructor.

BaseViewTool

public BaseViewTool(ThinDataviewCommon view)
Constructor, taking a View as a parameter.
Parameters:
view - The ThinDataviewCommon implementation
Method Detail

setView

public void setView(ThinDataviewCommon view)
Specifies the view modified by this ViewTool.
Specified by:
setView in interface ViewTool
Parameters:
a - view implementing interface ThinDataviewCommon

getView

public ThinDataviewCommon getView()
Retrieves the view modified by this ViewTool.
Specified by:
getView in interface ViewTool
Returns:
a view implementing interface ThinDataviewCommon

addViewToolListener

public void addViewToolListener(ViewToolListener l)
Registers a listener for the ViewToolEvents
Specified by:
addViewToolListener in interface ViewTool
Parameters:
l - The listener to add.
See Also:
ViewToolEvent

removeViewToolListener

public void removeViewToolListener(ViewToolListener l)
Unregisters a listener for the ViewToolEvents
Specified by:
removeViewToolListener in interface ViewTool
Parameters:
l - The listener to remove.
See Also:
ViewTypeChangedEvent

getDisplayName

public java.lang.String getDisplayName()
Retrieves the name used to display this tool on the ViewToolbar
Specified by:
getDisplayName in interface ViewTool
Returns:
tool display name
See Also:
ViewToolbar

setDisplayName

public void setDisplayName(java.lang.String name)
Sets the name used to display this tool on the ViewToolbar
Specified by:
setDisplayName in interface ViewTool
Parameters:
display - name
See Also:
ViewToolbar

isVisible

public boolean isVisible()
Indicates whether the tool's controls are visible in the ViewToolbar
Specified by:
isVisible in interface ViewTool
Returns:
true if visible
See Also:
ViewToolbar

setVisible

public void setVisible(boolean visible)
Specifies whether the tool's controls are visible in the ViewToolbar
Specified by:
setVisible in interface ViewTool
Parameters:
visible - true if the controls should be visible false otherwise
See Also:
ViewToolbar

isEnabled

public boolean isEnabled()
Indicates whether the tool's link appears on the toolbar. For example, when the current View's DataSource is not an instance of an OLAP Query, the SortTool and FavoriteTool become disabled.
Specified by:
isEnabled in interface ViewTool
Returns:
true if enabled, false otherwise
See Also:
ViewToolbar

setEnabled

public void setEnabled(boolean enabled)
Specifies whether the tool's link appears on the toolbar. For example, when the current View's DataSource is not an instance of an OLAP Query, the SortTool and FavoriteTool become disabled.
Specified by:
setEnabled in interface ViewTool
Parameters:
true - if enabled, false otherwise
See Also:
ViewToolbar

getDestination

public java.lang.String getDestination()
Returns the destination URL for the tool. When the destination URL is set on the ViewTool, the ViewToolbar renders a link with the tool display name and the given destination. When the destination is not set, the ViewToolbar renders a link which generates BIConstants.SHOW_TOOL_EVENT to display the tool's controls in the same page.
Specified by:
getDestination in interface ViewTool
Returns:
destination URL
See Also:
ViewToolbar

setDestination

public void setDestination(java.lang.String destination)
Specifies the destination URL for the tool. the destination URL for the tool. When the destination URL is set on the ViewTool, the ViewToolbar renders a link with the tool display name and the given destination. When the destination is not set, the ViewToolbar renders a link which generates BIConstants.SHOW_TOOL_EVENT to display the tool's controls in the same page.
Specified by:
setDestination in interface ViewTool
Parameters:
destination - URL
See Also:
ViewToolbar

getToolbarName

public java.lang.String getToolbarName()
Returns the thin bean name of the toolbar this tools belongs to When the tool belongs to a toolbar, all the events generated by this tool will be handled by the toolbar.
Specified by:
getToolbarName in interface ViewTool
Returns:
the thin bean name of the toolbar
See Also:
ViewToolbar

setToolbarName

public void setToolbarName(java.lang.String toolbarName)
Specifies the thin bean name of the toolbar this tools belongs to When the tool belongs to a toolbar, all the events generated by this tool will be handled by the toolbar.
Specified by:
setToolbarName in interface ViewTool
Parameters:
toolbarName - the thin bean name of the toolbar
See Also:
ViewToolbar

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.