com.tonbeller.jpivot.test.olap
Class TestPlaceHierarchiesOnAxes

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestExtensionSupport
          extended by com.tonbeller.jpivot.test.olap.TestPlaceHierarchiesOnAxes
All Implemented Interfaces:
Extension, PlaceHierarchiesOnAxes
Direct Known Subclasses:
TestPlaceMembersOnAxes

public class TestPlaceHierarchiesOnAxes
extends TestExtensionSupport
implements PlaceHierarchiesOnAxes

Created on 09.12.2002

Author:
av

Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.olap.navi.PlaceHierarchiesOnAxes
ID
 
Constructor Summary
TestPlaceHierarchiesOnAxes()
           
 
Method Summary
 java.lang.Object createMemberExpression(Hierarchy hier)
          finds the expression that generates members for hier.
 boolean getExpandAllMember()
          return the "expand All member" flag
 void setExpandAllMember(boolean expandAllMember)
          set the "expand All member" flag if this flag is set and an "All" memper is put onto an axis, the children of the All member will be added as well.
 void setQueryAxis(Axis target, java.lang.Object[] memberExpressions)
          sets the MemberExpressions for an Axis.
 void setSlicer(Member[] members)
           
 
Methods inherited from class com.tonbeller.jpivot.test.olap.TestExtensionSupport
fireModelChanged, model
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestPlaceHierarchiesOnAxes

public TestPlaceHierarchiesOnAxes()
Method Detail

createMemberExpression

public java.lang.Object createMemberExpression(Hierarchy hier)
Description copied from interface: PlaceHierarchiesOnAxes
finds the expression that generates members for hier. If hier is used in the query, the expression from the query should be returned, so the navigation position remains unchanged. If the hierarchy is not used in the query, a new expression is created that selects the root members of the hierarchy.

Specified by:
createMemberExpression in interface PlaceHierarchiesOnAxes
Returns:
a member expression
See Also:
com.tonbeller.jpivot.olap.navi.PlaceHierarchiesOnAxes#findMemberExpression(Hierarchy)

setQueryAxis

public void setQueryAxis(Axis target,
                         java.lang.Object[] memberExpressions)
Description copied from interface: PlaceHierarchiesOnAxes
sets the MemberExpressions for an Axis. The axis definition is replaced by the memberExpressions.

Specified by:
setQueryAxis in interface PlaceHierarchiesOnAxes
See Also:
com.tonbeller.jpivot.olap.navi.PlaceHierarchiesOnAxes#setAxis(Axis, Object[])

setSlicer

public void setSlicer(Member[] members)

setExpandAllMember

public void setExpandAllMember(boolean expandAllMember)
Description copied from interface: PlaceHierarchiesOnAxes
set the "expand All member" flag if this flag is set and an "All" memper is put onto an axis, the children of the All member will be added as well.

Specified by:
setExpandAllMember in interface PlaceHierarchiesOnAxes

getExpandAllMember

public boolean getExpandAllMember()
Description copied from interface: PlaceHierarchiesOnAxes
return the "expand All member" flag

Specified by:
getExpandAllMember in interface PlaceHierarchiesOnAxes