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


oracle.dss.thin.beans.table
Class ThinTable

java.lang.Object
  |
  +--oracle.dss.thin.beans.dataView.ThinDataview
        |
        +--oracle.dss.thin.beans.gridView.ThinGridView
              |
              +--oracle.dss.thin.beans.table.ThinTable
All Implemented Interfaces:
CheckpointState, ComponentTypeConverter, DataviewCommon, ErrorHandlerCallback, Formattable, GridViewCommon, Persistable, StringXMLizable, TableCommon, ThinBean, ThinBeanUI, ThinDataviewCommon

public class ThinTable
extends ThinGridView
implements TableCommon

The table bean class. The table displays data in the form of a relational table.

To display data in this table, call the setDataSource method of its superclass, or use the table constructor that takes a DataSource as a parameter. You can use the BI Beans DataSource bean, or you can supply your own data source. The DataAccess and DataAccess interfaces, in the oracle.dss.util package, define the methods and constants that a data source must provide.

You can set attributes on the table to customize its appearance and behavior. In addition, the table has several components, whose attributes you can also set in order to customize the table.

The ThinTable generates the following events:

The ThinTable handles the following events:

For more information about using the ThinTable, see the "Thin Table" topic in the BI Beans Help system.

See Also:
DataAccess, DataDirector, ThinGridView

Fields inherited from class oracle.dss.thin.beans.gridView.ThinGridView
DRILLSTATE_DRILLABLE_BIDI, DRILLSTATE_IS_DRILLED_BIDI

 

Fields inherited from interface oracle.dss.gridView.GridViewCommon
ABSOLUTE_COLUMN_SIZING, COLUMN_BANDING, NO_BANDING, NO_COLUMN_SIZING, RELATIVE_COLUMN_SIZING, ROW_BANDING

 

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
ThinTable()
          Constructor.

 

Method Summary
 GridViewHeader getColumnHeader()
          Retrieves the column header component for this table.
 GridViewDatabody getDatabody()
          Retrieves the databody component for this table.
 PersistableAttributes getPersistableAttributes(PersistableAttributes oldAttrs)
          Retrieves the attributes of this ThinDataview, for searching.
 GridViewHeader getRowHeader()
          Retrieves the row header component for this table.
 TableSizingManager getTableSizingManager()
          Retrieves the sizing manager that this table uses.
 int getViewType()
          Retrieves the type of view that implements this ThinDataviewCommon.
 boolean isColumnHeaderVisible()
          Indicates whether the column header appears in this ThinGridView.
 boolean isRowHeaderVisible()
          Indicates whether the row header appears in this ThinGridView.
 boolean readXML(java.io.InputStream stream, int reset)
          Applies XML to this ThinDataview, from a String.
 void resetToDefault(int reset)
          Resets properties of this ThinDataview to their default values.
 void setColumnHeaderVisible(boolean visible)
          Specifies whether the column header appears in this ThinGridView.
 void setLocale(java.util.Locale loc)
          Specifies the Locale for this ThinDataviewCommon.
 void setRowHeaderVisible(boolean visible)
          Specifies whether the row header appears in this ThinGridView.
 boolean setXML(java.lang.String xmlString, int reset)
          Applies XML to this ThinDataview, from a String.
 boolean setXMLAsString(java.lang.String xml)
          Specifies the XML representation of this ThinTable.

 

Methods inherited from class oracle.dss.thin.beans.gridView.ThinGridView
addGridViewDataListener, applyCSSStyleDefaults, checkpointState, getBanding, getCellMaxWidth, getCellMinWidth, getCheckpointState, getCornerComponentColor, getDrillImagePath, getDrillOutCallback, getGraphicImageCount, getGraphicImagePath, getGridColor, getGridViewDatabodyStyleManager, getGridViewFormatManager, getGridViewHeaderStyleManager, getGridViewModel, getGridViewSizingManager, getHTMLColumnBlockSize, getHTMLColumnSizing, getHTMLRowBlockSize, getHTMLTableCellPadding, getHTMLTableWidth, getHTMLTextInputSize, getStartColumn, getStartRow, getState, getViewFormat, isCellEditingAllowed, isEnabled, isHGridVisible, isVGridVisible, isVisible, removeGridViewDataListener, setBanding, setBaseState, setCellEditingAllowed, setCellMaxWidth, setCellMinWidth, setCheckpointState, setCornerComponentColor, setDrillImagePath, setDrillOutCallback, setEnabled, setGraphicImagePath, setGridColor, setHGridVisible, setHTMLColumnBlockSize, setHTMLColumnSizing, setHTMLRowBlockSize, setHTMLTableCellPadding, setHTMLTableWidth, setHTMLTextInputSize, setStartColumn, setStartRow, setState, setVGridVisible, setViewFormat, setVisible

 

