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 33 public class EP_Monochrome extends BaseElementProcessor { 34 private static final String _value_attribute = "value"; 35 private BooleanResult _value; 36 37 40 public EP_Monochrome() { 41 super(null); 42 _value = null; 43 } 44 45 50 public boolean getValue() throws IOException { 51 if (_value == null) { 52 _value = BooleanConverter.extractBoolean(getValue(_value_attribute)); 53 } 54 return _value.booleanValue(); 55 } 56 57 61 public void endProcessing() throws IOException { 62 this.getSheet().setMonochrome(this.getValue()); 63 } 64 } | Popular Tags |