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