1 13 package com.tonbeller.jpivot.xmla; 14 15 18 19 import com.tonbeller.jpivot.core.ExtensionSupport; 20 import com.tonbeller.jpivot.olap.model.Cell; 21 import com.tonbeller.jpivot.olap.navi.DrillThrough; 22 import com.tonbeller.wcf.table.TableModel; 23 24 public class XMLA_DrillThrough extends ExtensionSupport implements DrillThrough { 25 26 private boolean extendedContext = true; 27 28 31 public XMLA_DrillThrough() { 32 super.setId(DrillThrough.ID); 33 } 34 35 38 39 public boolean canDrillThrough(Cell cell) { 40 return true; 43 } 44 45 48 public TableModel drillThrough(Cell cell) { 49 XMLA_DrillThroughTableModel dtm = new XMLA_DrillThroughTableModel(); 50 XMLA_Model xmodel = ((XMLA_Cell)cell).getModel(); 51 dtm.setCellOrdinal(((XMLA_Cell) cell).getOrdinal()); 52 dtm.setModel(xmodel); 53 return dtm; 54 } 55 56 60 61 public boolean isExtendedContext() { 62 return extendedContext; 63 } 64 65 public void setExtendedContext(boolean extendedContext) { 66 this.extendedContext = extendedContext; 67 } 68 69 } 70 71 | Popular Tags |