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