1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import org.apache.cocoon.components.elementprocessor.types.BooleanConverter; 20 import org.apache.cocoon.components.elementprocessor.types.BooleanResult; 21 22 import java.io.IOException ; 23 24 34 public class EP_Grid extends BaseElementProcessor { 35 private static final String _value_attribute = "value"; 36 private BooleanResult showGrid; 37 38 41 public EP_Grid() { 42 super(null); 43 showGrid = null; 44 } 45 46 51 public boolean getValue() throws IOException { 52 if (showGrid == null) { 53 showGrid = BooleanConverter.extractBoolean(this.getValue(_value_attribute)); 54 } 55 return showGrid.booleanValue(); 56 } 57 58 62 public void endProcessing() throws IOException { 63 this.getSheet().setPrintGridLines(this.getValue()); 64 } 65 66 } | Popular Tags |