Methods inherited from class oracle.dss.thin.beans.dataView.ThinDataview
addDataListener, addErrorHandler, addThinViewListener, cleanUp, getDataDirector, getDataSource, getDataviewFootnote, getDataviewSubtitle, getDataviewTitle, getDescription, getErrorHandler, getEventTarget, getExportCharacterEncoding, getHTMLPagingControlWidth, getInlineMessage, getInlineMessageType, getLocale, getLocalName, getModel, getName, getPagingControl, getPagingControlPosition, getPersistableComponents, getThinBeanName, getTokenSubstitution, getXML, getXMLAsString, handleEvent, initialize, isDrillingEnabled, isExternalFootnoteVisible, isExternalSubtitleVisible, isExternalTitleVisible, isHTMLPagingControlAutosubmit, isPagingControlVisible, isPropertyOverrideFlag, isXMLValidated, removeDataListener, removeErrorHandler, removeThinViewListener, setDataSource, setDescription, setDrillingEnabled, setEventTarget, setExportCharacterEncoding, setExternalFootnoteVisible, setExternalSubtitleVisible, setExternalTitleVisible, setHTMLPagingControlAutosubmit, setHTMLPagingControlWidth, setInlineMessage, setInlineMessageType, setLocalName, setName, setPagingControlPosition, setPagingControlVisible, setPersistableAttributes, setPersistableComponents, setThinBeanName, setTokenSubstitution, setXMLValidated, writeXML

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.dss.table.TableCommon
isIncrementalFetchEnabled, isIncrementalFetchRowVisible

 

Methods inherited from interface oracle.dss.gridView.GridViewCommon
getBanding, getCellMaxHeight, getCellMaxWidth, getCellMinHeight, getCellMinWidth, getHTMLColumnSizing, getHTMLRowBlockSize, getHTMLTableCellPadding, getHTMLTableWidth, getHTMLTextInputSize, setBanding, setDefaultCornerComponentColor, setHTMLColumnSizing, setHTMLRowBlockSize, setHTMLTableCellPadding, setHTMLTableWidth, setHTMLTextInputSize

 

Methods inherited from interface oracle.dss.dataView.DataviewCommon
getDataSource, getErrorHandler, getHTMLPagingControlWidth, getLocale, getModel, isHTMLPagingControlAutosubmit, setDataSource, setHTMLPagingControlAutosubmit, setHTMLPagingControlWidth

 

Methods inherited from interface oracle.dss.rules.ComponentTypeConverter
convertComponentTypeToInteger, convertComponentTypeToString

 

Constructor Detail

ThinTable

public ThinTable()
Constructor.
Method Detail

getTableSizingManager

public TableSizingManager getTableSizingManager()
Retrieves the sizing manager that this table uses. The sizing manager is responsible for the width of the columns in the table. Note : The sizing manager is shared with the Java Client Table, so it does contain sizing rules for cell heights. ThinTable does not support sizing of cell heights.
Returns:
The sizing manager that this table uses.

setLocale

public void setLocale(java.util.Locale loc)
Description copied from interface: ThinDataviewCommon
Specifies the Locale for this ThinDataviewCommon.
Overrides:
setLocale in class ThinGridView
Following copied from interface: oracle.dss.thin.beans.dataView.ThinDataviewCommon
Parameters:
loc - The Locale for this ThinDataviewCommon.

getDatabody

public GridViewDatabody getDatabody()
Retrieves the databody component for this table.
Overrides:
getDatabody in class ThinGridView
Returns:
The databody component for this table.
See Also:
TableDatabody

isColumnHeaderVisible

public boolean isColumnHeaderVisible()
Description copied from class: ThinGridView
Indicates whether the column header appears in this ThinGridView.
Overrides:
isColumnHeaderVisible in class ThinGridView
Following copied from class: oracle.dss.thin.beans.gridView.ThinGridView
Returns:
true if the column header appears, false if it does not.

setColumnHeaderVisible

public void setColumnHeaderVisible(boolean visible)
Description copied from class: ThinGridView
Specifies whether the column header appears in this ThinGridView.
Overrides:
setColumnHeaderVisible in class ThinGridView
Following copied from class: oracle.dss.thin.beans.gridView.ThinGridView
Parameters:
visible - true to display the column header, false to hide it.

