oracle.dss.datautil
Class QueryAccessDimensionModel
java.lang.Object
|
+--oracle.dss.datautil.OLAPDimensionModel
|
+--oracle.dss.datautil.QueryAccessDimensionModel
- All Implemented Interfaces:
- javax.swing.ComboBoxModel, DimListDataModel, javax.swing.ListModel, QueryAccessListener, java.io.Serializable
- public class QueryAccessDimensionModel
- extends OLAPDimensionModel
- implements QueryAccessListener
QueryAccessDimensionModel provides an interface between the DataSource/DataAccess implementation via the DimensionList Data Model (DimListDataModel).
- See Also:
SelectionManager
, DataSource
, DimensionList
, DimListDataModel
, Serialized Form
Method Summary |
boolean |
collapseAll()
Performs a collapse of all levels up to the highest level (0). |
boolean |
drill(int index, int delta)
Performs a 'drill' operation on a specific element in the data source. |
boolean |
expandAll()
Performs a expand on all levels down to the lowest level. |
void |
refresh()
Forces the model to refresh itself based on current selections. |
void |
updateSelection(java.lang.String strDimension, java.lang.String strHierarchy, java.util.Vector vLevels)
Updates the selection associated with the model. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryAccessDimensionModel
public QueryAccessDimensionModel(QueryAccess qa,
LayoutAccess la,
ErrorHandler eh,
java.lang.String dimension,
java.lang.String hierarchy,
MetadataManager mm)
- Constructor.
-
- Parameters:
qa
- The QueryAccess for this model.
la
- The LayoutAccess for this model.
eh
- The ErrorHandler for this model.
dimension
- The unique ID for the dimension.
hierarchy
- The unique ID for the hierarchy.
mm
- The MetadataManager for this model.
updateSelection
public void updateSelection(java.lang.String strDimension,
java.lang.String strHierarchy,
java.util.Vector vLevels)
- Updates the selection associated with the model. The user should call the refresh method to update the model based on the new selection.
-
- Parameters:
strDimension
- a String
value that represents the dimension.
strHierarchy
- a String
value that represents the hierarchy associated with the dimension.
vLevels
- a Vector
value that represents a list of level strings.
refresh
public void refresh()
- Forces the model to refresh itself based on current selections.
-
- Overrides:
refresh
in class OLAPDimensionModel
drill
public boolean drill(int index,
int delta)
- Performs a 'drill' operation on a specific element in the data source.
-
- Parameters:
index
- the data source index position.
delta
- relative number of levels to traverse within the hierarchy (positive numbers drill down, negative drill up) This value is currently ignored.
- Returns:
- boolean
true
if successful, otherwise failure.
collapseAll
public boolean collapseAll()
- Performs a collapse of all levels up to the highest level (0). All children are hidden up to the root.
-
- Returns:
- boolean A
true
if successful, otherwise failure.
expandAll
public boolean expandAll()
- Performs a expand on all levels down to the lowest level. All children are expanded.
-
- Returns:
- boolean A
true
if successful, otherwise failure.
Copyright © 2003, Oracle. All Rights Reserved.