|
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 | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--oracle.dss.dataView.Dataview
The base View. In the Model-View-Controller architecture, a view presents data to users. This class defines methods and fields that are common to all the views in the BI Beans.
Application developers normally work with the concrete subclasses of this class. However, application developers will call some of these methods in the concrete subclasses.
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static int |
DATAVIEW_FOOTNOTE The Footnote component of this Dataview . |
static java.lang.String |
DATAVIEW_FOOTNOTE_NAME Name of the footnote component that the view uses. |
static int |
DATAVIEW_SUBTITLE The Subtitle component of this Dataview . |
static java.lang.String |
DATAVIEW_SUBTITLE_NAME Name of the subtitle component that the view uses. |
static int |
DATAVIEW_TITLE The Title component of this Dataview . |
static java.lang.String |
DATAVIEW_TITLE_NAME Name of the title component that the view uses. |
static int |
DEFAULT_ZOOM_FACTOR Default zoom factor. |
static int |
FOOTNOTE The Footnote component of this view. |
static java.lang.String |
FOOTNOTE_NAME Name of the footnote component. |
static int |
PAGE_CONTROL A PagingControl component of this view. |
static int |
PAGE_HEADER The page header for this view. |
static java.lang.String |
PAGE_HEADER_NAME Name of the page header. |
static int |
PAGE_ITEM A PageItem component of this view. |
static java.lang.String |
PAGE_ITEM_NAME Name of the page item. |
static java.lang.String |
PAGING_COMPONENT_NAME Name of the paging component. |
static int |
PAGING_CONTROL_ABOVE_TITLES Display the paging contol above the titles in this Dataview . |
static int |
PAGING_CONTROL_BELOW_TITLES Display the paging control below the titles in this Dataview . |
static int |
RESET_EVERYTHING Reset everything, to make the Dataview as if it were newly created. |
static int |
RESET_NONE Reset no default property values or listeners and callbacks before applying XML. |
static int |
RESET_XML_PROPERTIES Reset properties to their defaults. |
static int |
SUBTITLE The Subtitle component of this view. |
static java.lang.String |
SUBTITLE_NAME Name of the subtitle component. |
static int |
TITLE The Title component of this view. |
static java.lang.String |
TITLE_NAME Name of the title component. |
static int |
VIEW_TYPE_CROSSTAB View type: Crosstab. |
static int |
VIEW_TYPE_GRAPH View type: Graph. |
static int |
VIEW_TYPE_TABLE View type: Table. |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Dataview() Constructor. |
Method Summary | |
void |
addControllerListener(ControllerListener l) Adds a listener for user gestures that do not affect data, such as selecting or resizing a component. |
void |
addDataListener(DataListener l) Adds a listener for changes to data, such as drilling or pivoting data. |
void |
addErrorHandler(ErrorHandler eh) Specifies the error handler for this view. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) Adds a property change listener for this view. |
void |
addViewFocusListener(ViewFocusListener l) Adds a ViewFocusListener to this view. |
void |
addViewKeyListener(ViewKeyListener l) Adds a ViewKeyListener to this view. |
void |
addViewListener(ViewListener l) Adds a ViewListener to the listener list. |
void |
addViewMouseListener(ViewMouseListener l) Adds a ViewMouseListener to this view. |
void |
addViewMouseMotionListener(ViewMouseMotionListener l) Adds a ViewMouseMotionListener to this view. |
void |
cleanUp() Clears the memory of the view. |
Controller |
getController() Retrieves the controller for this Dataview . |
DataDirector |
getDataDirector() Retrieves the data director for this view. |
DataSource |
getDataSource() Retrieves the data source for this view. |
DataviewTitles |
getDataviewFootnote() Retrieves the footnote for this view. |
DataviewTitles |
getDataviewSubtitle() Retrieves the subtitle for this view. |
DataviewTitles |
getDataviewTitle() Retrieves the title for this view. |
java.lang.String |
getDescription() Retrieves the description of this view. |
int |
getHTMLPagingControlWidth() Retrieves the number of page items that are displayed in the paging control before it wraps to the next line. |
TokenSubstitution |
getInsertCallBack() Deprecated. As of 1.6, replaced by getTokenSubstitution() |
java.util.Locale |
getLocale() Retrieves the Locale that this Dataview uses. |
java.lang.String |
getLocalName() Retrieves the local name for this view. |
Model |
getModel() Retrieves the model for this Dataview . |
java.lang.String |
getName() Retrieves the name of this view. |
PagingControl |
getPagingControl() Retrieves the paging control for this view. |
int |
getPagingControlPosition() Retrieves the location of the paging control in this Dataview . |
abstract PersistableAttributes |
getPersistableAttributes(PersistableAttributes attrs) Retrieves the attributes of this Dataview , for searching. |
AggregateInfo[] |
getPersistableComponents() Retrieves the persistable components that this Dataview aggregates. |
java.util.Vector |
getPhysicalComponents() Retrieves a Vector of the physical components in this view. |
PopupManager |
getPopupManager() Retrieves the popup manager for this view. |
abstract int |
getPresentationHeight() Retrieveis the height of this view, in pixels. |
abstract int |
getPresentationWidth() Retrieves the width of this view, in pixels. |
RolloverTextManager |
getRolloverTextManager() Retrieves the rollover text manager for this view. |
abstract ComponentHandle |
getSelectedObject() Retrieves the selected component. |
abstract int |
getStartColumn() Deprecated. As of 2.6.0.27, replaced by GridView.getStartColumn() or by Graph.getStartGroup() or by Graph.getStartSeries() . |
abstract int |
getStartRow() Deprecated. As of 2.6.0.27, replaced by GridView.getStartRow() or by Graph.getStartSeries() or by Graph.getStartGroup() |
TokenSubstitution |
getTokenSubstitution() Retrieves the handler for token substitution in this view. |
abstract int |
getViewType() Retrieves the specific type of subclass of this Dataview . |
java.lang.String |
getXML(boolean allProperties) Retrieves the XML string for this Dataview . |
java.lang.String |
getXMLAsString() Retrieves the XML representation of this Dataview . |
boolean |
isDrillingEnabled() Indicates whether drilling is allowed in this view. |
boolean |
isHTMLPagingControlAutosubmit() Indicates whether automatic submssion of information is enabled for the paging control. |
boolean |
isPagingControlVisible() Indicates whether the paging control appears in this view. |
abstract boolean |
isSwapAllowed() Indicates whether swapping is allowed in this view. |
boolean |
isXMLValidated() Indicates whether the Dataview validates XML against its DTD. |
abstract boolean |
readXML(java.io.InputStream stream, int reset) Applies XML to this Dataview , from a String . |
void |
removeControllerListener(ControllerListener l) Removes a listener for user gestures that do not affect data. |
void |
removeDataListener(DataListener l) Removes a listener for user gestures that affect data. |
void |
removeErrorHandler() Removes a customized error handler for this view. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) Removes a property change listener from this view. |
void |
removeViewFocusListener(ViewFocusListener l) Removes a ViewFocusListener from this view. |
void |
removeViewKeyListener(ViewKeyListener l) Removes a ViewKeyListener from this view. |
void |
removeViewListener(ViewListener l) Removes a ViewListener from the listener list. |
void |
removeViewMouseListener(ViewMouseListener l) Removes a ViewMouseListener from this view. |
void |
removeViewMouseMotionListener(ViewMouseMotionListener l) Removes a ViewMouseMotionListener from this view. |
void |
resetToDefault(int reset) Resets properties of this Dataview to their default values. |
abstract boolean |
selectObject(ComponentHandle id) Select a component. |
void |
setDataSource(DataSource ds) Specifies the data source for this view. |
void |
setDescription(java.lang.String n) Specifies a description for this view. |
void |
setDrillingEnabled(boolean b) Specifies whether drilling is allowed in this view. |
void |
setEnabled(boolean enabled) Specifies whether this Dataview is enabled. |
void |
setHTMLPagingControlAutosubmit(boolean autosubmit) Specifies whether the paging control automatically submits information when someone changes a page dimension member. |
void |
setHTMLPagingControlWidth(int width) Specifies the number of page items that are displayed in the paging control before it wraps to the next line. |
void |
setInsertCallBack(TokenSubstitution token) Deprecated. As of 1.6, replaced by setTokenSubstitution(TokenSubstitution token) |
void |
setLocale(java.util.Locale loc) Specifies the Locale for this Dataview . |
void |
setLocalName(java.lang.String n) Specifies a local name for this view. |
void |
setName(java.lang.String n) Specifies the name of this view. |
void |
setPagingControlPosition(int loc) Specifies the location of the paging control in this Dataview . |
void |
setPagingControlVisible(boolean v) Specifies whether the paging control appears in this view. |
void |
setPersistableAttributes(PersistableAttributes attrs) Specifies persistable attributes that can be used in searches of the repository. |
void |
setPopupManager(PopupManager p) Specifies a popup manager for this view. |
void |
setRolloverTextManager(RolloverTextManager rm) Specifies the rollover text manager for this view. |
abstract void |
setStartColumn(int c) Deprecated. As of 2.6.0.27, replaced by GridView.setStartColumn(int) or by Graph.setStartGroup(int) or by Graph.setStartSeries(int) . |
abstract void |
setStartRow(int r) Deprecated. As of 2.6.0.27, replaced by GridView.setStartRow(int) or by Graph.setStartSeries(int) or by Graph.setStartGroup(int) |
abstract void |
setSwapAllowed(boolean swap) Specifies whether users can swap layers in this view. |
void |
setTokenSubstitution(TokenSubstitution token) Specifies a handler for token substitution in this view. |
abstract boolean |
setXML(java.lang.String xmlString, int reset) Applies XML to this Dataview , from a String . |
abstract boolean |
setXMLAsString(java.lang.String xml) Specifies the XML representation of this Dataview . |
void |
setXMLValidated(boolean validate) Specifies whether this Dataview validates XML against its DTD. |
void |
writeXML(java.io.OutputStream stream, boolean allProperties) Writes XML for this Dataview to an output stream. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.dss.rules.ComponentTypeConverter |
convertComponentTypeToInteger, convertComponentTypeToString |
Methods inherited from interface oracle.dss.util.persistence.Persistable |
initialize, setPersistableComponents |
Methods inherited from interface oracle.dss.dataView.DataviewCommon |
getErrorHandler |
Field Detail |
public static final int TITLE
Title
component of this view. Currently, this value is used only by graphs.Title
public static final int SUBTITLE
Subtitle
component of this view. Currently, this value is used only by graphs.Subtitle
public static final int FOOTNOTE
Footnote
component of this view. Currently, this value is used only by graphs.Footnote
public static final int PAGE_HEADER
page header
for this view.public static final int PAGE_ITEM
PageItem
component of this view.public static final int PAGE_CONTROL
PagingControl
component of this view.public static final int DATAVIEW_TITLE
Title
component of this Dataview
.Title
public static final int DATAVIEW_SUBTITLE
Subtitle
component of this Dataview
.Subtitle
public static final int DATAVIEW_FOOTNOTE
Footnote
component of this Dataview
.Footnote
public static int DEFAULT_ZOOM_FACTOR
public static final java.lang.String TITLE_NAME
public static final java.lang.String SUBTITLE_NAME
public static final java.lang.String FOOTNOTE_NAME
public static final java.lang.String PAGE_HEADER_NAME
public static final java.lang.String PAGE_ITEM_NAME
public static final java.lang.String PAGING_COMPONENT_NAME
public static final java.lang.String DATAVIEW_TITLE_NAME
public static final java.lang.String DATAVIEW_SUBTITLE_NAME
public static final java.lang.String DATAVIEW_FOOTNOTE_NAME
public static final int RESET_NONE
resetToDefault
method.resetToDefault(int)
, readXML(java.io.InputStream, int)
, setXML(java.lang.String, int)
public static final int RESET_XML_PROPERTIES
resetToDefault(int)
, readXML(java.io.InputStream, int)
, setXML(java.lang.String, int)
public static final int RESET_EVERYTHING
Dataview
as if it were newly created. Resets all properties to their default settings, and removes any registered listeners and callbacks. Used mostly with the resetToDefault
method.resetToDefault(int)
public static final int VIEW_TYPE_CROSSTAB
public static final int VIEW_TYPE_GRAPH
public static final int VIEW_TYPE_TABLE
public static final int PAGING_CONTROL_ABOVE_TITLES
Dataview
.public static final int PAGING_CONTROL_BELOW_TITLES
Dataview
.Constructor Detail |
public Dataview()
New subclasses of this Dataview
should also set a controller and a model in their constructors.
Method Detail |
public void setPagingControlPosition(int loc)
Dataview
. If loc
is not valid, then this method positions the paging control above the titles, as if PAGING_CONTROL_ABOVE_TITLES
had been specified as the location.loc
- A constant that indicates the location for the paging control. Constants begin with PAGING_CONTROL.public int getPagingControlPosition()
Dataview
.public void setInsertCallBack(TokenSubstitution token)
setTokenSubstitution(TokenSubstitution token)
VariableSubstitution
. You need to call this method only if you provide your own handler for allowing users to insert variables.varsub
- The token substitution handler for this view.public TokenSubstitution getInsertCallBack()
getTokenSubstitution()
VariableSubstitution
.public void setTokenSubstitution(TokenSubstitution token)
TokenSubstitution
. You need to call this method only if you provide your own handler for allowing users to insert tokens.setTokenSubstitution
in interface UIDataview
token
- The token substitution handler for this view.public TokenSubstitution getTokenSubstitution()
TokenSubstitution
.getTokenSubstitution
in interface UIDataview
TokenSubstitutionAdapter
.public void setDataSource(DataSource ds)
Model
class in a visualization bean represents the DataSource
to the view, but the DataSource
is the real source of the data.setDataSource
in interface DataviewCommon
ds
- The data source for this view.public DataSource getDataSource()
getDataSource
in interface DataviewCommon
DataSource
for this view. If no model or data source has been set for this view, this method returns null
.public DataviewTitles getDataviewTitle()
getDataviewTitle
in interface UIDataview
public DataviewTitles getDataviewSubtitle()
getDataviewSubtitle
in interface UIDataview
public DataviewTitles getDataviewFootnote()
getDataviewFootnote
in interface UIDataview
public DataDirector getDataDirector()
public void addControllerListener(ControllerListener l)
ControllerListener
and put the code to respond to the selection in the componentSelected
method. You can simply extend the ControllerListenerAdapter
, so that you do not have to implement all of the methods in the interface.addControllerListener
in interface UIDataview
l
- The listener to add.ControllerListener.componentSelected(oracle.dss.dataView.ControllerEvent)
, ControllerListenerAdapter
public void removeControllerListener(ControllerListener l)
removeControllerListener
in interface UIDataview
l
- The listener to remove.public void addDataListener(DataListener l)
For example, if you want to intercept drill requests, implement a DataListener
. In the viewDrillRequesting
method, put the code for responding to the drill request. You can simply extend the DataListenerAdapter
class, so that you do not have to implement the other methods in the interface.
l
- The listener to add.DataListener.viewDrillRequesting(oracle.dss.dataView.DrillEvent)
, DataListenerAdapter
public void removeDataListener(DataListener l)
l
- The listener to remove.public void addErrorHandler(ErrorHandler eh)
DataSource
, and when an internal error condition or exception occurs.
The default error handler prints messages to the console.
Use this method to install your own error handler. This method then sets the error handler on the Model
.
addErrorHandler
in interface ErrorHandlerCallback
eh
- The error handler to use.public void removeErrorHandler()
Model
. The default error handler prints information to the console.removeErrorHandler
in interface ErrorHandlerCallback
public void addViewMouseListener(ViewMouseListener l)
ViewMouseListener
to this view.l
- The listener to add.public void removeViewMouseListener(ViewMouseListener l)
ViewMouseListener
from this view.l
- The listener to remove.public void addViewMouseMotionListener(ViewMouseMotionListener l)
ViewMouseMotionListener
to this view.l
- The listener to remove.public void removeViewMouseMotionListener(ViewMouseMotionListener l)
ViewMouseMotionListener
from this view.l
- The listener to remove.public void addViewKeyListener(ViewKeyListener l)
ViewKeyListener
to this view.l
- The listener to add.public void removeViewKeyListener(ViewKeyListener l)
ViewKeyListener
from this view.l
- The listener to remove.public void addViewFocusListener(ViewFocusListener l)
ViewFocusListener
to this view.l
- The listener to add.public void removeViewFocusListener(ViewFocusListener l)
ViewFocusListener
from this view.l
- The listener to remove.public void addViewListener(ViewListener l)
ViewListener
to the listener list.l
- The listener to add.public void removeViewListener(ViewListener l)
l
- The listener to remove.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in class javax.swing.JComponent
l
- The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in class javax.swing.JComponent
l
- The listener to remove.public void setXMLValidated(boolean validate)
Dataview
validates XML against its DTD. By default, the table does not validate the XML. If there is a parsing error in the XML, then the Dataview
. ignores the badly formed XML. If you want readXML
and setXML
to throw a BIParseException
if they encounter XML that cannot be parsed, then pass true
to this method.validate
- true
to have XML validated, false
to have the Dataview
ignore invalid XML.setXML(java.lang.String, int)
public boolean isXMLValidated()
Dataview
validates XML against its DTD.true
if the Dataview
validates XML, false
if the Dataview
applies XML without validation.public abstract boolean selectObject(ComponentHandle id)
id
- A ComponentHandle
that represents the component to select.true
if the component is successfully selected, false
if not.public abstract ComponentHandle getSelectedObject()
getSelectedObject
in interface UIDataview
ComponentHandle
.public abstract int getPresentationHeight()
public abstract int getPresentationWidth()
public final void setName(java.lang.String n)
setName
in class java.awt.Component
n
- The name to use for this view.public final java.lang.String getName()
getName
in class java.awt.Component
public final void setLocalName(java.lang.String n)
n
- The local name of this view bean.public final java.lang.String getLocalName()
public final void setDescription(java.lang.String n)
n
- The description to use for this view.public final java.lang.String getDescription()
public final void setDrillingEnabled(boolean b)
b
- true
to enable drilling; false
to disable drilling.public final boolean isDrillingEnabled()
true
if drilling is enabled, false
if drilling is disabled.public abstract void setStartRow(int r)
GridView.setStartRow(int)
or by Graph.setStartSeries(int)
or by Graph.setStartGroup(int)
r
- The first row of data to display.public abstract int getStartRow()
GridView.getStartRow()
or by Graph.getStartSeries()
or by Graph.getStartGroup()
public abstract void setStartColumn(int c)
GridView.setStartColumn(int)
or by Graph.setStartGroup(int)
or by Graph.setStartSeries(int)
.c
- The first column of data to display.public abstract int getStartColumn()
GridView.getStartColumn()
or by Graph.getStartGroup()
or by Graph.getStartSeries()
.public void setPopupManager(PopupManager p)
p
- The popup manager for this view.public PopupManager getPopupManager()
public void setRolloverTextManager(RolloverTextManager rm)
rm
- The rollover text manager for this view.public RolloverTextManager getRolloverTextManager()
public java.util.Vector getPhysicalComponents()
Vector
of the physical components in this view. Physical components are objects that extend JComponent
and have physical Java manifestations, as opposed to virtual components that extend Object
and have only a logical Java manifestation.
For a GridView
, the objects in the vector include components like the title, subtitle, footnote, data body, headers, and the paging control. For a Graph
, the vector includes only the PFJ
object and the paging control.
public Model getModel()
Dataview
. In the Model-View-Controller architecture, the model is responsible for handling the data that is displayed in a view. In the full set of BI Beans, the DataSource
is the "big" model. The model that this method returns interacts with the DataSource
, retrieving data and having the data formatted so that the view can display it.getModel
in interface DataviewCommon
Model
for this Dataview
.public Controller getController()
Dataview
. In the Model-View-Controller architecture, the controller is responsible for attending to mouse events and key events.Controller
for this Dataview
.public void setLocale(java.util.Locale loc)
Locale
for this Dataview
.setLocale
in class java.awt.Component
loc
- The Locale
for this Dataview
.public java.util.Locale getLocale()
Locale
that this Dataview
uses.getLocale
in interface DataviewCommon
getLocale
in class java.awt.Component
Locale
for this Dataview
.public java.lang.String getXML(boolean allProperties)
Dataview
. The XML can include values for all of the properties in the Dataview
, or, for better performance, it can include only the values that are different from the default values.
Notes: This method sets the current version as the version in the XML.
The XML does not contain attributes for the Locale
property or the XMLValidated
property.
allProperties
- true
to retrieve XML for all properties, false
to retrieve XML only for properties whose values are different from the default property values.Dataview
.public void writeXML(java.io.OutputStream stream, boolean allProperties)
Dataview
to an output stream. The XML can include values for all of the properties in the Dataview
, or, for better performance, it can include only the values that are different from the default values.
Notes: This method sets the current version as the version in the XML.
The XML does not contain attributes for the Locale
property or the XMLValidated
property.
stream
- The output stream to which to write the XML.allProperties
- true
to write out XML for all properties, false
to write out XML only for properties whose values are different from the default property values.public PagingControl getPagingControl()
null
.public void setPagingControlVisible(boolean v)
setPagingControlVisible
in interface PagingControlAttributes
v
- true
to make the paging control visible, false
to hide it.public boolean isPagingControlVisible()
isPagingControlVisible
in interface PagingControlAttributes
true
if the paging control appears in this view, false
if it does not.public abstract int getViewType()
Dataview
. This method is implemented in subclasses of Dataview
.getViewType
in interface UIDataview
VIEW_TYPE_CROSSTAB
, VIEW_TYPE_GRAPH
, VIEW_TYPE_TABLE
public void setEnabled(boolean enabled)
Dataview
is enabled. When a Dataview
is disabled, it is visible, but users cannot operate on the Dataview
.setEnabled
in class javax.swing.JComponent
enabled
- true
to enable this Dataview
, false
to disable it.public void resetToDefault(int reset)
Dataview
to their default values. The reset
parameter determines whether to reset only the properties or to reset the properties and remove registered listeners and callbacks.
This method is helpful when you want to reuse a Dataview
rather than instantiate a new one.
reset
- A constant that indicates how much to reset. Valid constants are listed in the See Also section. If you pass an invalid value or RESET_NONE, then this method logs a message with the error handler and does not change any properties.RESET_XML_PROPERTIES
, RESET_EVERYTHING
public abstract boolean readXML(java.io.InputStream stream, int reset) throws BIIOException, BISAXException, BIParseException
Dataview
, from a String
. This method reads the XML from xmlString
and applies its attribute settings to this Dataview
. The reset
parameter determines how much of the Dataview
to reset before applying XML. In general, you can:
Dataview
without resetting anything to default valuesDataview
Resetting returns property values in the Dataview
to the default values for the version that is specified in the XML.
stream
- The XML to apply to this Dataview
.reset
- A constant that indicates how much and how far to reset the view before applying XML. Valid constants appear in the See Also section. If you pass an invalid constant, then this method logs a message with the error handler and does not reset any property values.true
if the XML is successfully applied to this Dataview
, false
if an IO exception occurs.BIIOException
- If an error occurs in reading xmlString
.BISAXException
- If a general SAX exception occurs in parsing the XML.BIParseException
- If the XML syntax is not correct, or if the XML is not valid according to the DTD that is specified in the XML.RESET_NONE
, RESET_XML_PROPERTIES
, RESET_EVERYTHING
public abstract boolean setXML(java.lang.String xmlString, int reset) throws BIIOException, BISAXException, BIParseException
Dataview
, from a String
. This method reads the XML from xmlString
and applies its attribute settings to this Dataview
. The reset
parameter determines how much of the Dataview
to reset before applying XML. In general, you can:
Dataview
without resetting anything to default valuesDataview
Resetting returns property values in the Dataview
to the default values for the version that is specified in the XML.
xmlString
- The XML to apply to this Dataview
.reset
- A constant that indicates how much and how far to reset the view before applying XML. Valid constants appear in the See Also section. If you pass an invalid constant, then this method logs a message with the error handler and does not reset any property values.true
if the XML is successfully applied to this Dataview
, false
if an IO exception occurs.BIIOException
- If an error occurs in reading xmlString
.BISAXException
- If a general SAX exception occurs in parsing the XML.BIParseException
- If the XML syntax is not correct, or if the XML is not valid according to the DTD that is specified in the XML.RESET_NONE
, RESET_XML_PROPERTIES
, RESET_EVERYTHING
public abstract void setSwapAllowed(boolean swap)
SwapAllowed
is true
, then users can click the two layers that they want to swap, in order to swap the layers. The view will then ask the data source to perform a pivot of type DataDirector.PIVOT_SWAP
.
When SwapAllowed
is false
, then users must move the two layers separately, and the view will ask for two separate pivot actions of type DataDirector.PIVOT_MOVE_BEFORE
or DataDirector.PIVOT_MOVE_AFTER
.
By default, swapping is disabled.
swap
- true
to enable swapping, false
to disable it.isSwapAllowed()
, DataDirector
public abstract boolean isSwapAllowed()
true
, then users can swap items by clicking the two items. When this method returns false
, then users must move each item separately.true
if swapping is enabled, false
if it is not.setSwapAllowed(boolean)
public void cleanUp()
public abstract PersistableAttributes getPersistableAttributes(PersistableAttributes attrs)
Dataview
, for searching. This method adds the attributes that this Dataview
defines to the attributes that the application has specified. The attributes are used by the persistence service, when users search the repository for components that have particular attribute values.getPersistableAttributes
in interface Persistable
attrs
- The searchable attributes that the application has specified for this Dataview
.PersistableAttributes
that includes the application specified attributes as well as the attributes that are specific to this Dataview
.public void setPersistableAttributes(PersistableAttributes attrs)
Dataview
itself can be used as persistable attributes.setPersistableAttributes
in interface Persistable
attrs
- Any PersistableAttributes
.public abstract boolean setXMLAsString(java.lang.String xml) throws BIPersistenceException
Dataview
. The persistence service calls this method when the view is restored from the BI Beans Catalog. Application developers should not call this method. To load XML from a file, call setXML
or readXML
.setXMLAsString
in interface StringXMLizable
xml
- The XML representation of the view.true
if the XML was successfully set, false
if not.BIPersistenceException
- If a problem occurs in setting the XML.readXML(java.io.InputStream, int)
, setXML(java.lang.String, int)
public AggregateInfo[] getPersistableComponents()
Dataview
aggregates. Dataview
objects aggregate the data source that defines the data that view displays.
The persistence service calls this method when the view is restored from the BI Beans Catalog. Application developers should not call this method.
getPersistableComponents
in interface Persistable
Dataview
, in an AggregateInfo
array.public java.lang.String getXMLAsString()
Dataview
. This method is called by the persistence service when you save the Dataview
to the BI Beans Catalog.
This method calls getXML(false)
, so the XML that is stored in the Catalog has only property values that are different from the default values.
Application developers should not call this method. To create a file that has the XML for this Dataview
, call the writeXML
method or the getXML
method.
getXMLAsString
in interface StringXMLizable
Dataview
.getXML(boolean)
, writeXML(java.io.OutputStream, boolean)
public void setHTMLPagingControlAutosubmit(boolean autosubmit)
This property is used for the thin beans only.
setHTMLPagingControlAutosubmit
in interface DataviewCommon
autosubmit
- true
to enable automatic submission, false
to disable it.public boolean isHTMLPagingControlAutosubmit()
isHTMLPagingControlAutosubmit
in interface DataviewCommon
true
if automatic submission is enabled, false
if it is disabled.public void setHTMLPagingControlWidth(int width)
width
to -1, then all page items will be displayed on the same line. By default, width
is set to 3. This property is used for the thin beans only.setHTMLPagingControlWidth
in interface DataviewCommon
width
- The number of page items to display before wrapping.public int getHTMLPagingControlWidth()
getHTMLPagingControlWidth
in interface DataviewCommon
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |