com.tonbeller.jpivot.olap.navi
Interface DrillExpandPosition

All Superinterfaces:
Extension
All Known Implementing Classes:
DrillExpandPositionExt, TestDrillExpandPosition

public interface DrillExpandPosition
extends Extension

allows to expand / collapse members on an axis. If a member is expanded, the member itself plus its children are displayed.

Example: if you expand "Europe" you may see "Germany", "France" etc. If you collapse "Europe" the countries will not be shown.

If multiple Hierarchies are shown on a single axis, only one position is expanded. For example

 -----+-------
 2001 | Europe
 -----+-------
 2002 | Europe
 -----+-------
 2003 | Europe
 -----+-------
 
clicking on Europe in 2002 will give
 -----+-------
 2001 | Europe
 -----+-------
 2002 | Europe
      |   Germany
      |   France
 -----+-------
 2003 | Europe
 -----+-------
 

Author:
av

Field Summary
static java.lang.String ID
          name of the Extension for lookup
 
Method Summary
 boolean canCollapse(Position position, Member member)
          true if the Position is currently expanded by specific member.
 boolean canExpand(Position position, Member member)
          true if member has children and Position is not currently expanded
 void collapse(Position position, Member member)
          collapses Position by specific member.
 void expand(Position position, Member member)
          expands Position by specific member
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Field Detail

ID

static final java.lang.String ID
name of the Extension for lookup

See Also:
Constant Field Values
Method Detail

canExpand

boolean canExpand(Position position,
                  Member member)
true if member has children and Position is not currently expanded


canCollapse

boolean canCollapse(Position position,
                    Member member)
true if the Position is currently expanded by specific member.


expand

void expand(Position position,
            Member member)
expands Position by specific member


collapse

void collapse(Position position,
              Member member)
collapses Position by specific member.