isRowHeaderVisible

public boolean isRowHeaderVisible()
Description copied from class: ThinGridView
Indicates whether the row header appears in this ThinGridView.
Overrides:
isRowHeaderVisible in class ThinGridView
Following copied from class: oracle.dss.thin.beans.gridView.ThinGridView
Returns:
true if the row header appears, false if it does not.

setRowHeaderVisible

public void setRowHeaderVisible(boolean visible)
Description copied from class: ThinGridView
Specifies whether the row header appears in this ThinGridView.
Overrides:
setRowHeaderVisible in class ThinGridView
Following copied from class: oracle.dss.thin.beans.gridView.ThinGridView
Parameters:
visible - true to display the row header, false to hide it.

getColumnHeader

public GridViewHeader getColumnHeader()
Retrieves the column header component for this table.
Overrides:
getColumnHeader in class ThinGridView
Returns:
The column header component for this table.
See Also:
ColHeader

getRowHeader

public GridViewHeader getRowHeader()
Retrieves the row header component for this table.
Overrides:
getRowHeader in class ThinGridView
Returns:
The row header component for this table.
See Also:
RowHeader

getViewType

public int getViewType()
Description copied from interface: ThinDataviewCommon
Retrieves the type of view that implements this ThinDataviewCommon.
Overrides:
getViewType in class ThinDataview
Following copied from interface: oracle.dss.thin.beans.dataView.ThinDataviewCommon
Returns:
A constant that represents the type of view. Valid constants are listed in the See Also section.
See Also:
Dataview.VIEW_TYPE_CROSSTAB, Dataview.VIEW_TYPE_GRAPH, Dataview.VIEW_TYPE_TABLE

setXML

public boolean setXML(java.lang.String xmlString,
                      int reset)
               throws BIIOException,
BISAXException,
BIParseException
Description copied from class: ThinDataview
Applies XML to this 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:

Resetting returns property values in the ThinDataview to the default values for the version that is specified in the XML.

Overrides:
setXML in class ThinDataview
Following copied from class: oracle.dss.thin.beans.dataView.ThinDataview
Parameters:
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.
Returns:
true if the XML is successfully applied to this ThinDataview, false if an IO exception occurs.
Throws:
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.
See Also:
Dataview.RESET_NONE, Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHING

readXML

public boolean readXML(java.io.InputStream stream,
                       int reset)
                throws BIIOException,
BISAXException,
BIParseException
Description copied from class: ThinDataview
Applies XML to this 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:

Resetting returns property values in the ThinDataview to the default values for the version that is specified in the XML.

Overrides:
readXML in class ThinDataview
Following copied from class: oracle.dss.thin.beans.dataView.ThinDataview
Parameters:
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.
Returns:
true if the XML is successfully applied to this ThinDataview, false if an IO exception occurs.
Throws:
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.
See Also:
Dataview.RESET_NONE, Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHING

resetToDefault

public void resetToDefault(int reset)
Description copied from class: ThinDataview
Resets properties of this 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.

Overrides:
resetToDefault in class ThinGridView
Following copied from class: oracle.dss.thin.beans.dataView.ThinDataview
Parameters:
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.
See Also:
Dataview.RESET_XML_PROPERTIES, Dataview.RESET_EVERYTHING

setXMLAsString

public boolean setXMLAsString(java.lang.String xml)
                       throws BIPersistenceException
Specifies the XML representation of this ThinTable. The persistence service calls this method when the view is restored from the BI Beans Catalog. This method does not reset any properties before applying the XML to this ThinTable.

Application developers should not call this method. To load XML from a file, call setXML or readXML.

Overrides:
setXMLAsString in class ThinDataview
Parameters:
xml - The XML representation of the view.
Returns:
true if the XML was successfully set, false if not.
Throws:
BIPersistenceException - If a problem occurs in setting the XML.
See Also:
readXML(java.io.InputStream, int), setXML(java.lang.String, int)

getPersistableAttributes

public PersistableAttributes getPersistableAttributes(PersistableAttributes oldAttrs)
Description copied from class: ThinDataview
Retrieves the attributes of this 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.
Overrides:
getPersistableAttributes in class ThinDataview
Following copied from class: oracle.dss.thin.beans.dataView.ThinDataview
Parameters:
attrs - The searchable attributes that the application has specified for this ThinDataview.
Returns:
A PersistableAttributes that includes the application specified attributes as well as the attributes that are specific to this ThinDataview.

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


Copyright © 2003, Oracle. All Rights Reserved.