|
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.dataView.ThinDataview
Base for ThinGridView
objects. Application developers normally work with the concrete subclasses of this class. However, application developers will call some of these methods in the concrete subclasses.
The ThinDataviewCommon
interface documents the events that the ThinDataview
handles and generates.
ThinDataviewCommon
Fields inherited from interface oracle.dss.thin.beans.dataView.ThinDataviewCommon |
INLINE_ERROR_MSG, INLINE_INFO_MSG, INLINE_WARNING_MSG |
Fields inherited from interface oracle.dss.thin.beans.ThinBeanUI |
EVENT_HANDLED, EVENT_NOT_HANDLED, EVENT_RESPONSE_DONE |
Constructor Summary | |
ThinDataview() Constructor. |
Method Summary | |
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 |
addThinViewListener(ThinViewListener l) Adds a listener for ThinDataviewCommon events, such as export events and save events. |
void |
cleanUp() Clears the memory of this view. |
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 ThinDataviewCommon . |
DataviewTitles |
getDataviewSubtitle() Retrieves the Subtitle for this ThinDataviewCommon . |
DataviewTitles |
getDataviewTitle() Retrieves the Title for this ThinDataviewCommon . |
java.lang.String |
getDescription() Retrieves the description of this view. |
ErrorHandler |
getErrorHandler() Retrieves the current error handler for this view. |
EventTarget |
getEventTarget(java.lang.String event) Retrieves the event target for the specified event. |
java.lang.String |
getExportCharacterEncoding() Retrieves the character encoding that this ThinDataviewCommon uses when it exports its data. |
int |
getHTMLPagingControlWidth() Retrieves the number of page items that are displayed before the paging control wraps. |
java.lang.String |
getInlineMessage() Retrieves the inline message text to display. |
int |
getInlineMessageType() Retrieves the type of inline message to display. |
java.util.Locale |
getLocale() Retrieves the Locale that this ThinDataviewCommon uses. |
java.lang.String |
getLocalName() Retrieves the local name for this view. |
Model |
getModel() Retrieves the model for this DataviewCommon . |
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 ThinDataviewCommon . |
abstract PersistableAttributes |
getPersistableAttributes(PersistableAttributes attrs) Retrieves the attributes of this ThinDataview , for searching. |
AggregateInfo[] |
getPersistableComponents() Retrieves the persistable components that this Dataview aggregates. |
java.lang.String |
getThinBeanName() Retrieves the unique name of this thin bean. |
TokenSubstitution |
getTokenSubstitution() Retrieves the handler for token substitution in this view. |
abstract int |
getViewType() Retrieves the type of view that implements this ThinDataviewCommon . |
java.lang.String |
getXML(boolean allProperties) Retrieves the XML string for this ThinDataview . |
java.lang.String |
getXMLAsString() Retrieves the XML representation of this ThinDataview . |
int |
handleEvent(QueryParameterProvider provider) Handles a thin-bean event. |
void |
initialize(java.util.Hashtable env) Persistable interface |
boolean |
isDrillingEnabled() Indicates whether drilling is allowed in this view. |
boolean |
isEnabled() Indicates whether this ThinDataviewCommon is enabled. |
boolean |
isExternalFootnoteVisible() Indicates whether a footnote appears outside the view. |
boolean |
isExternalSubtitleVisible() Indicates whether a subtitle appears outside the view. |
boolean |
isExternalTitleVisible() Indicates whether a title appears outside the view. |
boolean |
isHTMLPagingControlAutosubmit() Indicates whether changes made in the paging control are automatically submitted to the data source. |
boolean |
isPagingControlVisible() Indicates whether the paging control appears in this view. |
boolean |
isPropertyOverrideFlag(int attrID, java.util.BitSet overrideFlags) |
boolean |
isXMLValidated() Indicates whether the view validates XML against its DTD. |
abstract boolean |
readXML(java.io.InputStream stream, int reset) Applies XML to this ThinDataview , from a String . |
void |
removeDataListener(DataListener l) Removes a listener for data events. |
void |
removeErrorHandler() Removes a customized error handler for this view. |
void |
removeThinViewListener(ThinViewListener l) Removes a listener for ThinDataviewCommon events. |
void |
resetToDefault(int reset) Resets properties of this ThinDataview to their default values. |
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 ThinDataviewCommon is enabled. |
void |
setEventTarget(java.lang.String event, EventTarget target) Specifies an event target for an event that this ThinBeanUI generates. |
void |
setExportCharacterEncoding(java.lang.String encoding) Specifies the character encoding to use when exporting the view. |
void |
setExternalFootnoteVisible(boolean b) Specifies whether a footnote for this ThinDataviewCommon appears outside the view. |
void |
setExternalSubtitleVisible(boolean b) Specifies whether a subtitle for this ThinDataviewCommon appears outside the view. |
void |
setExternalTitleVisible(boolean b) Specifies whether a title for this ThinDataviewCommon appears outside the view. |
void |
setHTMLPagingControlAutosubmit(boolean autosubmit) Specifies whether changes made in the paging control are automatically submitted to the data source. |
void |
setHTMLPagingControlWidth(int width) Specifies the number of page items that are displayed before the paging control wraps to a new line. |
void |
setInlineMessage(java.lang.String msg) Specifies the inline message text to display. |
void |
setInlineMessageType(int type) Specifies the type of temporary inline message to display. |
void |
setLocale(java.util.Locale loc) Specifies the Locale for this ThinDataviewCommon . |
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 ThinDataviewCommon . |
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 BI Beans Catalog. |
void |
setPersistableComponents(AggregateInfo[] persistables) Specifies the list of Persistable components that this ThinDataview aggregates. |
void |
setThinBeanName(java.lang.String thinBeanName) Specifies a unique name for this thin bean. |
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 ThinDataview , from a String . |
abstract boolean |
setXMLAsString(java.lang.String xml) Specifies the XML representation of this ThinDataview . |
void |
setXMLValidated(boolean validate) Specifies whether this view validates XML against its DTD. |
void |
writeXML(java.io.OutputStream stream, boolean allProperties) Writes XML for this ThinDataview to an output stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.dss.thin.beans.ThinBean |
getState, setBaseState, setState |
Methods inherited from interface oracle.dss.rules.ComponentTypeConverter |
convertComponentTypeToInteger, convertComponentTypeToString |
Methods inherited from interface oracle.dss.thin.beans.CheckpointState |
checkpointState, getCheckpointState, setCheckpointState |
Constructor Detail |
public ThinDataview()
Method Detail |
public void setThinBeanName(java.lang.String thinBeanName)
ThinBean
ThinBeanName
as the value of the source
query parameter, to identify the thin bean that should handle the event.setThinBeanName
in interface ThinBean
oracle.dss.thin.beans.ThinBean
thinBeanName
- A unique name for this thin bean.BIConstants.SOURCE
public java.lang.String getThinBeanName()
ThinBean
ThinBeanName
uniquely identifies a thin bean in an application. Thin-bean events use the ThinBeanName
as the value of the source
query parameter, to identify the thin bean that should handle the event.getThinBeanName
in interface ThinBean
oracle.dss.thin.beans.ThinBean
BIConstants.SOURCE
public int handleEvent(QueryParameterProvider provider) throws ThinException
ThinBeanUI
ThinBeanUI
handles events where the value of the source
query parameter is the ThinBeanName
for this thin bean.
You can examine the source
query parameter to determine the thin bean whose handleEvent
to call. Or you can call the handleEvent
for each thin bean, checking the return from this method to discover which thin bean handled the event. Alternately, you can register thin beans with the ServletRequestHandler
and call the handleEvent
method of the ServletRequestHandler
. The ServletRequestHandler
will then route the event to the proper thin bean.
For more information about thin-bean events, see the BI Beans Help system.
handleEvent
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
provider
- The QueryParameterProvider
for the HTTPServletRequest
that is being handled.ThinBeanUI
handled any events. Constants are listed in the See Also section.ThinException
- If an error occurs that interrupts event handling.ThinBeanUI.EVENT_NOT_HANDLED
, ThinBeanUI.EVENT_HANDLED
, ThinBeanUI.EVENT_RESPONSE_DONE
, ServletRequestHandler
public void setEventTarget(java.lang.String event, EventTarget target)
ThinBeanUI
ThinBeanUI
generates. Call this method to specify the ThinBeanUI
that should handle the event. You can also use event targets to direct an event to another part of your application, to change the target frame for an event, and to add application parameters to an event.setEventTarget
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
event
- A constant that identifies the event to target. Valid constants are defined in the BIConstants
interface and end with "_EVENT".target
- The event target that specifies the thin bean that should handle the event.BIConstants
public EventTarget getEventTarget(java.lang.String event)
ThinBeanUI
getEventTarget
in interface ThinBeanUI
oracle.dss.thin.beans.ThinBeanUI
event
- A constant that identifies the event whose target you want. Valid constants are defined in the BIConstants
interface and end with "_EVENT".event
.BIConstants
public abstract int getViewType()
ThinDataviewCommon
ThinDataviewCommon
.getViewType
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
Dataview.VIEW_TYPE_CROSSTAB
, Dataview.VIEW_TYPE_GRAPH
, Dataview.VIEW_TYPE_TABLE
public void addThinViewListener(ThinViewListener l)
ThinDataviewCommon
ThinDataviewCommon
events, such as export events and save events.addThinViewListener
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
l
- The listener to add.ThinViewListenerAdapter
public void removeThinViewListener(ThinViewListener l)
ThinDataviewCommon
ThinDataviewCommon
events.removeThinViewListener
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
l
- The listener to remove.public void setPagingControlPosition(int loc)
ThinDataviewCommon
ThinDataviewCommon
.setPagingControlPosition
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
loc
- A constant that indicates the location for the paging control. Valid constants are listed in the See Also section. If you specify an invalid value, then this method places the paging control above the titles, as if you had set PAGING_CONTROL_ABOVE_TITLES
.Dataview.PAGING_CONTROL_ABOVE_TITLES
, Dataview.PAGING_CONTROL_BELOW_TITLES
public int getPagingControlPosition()
ThinDataviewCommon
ThinDataviewCommon
.getPagingControlPosition
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
Dataview.PAGING_CONTROL_ABOVE_TITLES
, Dataview.PAGING_CONTROL_BELOW_TITLES
public void setInlineMessageType(int type)
ThinDataviewCommon
InlineMessage
property determines the text of the message.
Note: The ThinDataviewCommon
calls this method when it displays messages. Application developers can use it to display custom messages as well.
setInlineMessageType
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
type
- A constant that indicates the type of inline message to display. Valid constants are listed in the See Also section.ThinDataviewCommon.INLINE_ERROR_MSG
, ThinDataviewCommon.INLINE_WARNING_MSG
, ThinDataviewCommon.INLINE_INFO_MSG
, ThinDataviewCommon.setInlineMessage(java.lang.String)
public int getInlineMessageType()
ThinDataviewCommon
InlineMessage
property determines the text of the message. The inline message conveys errors, warnings, or informational messages that are related to actions on the view.
Note: The ThinDataviewCommon
calls this method when it displays messages. Application developers can also use it in displaying custom messages.
getInlineMessageType
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
ThinDataviewCommon.INLINE_ERROR_MSG
, ThinDataviewCommon.INLINE_WARNING_MSG
, ThinDataviewCommon.INLINE_INFO_MSG
, ThinDataviewCommon.getInlineMessage()
public void setInlineMessage(java.lang.String msg)
ThinDataviewCommon
null
after the message is displayed once or when the view's data source is updated. The InlineMessageType
property controls the type of message.
Note: The ThinDataviewCommon
calls this method when it displays messages. Application developers can also use it to display custom messages.
setInlineMessage
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
msg
- The message to display.ThinDataviewCommon.setInlineMessageType(int)
public java.lang.String getInlineMessage()
ThinDataviewCommon
null
, then the ThinDataviewCommon
displays no message. The message is reset to null
after the message is displayed once and whenever the view's data source is updated. The InlineMessageType
property controls the type of message that is displayed.
Note: The ThinDataviewCommon
calls this method when it displays messages. Application developers can also use it in displaying custom messages.
getInlineMessage
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
ThinDataviewCommon.setInlineMessageType(int)
public void setTokenSubstitution(TokenSubstitution token)
ThinDataviewCommon
TokenSubstitution
. You need to call this method only if you provide your own handler for allowing users to insert tokens.setTokenSubstitution
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
token
- The token substitution handler for this view.public TokenSubstitution getTokenSubstitution()
ThinDataviewCommon
TokenSubstitution
.getTokenSubstitution
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
TokenSubstitutionAdapter
.public void setDataSource(DataSource ds)
DataviewCommon
Model
class in a presentation bean represents the DataSource
to the view, but the DataSource
is the real source of the data.setDataSource
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
ds
- The data source for this view.public DataSource getDataSource()
DataviewCommon
getDataSource
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
DataSource
for this view. If no model or data source has been set for this view, this method returns null
.public DataDirector getDataDirector()
public void addDataListener(DataListener l)
ThinDataviewCommon
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.
addDataListener
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
l
- The listener to add.DataListener.viewDrillRequesting(oracle.dss.dataView.DrillEvent)
, DataListenerAdapter
public void removeDataListener(DataListener l)
ThinDataviewCommon
removeDataListener
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
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 ErrorHandler getErrorHandler()
DataviewCommon
getErrorHandler
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
public DataviewTitles getDataviewTitle()
ThinDataviewCommon
Title
for this ThinDataviewCommon
.getDataviewTitle
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
public DataviewTitles getDataviewSubtitle()
ThinDataviewCommon
Subtitle
for this ThinDataviewCommon
.getDataviewSubtitle
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
public DataviewTitles getDataviewFootnote()
ThinDataviewCommon
Footnote
for this ThinDataviewCommon
.getDataviewFootnote
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
public abstract boolean readXML(java.io.InputStream stream, int reset) throws BIIOException, BISAXException, BIParseException
ThinDataview
, from a String
. This method reads the XML from xmlString
and applies its attribute settings to this ThinDataview
. The reset
parameter determines how much of the ThinDataview
to reset before applying XML. In general, you can:
ThinDataview
without resetting anything to default valuesThinDataview
Resetting returns property values in the ThinDataview
to the default values for the version that is specified in the XML.
stream
- The XML to apply to this ThinDataview
.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 ThinDataview
, 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.Dataview.RESET_NONE
, Dataview.RESET_XML_PROPERTIES
, Dataview.RESET_EVERYTHING
public abstract boolean setXML(java.lang.String xmlString, int reset) throws BIIOException, BISAXException, BIParseException
ThinDataview
, from a String
. This method reads the XML from xmlString
and applies its attribute settings to this ThinDataview
. The reset
parameter determines how much of the ThinDataview
to reset before applying XML. In general, you can:
ThinDataview
without resetting anything to default valuesThinDataview
Resetting returns property values in the ThinDataview
to the default values for the version that is specified in the XML.
xmlString
- The XML to apply to this ThinDataview
.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 ThinDataview
, 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.Dataview.RESET_NONE
, Dataview.RESET_XML_PROPERTIES
, Dataview.RESET_EVERYTHING
public void setXMLValidated(boolean validate)
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 view ignore invalid XML.setXML(java.lang.String, int)
public boolean isXMLValidated()
true
if the view validates XML, false
if the view applies XML without validation.public final void setName(java.lang.String n)
n
- The name to use for this view.public final java.lang.String getName()
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 driling is disabled.public void setExportCharacterEncoding(java.lang.String encoding)
ThinDataviewCommon
http://www.iana.org/assignments/character-sets
.setExportCharacterEncoding
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
encoding
- The character encoding for export.public java.lang.String getExportCharacterEncoding()
ThinDataviewCommon
ThinDataviewCommon
uses when it exports its data.getExportCharacterEncoding
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
public void setExternalTitleVisible(boolean b)
ThinDataviewCommon
ThinDataviewCommon
appears outside the view. For example, if you display a title for this view in a UIX HeaderBean
, then set this property to true
. If you want the title to appear with exported data, then you should get the internal title and set its text, as well.
If this property is true
, then the internal title component for the view does not appear. This property is set to false
by default.
setExternalTitleVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
b
- true
if there is an external title, false
if there is not.ThinDataviewCommon.getDataviewTitle()
public boolean isExternalTitleVisible()
ThinDataviewCommon
If this property is true
, then the internal title component for the view does not appear. This property is set to false
by default.
isExternalTitleVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
true
if there is an external title, false
if there is not.public void setExternalSubtitleVisible(boolean b)
ThinDataviewCommon
ThinDataviewCommon
appears outside the view. If you want the subtitle to appear with exported data, then you should get the internal subtitle and set its text, as well.
If this property is true
, then the internal subtitle component for the view does not appear. This property is set to false
by default.
setExternalSubtitleVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
b
- true
if there is an external subtitle, false
if there is not.ThinDataviewCommon.getDataviewSubtitle()
public boolean isExternalSubtitleVisible()
ThinDataviewCommon
If this property is true
, then the internal subtitle component for the view does not appear. This property is set to false
by default.
isExternalSubtitleVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
true
if there is an external subtitle, false
if there is not.public void setExternalFootnoteVisible(boolean b)
ThinDataviewCommon
ThinDataviewCommon
appears outside the view. If you want the footnote to appear with exported data, then you should get the internal footnote and set its text, as well.
If this property is true
, then the internal footnote component for the view does not appear. This property is set to false
by default.
setExternalFootnoteVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
b
- true
if there is an external footnote, false
if there is not.ThinDataviewCommon.getDataviewFootnote()
public boolean isExternalFootnoteVisible()
ThinDataviewCommon
If this property is true
, then the internal footnote component for the view does not appear. This property is set to false
by default.
isExternalFootnoteVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
true
if there is an external footnote, false
if there is not.public Model getModel()
DataviewCommon
DataviewCommon
. The model represents the data that this DataviewCommon
displays.getModel
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
DataviewCommon
.public void setLocale(java.util.Locale loc)
ThinDataviewCommon
Locale
for this ThinDataviewCommon
.setLocale
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
loc
- The Locale
for this ThinDataviewCommon
.public java.util.Locale getLocale()
ThinDataviewCommon
Locale
that this ThinDataviewCommon
uses.getLocale
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
Locale
for this ThinDataviewCommon
.public java.lang.String getXML(boolean allProperties)
ThinDataview
. The XML can include values for all of the properties in the ThinDataview
, 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.ThinDataview
.public void writeXML(java.io.OutputStream stream, boolean allProperties)
ThinDataview
to an output stream. The XML can include values for all of the properties in the ThinDataview
, 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.
writeXML
in interface ThinDataviewCommon
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)
ThinDataviewCommon
FindMember
dialog and set an EventTarget
to direct the INIT_FIND_MEMBER_EVENT
to the FindMember
.setPagingControlVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
v
- true
to make the paging control visible, false
to hide it.FindMember
, EventTarget
public boolean isPagingControlVisible()
ThinDataviewCommon
isPagingControlVisible
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
true
if the paging control appears in this view, false
if it does not.public void setHTMLPagingControlAutosubmit(boolean autosubmit)
setHTMLPagingControlAutosubmit
in interface DataviewCommon
autosubmit
- true
to enable automatic submission, false
to disable it.public boolean isHTMLPagingControlAutosubmit()
isHTMLPagingControlAutosubmit
in interface DataviewCommon
true
if changes are automatically submitted, false
if they are not.public void setHTMLPagingControlWidth(int width)
DataviewCommon
setHTMLPagingControlWidth
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
width
- The number of page items to display before wrapping. To display all page items on the same line, pass -1.public int getHTMLPagingControlWidth()
DataviewCommon
getHTMLPagingControlWidth
in interface DataviewCommon
oracle.dss.dataView.DataviewCommon
public boolean isEnabled()
ThinDataviewCommon
ThinDataviewCommon
is enabled. Users cannot interact with a disabled view, but they can see it.isEnabled
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
true
if users can interact with this ThinDataviewCommon
, false
if they cannot.public void setEnabled(boolean enabled)
ThinDataviewCommon
ThinDataviewCommon
is enabled. When a ThinDataviewCommon
is disabled, users can see it, but they cannot interact with it.setEnabled
in interface ThinDataviewCommon
oracle.dss.thin.beans.dataView.ThinDataviewCommon
enabled
- true
to enable this ThinDataviewCommon
, false
to disable it.public void resetToDefault(int reset)
ThinDataview
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.
When reset
is RESET_EVERYTHING
, then this method removes event targets as well.
This method is helpful when you want to reuse a ThinDataview
rather than instantiate a new one.
resetToDefault
in interface ThinDataviewCommon
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.Dataview.RESET_XML_PROPERTIES
, Dataview.RESET_EVERYTHING
public void cleanUp()
ThinDataviewCommon
cleanUp
in interface ThinDataviewCommon
public void initialize(java.util.Hashtable env)
initialize
in interface Persistable
oracle.dss.util.persistence.Persistable
env
- Environment properties.public abstract PersistableAttributes getPersistableAttributes(PersistableAttributes attrs)
ThinDataview
, for searching. This method adds the attributes that this ThinDataview
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 ThinDataview
.PersistableAttributes
that includes the application specified attributes as well as the attributes that are specific to this ThinDataview
.public void setPersistableAttributes(PersistableAttributes attrs)
ThinDataview
itself can be used as persistable attributes.setPersistableAttributes
in interface Persistable
attrs
- Any PersistableAttributes
.public abstract boolean setXMLAsString(java.lang.String xml) throws BIPersistenceException
ThinDataview
. 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
ThinDataview
, in an AggregateInfo
array.public void setPersistableComponents(AggregateInfo[] persistables)
Persistable
components that this ThinDataview
aggregates. ThinDataview
objects aggregate the data source that defines the data that view displays.
The persistence service calls this method when the view is stored in the BI Beans Catalog. Application developers should not call this method.
setPersistableComponents
in interface Persistable
persistables
- The data source for this ThinDataview
, in an AggregateInfo
array.public java.lang.String getXMLAsString()
ThinDataview
. This method is called by the persistence service when you save the ThinDataview
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 ThinDataview
, call the writeXML
method or the getXML
method.
getXMLAsString
in interface StringXMLizable
ThinDataview
.getXML(boolean)
, writeXML(java.io.OutputStream, boolean)
public boolean isPropertyOverrideFlag(int attrID, java.util.BitSet overrideFlags)
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |