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


oracle.dss.datautil
Class OLAPDimensionModel

java.lang.Object
  |
  +--oracle.dss.datautil.OLAPDimensionModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, DimListDataModel, javax.swing.ListModel, java.io.Serializable
Direct Known Subclasses:
QueryAccessDimensionModel

public abstract class OLAPDimensionModel
extends java.lang.Object
implements DimListDataModel, java.io.Serializable

Superclass for DimListDataModel implementations

See Also:
Serialized Form

Fields inherited from interface oracle.dss.util.dimensionList.DimListDataModel
COLLAPSE, COLLAPSEALL_FLAG, EXPAND, EXPANDALL_FLAG

 

Constructor Summary
OLAPDimensionModel()
           

 

Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
          Adds a Swing ListDataListener to this object.
 int find(java.lang.String search, int flags, int startPos)
          Searches for a value in the model according to the specified criterea.
 java.lang.Object getElementAt(int index)
          Retrieves the item at the specified position in the model.
 java.lang.Object getSelectedItem()
          Retrieves the item that is currently selected in the model.
 int getSize()
          Retrieves the total number of items in the model.
 void refresh()
          Refreshes the dimension list to reflect the current selections.
 void removeListDataListener(javax.swing.event.ListDataListener l)
          Removes a Swing ListDataListener from this object.
 void setErrorHandler(ErrorHandler errorHandler)
          Sets the error handler.
 void setSelectedItem(java.lang.Object item)
          Specifies the item that you want to select in the model.

 

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

 

Methods inherited from interface oracle.dss.util.dimensionList.DimListDataModel
collapseAll, drill, elementAt, expandAll, isDragable, isDropTarget, isHierarchical, moveElement, setElementAt, size

 

Constructor Detail

OLAPDimensionModel

public OLAPDimensionModel()
Method Detail

refresh

public void refresh()
Refreshes the dimension list to reflect the current selections.
Specified by:
refresh in interface DimListDataModel

find

public int find(java.lang.String search,
                int flags,
                int startPos)
Searches for a value in the model according to the specified criterea. Constants for flags are FIND_CASE_INSENSITIVE_, FIND_CONTAINS, FIND_ENDS_WITH, FIND_EXACT, FIND_PRIOR, FIND_STARTS_WITH, and are defined by DataAccess.
Specified by:
find in interface DimListDataModel
Parameters:
search - The String that you want to search for.
flags - Costants that represent the type of search that you want to perform.
startPos - The index of the position in the model from which you want to start the search.
Returns:
The index of the matching item in the model, or -1 if a match is not found.
See Also:
DataAccess.FIND_CASE_INSENSITIVE, DataAccess.FIND_CONTAINS, DataAccess.FIND_ENDS_WITH, DataAccess.FIND_EXACT, DataAccess.FIND_PRIOR, DataAccess.FIND_STARTS_WITH

getSelectedItem

public java.lang.Object getSelectedItem()
Retrieves the item that is currently selected in the model.
Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
Returns:
The item that is currently selected in the model.

setSelectedItem

public void setSelectedItem(java.lang.Object item)
Specifies the item that you want to select in the model.
Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Parameters:
item - The item that you want to select in the model.

getSize

public int getSize()
Retrieves the total number of items in the model.
Specified by:
getSize in interface javax.swing.ListModel
Returns:
The total number of items in the model.

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Adds a Swing ListDataListener to this object.
Specified by:
addListDataListener in interface javax.swing.ListModel
Parameters:
l - The Swing ListDataListener that you want to add.

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Removes a Swing ListDataListener from this object.
Specified by:
removeListDataListener in interface javax.swing.ListModel
Parameters:
The - Swing ListDataListener that you want to remove.

getElementAt

public java.lang.Object getElementAt(int index)
Retrieves the item at the specified position in the model.
Specified by:
getElementAt in interface javax.swing.ListModel
Parameters:
index - The index of the item in the model.
Returns:
The item at the specified index in the model, or null if there is an error.

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Sets the error handler.
Parameters:
errorHandler - The error handler.

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


Copyright © 2003, Oracle. All Rights Reserved.